ΒΆllvm::Constant* ConstantFoldCastOperand(
unsigned int Opcode,
llvm::Constant* C,
llvm::Type* DestTy,
const llvm::DataLayout& DL)
llvm::Constant* ConstantFoldCastOperand(
unsigned int Opcode,
llvm::Constant* C,
llvm::Type* DestTy,
const llvm::DataLayout& DL)
Description
Attempt to constant fold a cast with the specified operand. If it fails, it returns a constant expression of the specified operand.
Declared at: llvm/include/llvm/Analysis/ConstantFolding.h:94
Parameters
- unsigned int Opcode
- llvm::Constant* C
- llvm::Type* DestTy
- const llvm::DataLayout& DL