Searched refs:TheSwitch (Results 1 – 3 of 3) sorted by relevance
/external/llvm/lib/Transforms/Utils/ |
D | CodeExtractor.cpp | 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() [all …]
|
/external/swiftshader/third_party/LLVM/lib/Transforms/Utils/ |
D | CodeExtractor.cpp | 467 SwitchInst *TheSwitch = in emitCallAndSwitchStatement() local 510 TheSwitch->addCase(ConstantInt::get(Type::getInt16Ty(Context), in emitCallAndSwitchStatement() 582 Type *OldFnRetTy = TheSwitch->getParent()->getParent()->getReturnType(); in emitCallAndSwitchStatement() 591 ReturnInst::Create(Context, 0, TheSwitch); // Return void in emitCallAndSwitchStatement() 592 } else if (OldFnRetTy == TheSwitch->getCondition()->getType()) { in emitCallAndSwitchStatement() 594 ReturnInst::Create(Context, TheSwitch->getCondition(), TheSwitch); in emitCallAndSwitchStatement() 599 Constant::getNullValue(OldFnRetTy), TheSwitch); in emitCallAndSwitchStatement() 602 TheSwitch->eraseFromParent(); in emitCallAndSwitchStatement() 607 BranchInst::Create(TheSwitch->getSuccessor(1), TheSwitch); in emitCallAndSwitchStatement() 608 TheSwitch->eraseFromParent(); in emitCallAndSwitchStatement() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Utils/ |
D | CodeExtractor.cpp | 954 SwitchInst *TheSwitch = in emitCallAndSwitchStatement() local 996 TheSwitch->addCase(ConstantInt::get(Type::getInt16Ty(Context), in emitCallAndSwitchStatement() 1007 Type *OldFnRetTy = TheSwitch->getParent()->getParent()->getReturnType(); in emitCallAndSwitchStatement() 1016 ReturnInst::Create(Context, nullptr, TheSwitch); // Return void in emitCallAndSwitchStatement() 1017 } else if (OldFnRetTy == TheSwitch->getCondition()->getType()) { in emitCallAndSwitchStatement() 1019 ReturnInst::Create(Context, TheSwitch->getCondition(), TheSwitch); in emitCallAndSwitchStatement() 1024 Constant::getNullValue(OldFnRetTy), TheSwitch); in emitCallAndSwitchStatement() 1027 TheSwitch->eraseFromParent(); in emitCallAndSwitchStatement() 1032 BranchInst::Create(TheSwitch->getSuccessor(1), TheSwitch); in emitCallAndSwitchStatement() 1033 TheSwitch->eraseFromParent(); in emitCallAndSwitchStatement() [all …]
|