[Mlir-commits] [mlir] 6ff192a - [mlir] Fix flang build error due to gpu dialect enums

llvmlistbot at llvm.org llvmlistbot at llvm.org
Mon Nov 1 15:14:33 PDT 2021


Author: thomasraoux
Date: 2021-11-01T15:14:24-07:00
New Revision: 6ff192a9faf108cf69e4d9398ffd21a7b3fc829d

URL: https://github.com/llvm/llvm-project/commit/6ff192a9faf108cf69e4d9398ffd21a7b3fc829d
DIFF: https://github.com/llvm/llvm-project/commit/6ff192a9faf108cf69e4d9398ffd21a7b3fc829d.diff

LOG: [mlir] Fix flang build error due to gpu dialect enums

Added: 
    

Modified: 
    mlir/include/mlir/Dialect/GPU/GPUOps.td

Removed: 
    


################################################################################
diff  --git a/mlir/include/mlir/Dialect/GPU/GPUOps.td b/mlir/include/mlir/Dialect/GPU/GPUOps.td
index 18b5adfd2445..3e6283393462 100644
--- a/mlir/include/mlir/Dialect/GPU/GPUOps.td
+++ b/mlir/include/mlir/Dialect/GPU/GPUOps.td
@@ -609,7 +609,9 @@ def GPU_AllReduceOperationAttr : StrEnumAttr<"AllReduceOperationAttr",
       GPU_AllReduceOpMul,
       GPU_AllReduceOpOr,
       GPU_AllReduceOpXor
-    ]>;
+    ]>{
+  let cppNamespace = "::mlir::gpu";
+}
 
 def GPU_AllReduceOp : GPU_Op<"all_reduce",
     [SameOperandsAndResultType, IsolatedFromAbove]>,
@@ -650,7 +652,10 @@ def GPU_ShuffleModeAttr : StrEnumAttr<"ShuffleModeAttr",
     "Indexing modes supported by gpu.shuffle.",
     [
       GPU_ShuffleOpXor,
-    ]>;
+    ]>{
+  let cppNamespace = "::mlir::gpu";
+}
+
 
 def GPU_ShuffleOp : GPU_Op<"shuffle", [NoSideEffect]>,
     Arguments<(ins AnyType:$value, I32:$offset, I32:$width,


        


More information about the Mlir-commits mailing list