Returns true if the value V is a pointer into a ConstantDataArray. If successful Slice will point to a ConstantDataArray info object with an appropriate offset.
Declared in <llvm/Analysis/ValueTracking.h>
bool
getConstantDataArrayInfo(
Value const* V,
ConstantDataArraySlice& Slice,
unsigned int ElementSize,
uint64_t Offset = 0);
True if V points into a ConstantDataArray (or zeroinitializer).
| Name | Description |
|---|---|
| V | Pointer value that may address a constant data array. |
| Slice | Output slice describing the constant data region. |
| ElementSize | Size in bits of each array element. |
| Offset | Additional byte offset applied before matching. |