ΒΆllvm::Constant* ConstantFoldConstant(
const llvm::Constant* C,
const llvm::DataLayout& DL,
const llvm::TargetLibraryInfo* TLI = nullptr)
llvm::Constant* ConstantFoldConstant(
const llvm::Constant* C,
const llvm::DataLayout& DL,
const llvm::TargetLibraryInfo* TLI = nullptr)
Description
ConstantFoldConstant - Fold the constant using the specified DataLayout. This function always returns a non-null constant: Either the folding result, or the original constant if further folding is not possible.
Declared at: llvm/include/llvm/Analysis/ConstantFolding.h:57
Parameters
- const llvm::Constant* C
- const llvm::DataLayout& DL
- const llvm::TargetLibraryInfo* TLI = nullptr