Fold a GEP using InstructionSimplify.
Declared in <llvm/Analysis/InstSimplifyFolder.h>
virtual
Value*
FoldGEP(
Type* Ty,
Value* Ptr,
ArrayRef<Value*> IdxList,
GEPNoWrapFlags NW) const override;
The simplified value, or nullptr if the operation cannot be folded.
| Name | Description |
|---|---|
| Ty | The GEP source element type. |
| Ptr | The base pointer value. |
| IdxList | The GEP index values. |
| NW | No-wrap flags for the GEP. |