llvm::ConstantDataSequential::getElementAsConstant

Return a Constant for a specified index's element.

Synopsis

Declared in <llvm/IR/Constants.h>

Constant*
getElementAsConstant(uint64_t i) const;

Description

Note that this has to compute a new constant to return, so it isn't as efficient as getElementAsInteger/Float/Double.

Return Value

The element at the given index as a Constant.

Parameters

NameDescription
iThe zero-based element index.