Given operands for a GetElementPtrInst, fold the result or return null.
Declared in <llvm/Analysis/InstructionSimplify.h>
Value*
simplifyGEPInst(
Type* SrcTy,
Value* Ptr,
ArrayRef<Value*> Indices,
GEPNoWrapFlags NW,
SimplifyQuery const& Q);
The folded value, or null if no simplification was found.
| Name | Description |
|---|---|
| SrcTy | Source element type of the GEP. |
| Ptr | Base pointer operand. |
| Indices | Index operands of the GEP. |
| NW | No-wrap flags of the GEP. |
| Q | Simplification query providing analyses and flags. |