ΒΆvoid convertConstantExprsToInstructions(
llvm::Instruction* I,
llvm::ConstantExpr* CE,
SmallPtrSetImpl<llvm::Instruction*>* Insts =
nullptr)
void convertConstantExprsToInstructions(
llvm::Instruction* I,
llvm::ConstantExpr* CE,
SmallPtrSetImpl<llvm::Instruction*>* Insts =
nullptr)
Description
The given instruction \p I contains given constant expression \p CE as one of its operands, possibly nested within constant expression trees. Convert all reachable paths from contant expression operands of \p I to \p CE into corresponding instructions, insert them before \p I, update operands of \p I accordingly, and if required, return all such converted instructions at\p Insts.
Declared at: llvm/include/llvm/IR/ReplaceConstant.h:33
Parameters
- llvm::Instruction* I
- llvm::ConstantExpr* CE
- SmallPtrSetImpl<llvm::Instruction*>* Insts = nullptr