llvm::canConstantFoldCallTo

Return true if it is even possible to fold a call to the specified function.

Synopsis

Declared in <llvm/Analysis/ConstantFolding.h>

bool
canConstantFoldCallTo(
    CallBase const* Call,
    Function const* F);

Return Value

True if a call to F may be constant-folded.

Parameters

NameDescription
CallCall site providing calling-convention and FP context.
FCallee function being considered for folding.