MLIR  19.0.0git
Public Member Functions | List of all members
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. More...
 
 GEPArg (Value value)
 Constructs a GEPArg with a dynamic index. More...
 

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

◆ GEPArg() [2/2]

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

Constructs a GEPArg with a dynamic index.

Definition at line 83 of file LLVMDialect.h.


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