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

Specialization of arith.constant op that returns an integer value. More...

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

+ Inheritance diagram for mlir::arith::ConstantIntOp:

Public Member Functions

int64_t value ()
 

Static Public Member Functions

static void build (OpBuilder &builder, OperationState &result, int64_t value, unsigned width)
 Build a constant int op that produces an integer of the specified width. More...
 
static void build (OpBuilder &builder, OperationState &result, int64_t value, Type type)
 Build a constant int op that produces an integer of the specified type, which must be an integer type. More...
 
static bool classof (Operation *op)
 

Detailed Description

Specialization of arith.constant op that returns an integer value.

Definition at line 53 of file Arith.h.

Member Function Documentation

◆ build() [1/2]

void arith::ConstantIntOp::build ( OpBuilder builder,
OperationState result,
int64_t  value,
Type  type 
)
static

Build a constant int op that produces an integer of the specified type, which must be an integer type.

Definition at line 225 of file ArithOps.cpp.

References mlir::Builder::getIntegerAttr(), and mlir::Type::isSignlessInteger().

◆ build() [2/2]

void arith::ConstantIntOp::build ( OpBuilder builder,
OperationState result,
int64_t  value,
unsigned  width 
)
static

Build a constant int op that produces an integer of the specified width.

Definition at line 218 of file ArithOps.cpp.

References mlir::Builder::getIntegerAttr(), and mlir::Builder::getIntegerType().

◆ classof()

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

Definition at line 233 of file ArithOps.cpp.

◆ value()

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

Definition at line 66 of file Arith.h.


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