llvm::simplifyExtractElementInst

Given operands for an ExtractElementInst, fold the result or return null.

Synopsis

Declared in <llvm/Analysis/InstructionSimplify.h>

Value*
simplifyExtractElementInst(
    Value* Vec,
    Value* Idx,
    SimplifyQuery const& Q);

Return Value

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

Parameters

NameDescription
VecVector value being extracted from.
IdxIndex of the extracted element.
QSimplification query providing analyses and flags.