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

Guray Ozen llvmlistbot at llvm.org
Mon Nov 13 02:39:50 PST 2023


================
@@ -433,6 +433,34 @@ def GPU_GPUFuncOp : GPU_Op<"func", [
   let hasVerifier = 1;
 }
 
+def GPU_DynamicSharedMemoryOp : GPU_Op<"dynamic_shared_memory", 
+  [ParentOneOf<["GPUFuncOp", "LaunchOp", 
+                "mlir::LLVM::LLVMFuncOp", "mlir::func::FuncOp"]>]>
----------------
grypp wrote:

We actually need an Op that has SymbolTable, so I added this check in the verifier and removed this check.
I also added `Pure`, yes the op has no memory side effect and can be hoisted. 



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


More information about the Mlir-commits mailing list