MLIR  15.0.0git
Public Member Functions | Static Public Member Functions | List of all members
mlir::arith::ConstantIndexOp Class Reference

Specialization of arith.constant op that returns an integer of index type. More...

#include "mlir/Dialect/Arithmetic/IR/Arithmetic.h"

+ Inheritance diagram for mlir::arith::ConstantIndexOp:
+ Collaboration diagram for mlir::arith::ConstantIndexOp:

Public Member Functions

int64_t value ()
 

Static Public Member Functions

static void build (OpBuilder &builder, OperationState &result, int64_t value)
 Build a constant int op that produces an index. More...
 
static bool classof (Operation *op)
 

Detailed Description

Specialization of arith.constant op that returns an integer of index type.

Definition at line 79 of file Arithmetic.h.

Member Function Documentation

◆ build()

void arith::ConstantIndexOp::build ( OpBuilder builder,
OperationState result,
int64_t  value 
)
static

Build a constant int op that produces an index.

Definition at line 177 of file ArithmeticOps.cpp.

References mlir::Builder::getIndexAttr(), and mlir::Builder::getIndexType().

◆ classof()

bool arith::ConstantIndexOp::classof ( Operation op)
static

◆ value()

int64_t mlir::arith::ConstantIndexOp::value ( )
inline

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