ΒΆllvm::Constant* ConstantFoldConstant(
    const llvm::Constant* C,
    const llvm::DataLayout& DL,
    const llvm::TargetLibraryInfo* TLI = nullptr)

Description

ConstantFoldConstant - Attempt to fold the constant using the specified DataLayout. If successful, the constant result is returned, if not, null is returned.

Declared at: llvm/include/llvm/Analysis/ConstantFolding.h:52

Parameters

const llvm::Constant* C
const llvm::DataLayout& DL
const llvm::TargetLibraryInfo* TLI = nullptr