ΒΆllvm::Constant* ConstantFoldCall(
    const llvm::CallBase* Call,
    llvm::Function* F,
    ArrayRef<llvm::Constant*> Operands,
    const llvm::TargetLibraryInfo* TLI = nullptr)

Description

ConstantFoldCall - Attempt to constant fold a call to the specified function with the specified arguments, returning null if unsuccessful.

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

Parameters

const llvm::CallBase* Call
llvm::Function* F
ArrayRef<llvm::Constant*> Operands
const llvm::TargetLibraryInfo* TLI = nullptr