Home | History | Annotate | Download | only in CodeGen

Lines Matching defs: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);
502 // an unconditional branch or a switch.
509 llvm::SwitchInst *Switch = cast<llvm::SwitchInst>(Term);
510 for (unsigned I = 0, E = Switch->getNumSuccessors(); I != E; ++I)
511 if (Switch->getSuccessor(I) == From)
512 Switch->setSuccessor(I, To);
539 // Replace the switch with a branch.
542 // The switch operand is a load from the cleanup-dest alloca.
545 // Destroy the switch.
736 // we can route it without a switch.
745 // Build a switch-out if we need it:
762 llvm::SwitchInst *Switch =
766 InstsToAppend.push_back(Switch);
772 Switch->addCase(Builder.getInt32(0), FallthroughDest);
776 Switch->addCase(Scope.getBranchAfterIndex(I),
783 ResolveAllBranchFixups(*this, Switch, NormalEntry);