Lines Matching refs:TheSwitch
501 SwitchInst *TheSwitch = in emitCallAndSwitchStatement() local
543 TheSwitch->addCase(ConstantInt::get(Type::getInt16Ty(Context), in emitCallAndSwitchStatement()
617 Type *OldFnRetTy = TheSwitch->getParent()->getParent()->getReturnType(); in emitCallAndSwitchStatement()
626 ReturnInst::Create(Context, nullptr, TheSwitch); // Return void in emitCallAndSwitchStatement()
627 } else if (OldFnRetTy == TheSwitch->getCondition()->getType()) { in emitCallAndSwitchStatement()
629 ReturnInst::Create(Context, TheSwitch->getCondition(), TheSwitch); in emitCallAndSwitchStatement()
634 Constant::getNullValue(OldFnRetTy), TheSwitch); in emitCallAndSwitchStatement()
637 TheSwitch->eraseFromParent(); in emitCallAndSwitchStatement()
642 BranchInst::Create(TheSwitch->getSuccessor(1), TheSwitch); in emitCallAndSwitchStatement()
643 TheSwitch->eraseFromParent(); in emitCallAndSwitchStatement()
646 BranchInst::Create(TheSwitch->getSuccessor(1), TheSwitch->getSuccessor(2), in emitCallAndSwitchStatement()
647 call, TheSwitch); in emitCallAndSwitchStatement()
648 TheSwitch->eraseFromParent(); in emitCallAndSwitchStatement()
653 TheSwitch->setCondition(call); in emitCallAndSwitchStatement()
654 TheSwitch->setDefaultDest(TheSwitch->getSuccessor(NumExitBlocks)); in emitCallAndSwitchStatement()
656 TheSwitch->removeCase(SwitchInst::CaseIt(TheSwitch, NumExitBlocks-1)); in emitCallAndSwitchStatement()