[Mlir-commits] [mlir] [mlir][gpu] Introduce `gpu.dynamic_shared_memory` Op (PR #71546)

Mehdi Amini llvmlistbot at llvm.org
Mon Nov 13 05:49:02 PST 2023


================
@@ -32,6 +35,18 @@
 namespace mlir {
 namespace gpu {
 
+/// GPU memory space identifiers.
+enum GPUMemorySpace {
+  /// Generic memory space identifier.
+  kGenericMemorySpace = 0,
+
+  /// Global memory space identifier.
+  kGlobalMemorySpace = 1,
+
+  /// Shared memory space identifier.
+  kSharedMemorySpace = 3
+};
----------------
joker-eph wrote:

Why are we trying to support integer instead of sticking with the first class attribute?


https://github.com/llvm/llvm-project/pull/71546


More information about the Mlir-commits mailing list