Given a callsite, callee, and arguments, fold the result or return null.

Synopsis

Declared in <llvm/Analysis/InstructionSimplify.h>

Value*
simplifyCall(
    CallBase* Call,
    Value* Callee,
    ArrayRef<Value*> Args,
    SimplifyQuery const& Q);

Return Value

The folded value, or null if no simplification was found.

Parameters

Name

Description

Call

Callsite being simplified.

Callee

Callee value of the call.

Args

Argument values of the call.

Q

Simplification query providing analyses and flags.

Created with MrDocs