getElementValue overloads

Synopses

Declared in <llvm/IR/Constants.h>

Return an undef of the right value for the specified GEP index.

UndefValue*
getElementValue(unsigned int Idx) const;

Return an undef of the right value for the specified GEP index if we can, otherwise return null (e.g. if C is a ConstantExpr).

Return Value

  • An undef of the indexed element type.

  • An undef of the indexed element type, or null if unavailable.

Parameters

Name

Description

Idx

The zero‐based element index.

C

The GEP index constant.

Created with MrDocs