|
MLIR 22.0.0git
|
Specialization of arith.constant op that returns an integer value. More...
#include "mlir/Dialect/Arith/IR/Arith.h"
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. | |
| 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. | |
| 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. | |
| 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) |
Specialization of arith.constant op that returns an integer value.
|
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(), mlir::Builder::getIntegerType(), result, and 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(), result, and 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(), result, and value().
Definition at line 318 of file ArithOps.cpp.
|
static |
Definition at line 269 of file ArithOps.cpp.
References create(), mlir::ImplicitLocOpBuilder::getLoc(), and value().
|
static |
Definition at line 312 of file ArithOps.cpp.
References create(), mlir::ImplicitLocOpBuilder::getLoc(), and value().
|
static |
Definition at line 291 of file ArithOps.cpp.
References create(), mlir::ImplicitLocOpBuilder::getLoc(), and value().
|
static |
Definition at line 258 of file ArithOps.cpp.
References build(), mlir::OpBuilder::create(), result, and value().
Referenced by mlir::sparse_tensor::constantI1(), mlir::sparse_tensor::constantI16(), mlir::sparse_tensor::constantI32(), mlir::sparse_tensor::constantI64(), mlir::sparse_tensor::constantI8(), create(), create(), create(), createLinalgBodyCalculationForElementwiseOp(), getLaneId(), getZero(), and SelectToExtUI::matchAndRewrite().
|
static |
Definition at line 302 of file ArithOps.cpp.
References build(), mlir::OpBuilder::create(), result, and value().
|
static |
Definition at line 281 of file ArithOps.cpp.
References build(), mlir::OpBuilder::create(), result, and value().
|
inlinestatic |
Definition at line 57 of file Arith.h.
References mlir::TypeID::get().
|
inline |