MLIR  22.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 ConstantIntOp create (OpBuilder &builder, Location location, int64_t value, unsigned width)
 
static ConstantIntOp create (ImplicitLocOpBuilder &builder, int64_t value, unsigned width)
 
static void build (OpBuilder &builder, OperationState &result, Type type, int64_t value)
 Build a constant int op that produces an integer of the specified type, which must be an integer type. More...
 
static ConstantIntOp create (OpBuilder &builder, Location location, Type type, int64_t value)
 
static ConstantIntOp create (ImplicitLocOpBuilder &builder, Type type, int64_t value)
 
static void build (OpBuilder &builder, OperationState &result, Type type, const APInt &value)
 Build a constant int op that produces an integer from an APInt. More...
 
static ConstantIntOp create (OpBuilder &builder, Location location, Type type, const APInt &value)
 
static ConstantIntOp create (ImplicitLocOpBuilder &builder, Type type, const APInt &value)
 
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/3]

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 251 of file ArithOps.cpp.

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

◆ build() [2/3]

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

Build a constant int op that produces an integer from an APInt.

Definition at line 296 of file ArithOps.cpp.

References mlir::Builder::getIntegerAttr().

◆ build() [3/3]

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

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

Definition at line 275 of file ArithOps.cpp.

References mlir::Builder::getIntegerAttr().

◆ classof()

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

Definition at line 318 of file ArithOps.cpp.

◆ create() [1/6]

arith::ConstantIntOp arith::ConstantIntOp::create ( ImplicitLocOpBuilder builder,
int64_t  value,
unsigned  width 
)
static

Definition at line 269 of file ArithOps.cpp.

References mlir::ImplicitLocOpBuilder::getLoc().

◆ create() [2/6]

arith::ConstantIntOp arith::ConstantIntOp::create ( ImplicitLocOpBuilder builder,
Type  type,
const APInt &  value 
)
static

Definition at line 312 of file ArithOps.cpp.

References mlir::ImplicitLocOpBuilder::getLoc().

◆ create() [3/6]

arith::ConstantIntOp arith::ConstantIntOp::create ( ImplicitLocOpBuilder builder,
Type  type,
int64_t  value 
)
static

Definition at line 291 of file ArithOps.cpp.

References mlir::ImplicitLocOpBuilder::getLoc().

◆ create() [4/6]

arith::ConstantIntOp arith::ConstantIntOp::create ( OpBuilder builder,
Location  location,
int64_t  value,
unsigned  width 
)
static

◆ create() [5/6]

arith::ConstantIntOp arith::ConstantIntOp::create ( OpBuilder builder,
Location  location,
Type  type,
const APInt &  value 
)
static

Definition at line 302 of file ArithOps.cpp.

◆ create() [6/6]

arith::ConstantIntOp arith::ConstantIntOp::create ( OpBuilder builder,
Location  location,
Type  type,
int64_t  value 
)
static

Definition at line 281 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 84 of file Arith.h.


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