MLIR
20.0.0git
|
Class used for building a 'llvm.getelementptr'. More...
#include "mlir/Dialect/LLVMIR/LLVMDialect.h"
Public Member Functions | |
GEPArg (int32_t integer) | |
Constructs a GEPArg with a constant index. More... | |
GEPArg (Value value) | |
Constructs a GEPArg with a dynamic index. More... | |
Class used for building a 'llvm.getelementptr'.
A single instance represents a sum type that is either a 'Value' or a constant 'GEPConstantIndex' index. The former represents a dynamic index in a GEP operation, while the later is a constant index as is required for indices into struct types.
Definition at line 76 of file LLVMDialect.h.
|
inline |
Constructs a GEPArg with a constant index.
Definition at line 81 of file LLVMDialect.h.
|
inline |
Constructs a GEPArg with a dynamic index.
Definition at line 84 of file LLVMDialect.h.