MLIR 22.0.0git
mlir::LLVM::GEPArg Class Reference

Class used for building a 'llvm.getelementptr'. More...

#include "mlir/Dialect/LLVMIR/LLVMDialect.h"

Inheritance diagram for mlir::LLVM::GEPArg:

Public Member Functions

 GEPArg (int32_t integer)
 Constructs a GEPArg with a constant index.
 GEPArg (Value value)
 Constructs a GEPArg with a dynamic index.

Detailed Description

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 71 of file LLVMDialect.h.

Constructor & Destructor Documentation

◆ GEPArg() [1/2]

mlir::LLVM::GEPArg::GEPArg ( int32_t integer)
inline

Constructs a GEPArg with a constant index.

Definition at line 76 of file LLVMDialect.h.

◆ GEPArg() [2/2]

mlir::LLVM::GEPArg::GEPArg ( Value value)
inline

Constructs a GEPArg with a dynamic index.

Definition at line 79 of file LLVMDialect.h.


The documentation for this class was generated from the following file: