Home
last modified time | relevance | path

Searched refs:TheSwitch (Results 1 – 2 of 2) sorted by relevance

/external/llvm/lib/Transforms/Utils/
DCodeExtractor.cpp501 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/
DCodeExtractor.cpp467 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 …]