Home | History | Annotate | Download | only in CodeGen

Lines Matching defs:Switch

73   switch (K) {
273 /// given switch instruction.
275 llvm::SwitchInst *Switch,
299 // Don't add this case to the switch statement twice.
302 Switch->addCase(CGF.Builder.getInt32(Fixup.DestinationIndex),
310 /// be a cleanup switch.
313 // If it's a branch, turn it into a switch whose default
322 llvm::SwitchInst *Switch =
325 return Switch;
359 llvm::SwitchInst *Switch = TransitionToCleanupSwitch(*this, BranchBB);
361 // Add a case to the switch.
362 Switch->addCase(Builder.getInt32(Fixup.DestinationIndex), Block);
471 // an unconditional branch or a switch.
478 llvm::SwitchInst *Switch = cast<llvm::SwitchInst>(Term);
479 for (unsigned I = 0, E = Switch->getNumSuccessors(); I != E; ++I)
480 if (Switch->getSuccessor(I) == From)
481 Switch->setSuccessor(I, To);
508 // Replace the switch with a branch.
511 // The switch operand is a load from the cleanup-dest alloca.
514 // Destroy the switch.
705 // we can route it without a switch.
714 // Build a switch-out if we need it:
731 llvm::SwitchInst *Switch =
735 InstsToAppend.push_back(Switch);
741 Switch->addCase(Builder.getInt32(0), FallthroughDest);
745 Switch->addCase(Scope.getBranchAfterIndex(I),
752 ResolveAllBranchFixups(*this, Switch, NormalEntry);