[Mlir-commits] [mlir] 0d0a94a - [mlir][bufferization][NFC] Fix typo in AllocTensorOp builders

Matthias Springer llvmlistbot at llvm.org
Mon Jun 27 04:43:31 PDT 2022


Author: Matthias Springer
Date: 2022-06-27T13:41:18+02:00
New Revision: 0d0a94a792c047c3753bb438d869117c8530d2c7

URL: https://github.com/llvm/llvm-project/commit/0d0a94a792c047c3753bb438d869117c8530d2c7
DIFF: https://github.com/llvm/llvm-project/commit/0d0a94a792c047c3753bb438d869117c8530d2c7.diff

LOG: [mlir][bufferization][NFC] Fix typo in AllocTensorOp builders

Added: 
    

Modified: 
    mlir/lib/Dialect/Bufferization/IR/BufferizationOps.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Dialect/Bufferization/IR/BufferizationOps.cpp b/mlir/lib/Dialect/Bufferization/IR/BufferizationOps.cpp
index e10d96b451d4..158f6edd1fa3 100644
--- a/mlir/lib/Dialect/Bufferization/IR/BufferizationOps.cpp
+++ b/mlir/lib/Dialect/Bufferization/IR/BufferizationOps.cpp
@@ -281,13 +281,14 @@ LogicalResult AllocTensorOp::verify() {
 void AllocTensorOp::build(OpBuilder &builder, OperationState &result,
                           RankedTensorType type, ValueRange dynamicSizes) {
   build(builder, result, type, dynamicSizes, /*copy=*/Value(),
-        /*memory_space=*/BoolAttr());
+        /*memory_space=*/IntegerAttr());
 }
 
 void AllocTensorOp::build(OpBuilder &builder, OperationState &result,
                           RankedTensorType type, ValueRange dynamicSizes,
                           Value copy) {
-  build(builder, result, type, dynamicSizes, copy, /*memory_space=*/BoolAttr());
+  build(builder, result, type, dynamicSizes, copy,
+        /*memory_space=*/IntegerAttr());
 }
 
 namespace {


        


More information about the Mlir-commits mailing list