MLIR  20.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

::mlir::TypeID resolveTypeID ()
 
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 54 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 264 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 257 of file ArithOps.cpp.

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

◆ classof()

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

Definition at line 272 of file ArithOps.cpp.

◆ resolveTypeID()

::mlir::TypeID mlir::arith::ConstantIntOp::resolveTypeID ( )
inlinestatic

Definition at line 57 of file Arith.h.

◆ value()

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

Definition at line 68 of file Arith.h.


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