Home | History | Annotate | Download | only in CodeGen

Lines Matching refs:Switch

74   switch (K) {
277 /// given switch instruction.
279 llvm::SwitchInst *Switch,
303 // Don't add this case to the switch statement twice.
306 Switch->addCase(CGF.Builder.getInt32(Fixup.DestinationIndex),
314 /// be a cleanup switch.
317 // If it's a branch, turn it into a switch whose default
326 llvm::SwitchInst *Switch =
329 return Switch;
363 llvm::SwitchInst *Switch = TransitionToCleanupSwitch(*this, BranchBB);
365 // Add a case to the switch.
366 Switch->addCase(Builder.getInt32(Fixup.DestinationIndex), Block);
475 // an unconditional branch or a switch.
482 llvm::SwitchInst *Switch = cast<llvm::SwitchInst>(Term);
483 for (unsigned I = 0, E = Switch->getNumSuccessors(); I != E; ++I)
484 if (Switch->getSuccessor(I) == From)
485 Switch->setSuccessor(I, To);
512 // Replace the switch with a branch.
515 // The switch operand is a load from the cleanup-dest alloca.
518 // Destroy the switch.
709 // we can route it without a switch.
718 // Build a switch-out if we need it:
735 llvm::SwitchInst *Switch =
739 InstsToAppend.push_back(Switch);
745 Switch->addCase(Builder.getInt32(0), FallthroughDest);
749 Switch->addCase(Scope.getBranchAfterIndex(I),
756 ResolveAllBranchFixups(*this, Switch, NormalEntry);