Lines Matching refs:TheSwitch
513 SwitchInst *TheSwitch = in emitCallAndSwitchStatement() local
556 TheSwitch->addCase(ConstantInt::get(Type::getInt16Ty(Context), in emitCallAndSwitchStatement()
627 Type *OldFnRetTy = TheSwitch->getParent()->getParent()->getReturnType(); in emitCallAndSwitchStatement()
636 ReturnInst::Create(Context, nullptr, TheSwitch); // Return void in emitCallAndSwitchStatement()
637 } else if (OldFnRetTy == TheSwitch->getCondition()->getType()) { in emitCallAndSwitchStatement()
639 ReturnInst::Create(Context, TheSwitch->getCondition(), TheSwitch); in emitCallAndSwitchStatement()
644 Constant::getNullValue(OldFnRetTy), TheSwitch); in emitCallAndSwitchStatement()
647 TheSwitch->eraseFromParent(); in emitCallAndSwitchStatement()
652 BranchInst::Create(TheSwitch->getSuccessor(1), TheSwitch); in emitCallAndSwitchStatement()
653 TheSwitch->eraseFromParent(); in emitCallAndSwitchStatement()
656 BranchInst::Create(TheSwitch->getSuccessor(1), TheSwitch->getSuccessor(2), in emitCallAndSwitchStatement()
657 call, TheSwitch); in emitCallAndSwitchStatement()
658 TheSwitch->eraseFromParent(); in emitCallAndSwitchStatement()
663 TheSwitch->setCondition(call); in emitCallAndSwitchStatement()
664 TheSwitch->setDefaultDest(TheSwitch->getSuccessor(NumExitBlocks)); in emitCallAndSwitchStatement()
666 TheSwitch->removeCase(SwitchInst::CaseIt(TheSwitch, NumExitBlocks-1)); in emitCallAndSwitchStatement()