MLIR
15.0.0git
|
Specialization of arith.constant
op that returns an integer value.
More...
#include "mlir/Dialect/Arithmetic/IR/Arithmetic.h"
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) |
Specialization of arith.constant
op that returns an integer value.
Definition at line 42 of file Arithmetic.h.
|
static |
Build a constant int op that produces an integer of the specified width.
Definition at line 144 of file ArithmeticOps.cpp.
References mlir::Builder::getIntegerAttr(), and mlir::Builder::getIntegerType().
|
static |
Build a constant int op that produces an integer of the specified type, which must be an integer type.
Definition at line 151 of file ArithmeticOps.cpp.
References mlir::Builder::getIntegerAttr(), and mlir::Type::isSignlessInteger().
|
static |
Definition at line 159 of file ArithmeticOps.cpp.
Referenced by value(), mlir::arith::ConstantFloatOp::value(), and mlir::arith::ConstantIndexOp::value().
|
inline |
Definition at line 55 of file Arithmetic.h.
References classof().