Skip to content

Commit f5897ba

Browse files
author
git apple-llvm automerger
committed
Merge commit '906295b8a31c' from llvm.org/main into next
2 parents ceab943 + 906295b commit f5897ba

File tree

4 files changed

+254
-94
lines changed

4 files changed

+254
-94
lines changed

mlir/include/mlir/Dialect/Affine/IR/AffineOps.h

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,21 @@ class AffineDmaStartOp
114114
AffineMap tagMap, ValueRange tagIndices, Value numElements,
115115
Value stride = nullptr, Value elementsPerStride = nullptr);
116116

117+
static AffineDmaStartOp
118+
create(OpBuilder &builder, Location ___location, Value srcMemRef,
119+
AffineMap srcMap, ValueRange srcIndices, Value destMemRef,
120+
AffineMap dstMap, ValueRange destIndices, Value tagMemRef,
121+
AffineMap tagMap, ValueRange tagIndices, Value numElements,
122+
Value stride = nullptr, Value elementsPerStride = nullptr);
123+
124+
static AffineDmaStartOp create(ImplicitLocOpBuilder &builder, Value srcMemRef,
125+
AffineMap srcMap, ValueRange srcIndices,
126+
Value destMemRef, AffineMap dstMap,
127+
ValueRange destIndices, Value tagMemRef,
128+
AffineMap tagMap, ValueRange tagIndices,
129+
Value numElements, Value stride = nullptr,
130+
Value elementsPerStride = nullptr);
131+
117132
/// Returns the operand index of the source memref.
118133
unsigned getSrcMemRefOperandIndex() { return 0; }
119134

@@ -319,6 +334,12 @@ class AffineDmaWaitOp
319334

320335
static void build(OpBuilder &builder, OperationState &result, Value tagMemRef,
321336
AffineMap tagMap, ValueRange tagIndices, Value numElements);
337+
static AffineDmaWaitOp create(OpBuilder &builder, Location ___location,
338+
Value tagMemRef, AffineMap tagMap,
339+
ValueRange tagIndices, Value numElements);
340+
static AffineDmaWaitOp create(ImplicitLocOpBuilder &builder, Value tagMemRef,
341+
AffineMap tagMap, ValueRange tagIndices,
342+
Value numElements);
322343

323344
static StringRef getOperationName() { return "affine.dma_wait"; }
324345

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

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,15 +59,27 @@ class ConstantIntOp : public arith::ConstantOp {
5959
/// Build a constant int op that produces an integer of the specified width.
6060
static void build(OpBuilder &builder, OperationState &result, int64_t value,
6161
unsigned width);
62+
static ConstantIntOp create(OpBuilder &builder, Location ___location,
63+
int64_t value, unsigned width);
64+
static ConstantIntOp create(ImplicitLocOpBuilder &builder, int64_t value,
65+
unsigned width);
6266

6367
/// Build a constant int op that produces an integer of the specified type,
6468
/// which must be an integer type.
6569
static void build(OpBuilder &builder, OperationState &result, Type type,
6670
int64_t value);
71+
static ConstantIntOp create(OpBuilder &builder, Location ___location, Type type,
72+
int64_t value);
73+
static ConstantIntOp create(ImplicitLocOpBuilder &builder, Type type,
74+
int64_t value);
6775

6876
/// Build a constant int op that produces an integer from an APInt
6977
static void build(OpBuilder &builder, OperationState &result, Type type,
7078
const APInt &value);
79+
static ConstantIntOp create(OpBuilder &builder, Location ___location, Type type,
80+
const APInt &value);
81+
static ConstantIntOp create(ImplicitLocOpBuilder &builder, Type type,
82+
const APInt &value);
7183

7284
inline int64_t value() {
7385
return cast<IntegerAttr>(arith::ConstantOp::getValue()).getInt();
@@ -85,6 +97,10 @@ class ConstantFloatOp : public arith::ConstantOp {
8597
/// Build a constant float op that produces a float of the specified type.
8698
static void build(OpBuilder &builder, OperationState &result, FloatType type,
8799
const APFloat &value);
100+
static ConstantFloatOp create(OpBuilder &builder, Location ___location,
101+
FloatType type, const APFloat &value);
102+
static ConstantFloatOp create(ImplicitLocOpBuilder &builder, FloatType type,
103+
const APFloat &value);
88104

89105
inline APFloat value() {
90106
return cast<FloatAttr>(arith::ConstantOp::getValue()).getValue();
@@ -100,6 +116,9 @@ class ConstantIndexOp : public arith::ConstantOp {
100116
static ::mlir::TypeID resolveTypeID() { return TypeID::get<ConstantOp>(); }
101117
/// Build a constant int op that produces an index.
102118
static void build(OpBuilder &builder, OperationState &result, int64_t value);
119+
static ConstantIndexOp create(OpBuilder &builder, Location ___location,
120+
int64_t value);
121+
static ConstantIndexOp create(ImplicitLocOpBuilder &builder, int64_t value);
103122

104123
inline int64_t value() {
105124
return cast<IntegerAttr>(arith::ConstantOp::getValue()).getInt();

0 commit comments

Comments
 (0)