Given a load instruction and its pointer operand, fold the result or return null.

Synopsis

Declared in <llvm/Analysis/InstructionSimplify.h>

Value*
simplifyLoadInst(
    LoadInst* LI,
    Value* PtrOp,
    SimplifyQuery const& Q);

Return Value

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

Parameters

Name

Description

LI

Load instruction being simplified.

PtrOp

Pointer operand of the load.

Q

Simplification query providing analyses and flags.

Created with MrDocs