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

Name

Description

Call

Call site providing calling‐convention and FP context.

F

Callee function being considered for folding.

Created with MrDocs