Given operands for a GetElementPtrInst, fold the result or return null.
Synopsis
Declared in <llvm/Analysis/InstructionSimplify.h>
Value*
simplifyGEPInst(
Type* SrcTy,
Value* Ptr,
ArrayRef<Value*> Indices,
GEPNoWrapFlags NW,
SimplifyQuery const& Q);
Return Value
The folded value, or null if no simplification was found.
Parameters
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. |
Created with MrDocs