Skip to content

Commit 770a869

Browse files
committed
avoid unnecessary fallback
1 parent 34f8b33 commit 770a869

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

mlir/include/mlir/Dialect/MemRef/IR/MemRefOps.td

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1239,7 +1239,7 @@ def LoadOp : MemRef_Op<"load",
12391239
CArg<"bool", "false">:$nontemporal,
12401240
CArg<"llvm::MaybeAlign", "llvm::MaybeAlign()">:$alignment), [{
12411241
return build($_builder, $_state, memref, indices, nontemporal,
1242-
alignment ? $_builder.getI64IntegerAttr(alignment.valueOrOne().value()) :
1242+
alignment ? $_builder.getI64IntegerAttr(alignment->value()) :
12431243
nullptr);
12441244
}]>,
12451245
OpBuilder<(ins "Type":$resultType,
@@ -1248,7 +1248,7 @@ def LoadOp : MemRef_Op<"load",
12481248
CArg<"bool", "false">:$nontemporal,
12491249
CArg<"llvm::MaybeAlign", "llvm::MaybeAlign()">:$alignment), [{
12501250
return build($_builder, $_state, resultType, memref, indices, nontemporal,
1251-
alignment ? $_builder.getI64IntegerAttr(alignment.valueOrOne().value()) :
1251+
alignment ? $_builder.getI64IntegerAttr(alignment->value()) :
12521252
nullptr);
12531253
}]>,
12541254
OpBuilder<(ins "TypeRange":$resultTypes,
@@ -1257,7 +1257,7 @@ def LoadOp : MemRef_Op<"load",
12571257
CArg<"bool", "false">:$nontemporal,
12581258
CArg<"llvm::MaybeAlign", "llvm::MaybeAlign()">:$alignment), [{
12591259
return build($_builder, $_state, resultTypes, memref, indices, nontemporal,
1260-
alignment ? $_builder.getI64IntegerAttr(alignment.valueOrOne().value()) :
1260+
alignment ? $_builder.getI64IntegerAttr(alignment->value()) :
12611261
nullptr);
12621262
}]>
12631263
];
@@ -1973,7 +1973,7 @@ def MemRef_StoreOp : MemRef_Op<"store",
19731973
CArg<"bool", "false">:$nontemporal,
19741974
CArg<"llvm::MaybeAlign", "llvm::MaybeAlign()">:$alignment), [{
19751975
return build($_builder, $_state, valueToStore, memref, indices, nontemporal,
1976-
alignment ? $_builder.getI64IntegerAttr(alignment.valueOrOne().value()) :
1976+
alignment ? $_builder.getI64IntegerAttr(alignment->value()) :
19771977
nullptr);
19781978
}]>,
19791979
OpBuilder<(ins "Value":$valueToStore, "Value":$memref), [{

0 commit comments

Comments
 (0)