[Mlir-commits] [llvm] [mlir] [LLVM][NVPTX][MLIR] Add mbarrier layout support (PR #217252)

Guray Ozen llvmlistbot at llvm.org
Wed Aug 19 03:57:43 PDT 2026


================
@@ -3681,9 +3398,12 @@ void Tcgen05MmaSmemDescOp::createSmemDescriptor(Operation &op,
 //===----------------------------------------------------------------------===//
 
 std::string NVVM::MBarrierInitOp::getPtx() {
-  bool isShared = isPtrInSharedCTASpace(getAddr());
-  return isShared ? std::string("mbarrier.init.shared.b64 [%0], %1;")
-                  : std::string("mbarrier.init.b64 [%0], %1;");
+  std::string space = isPtrInSharedCTASpace(getAddr()) ? ".shared" : "";
+  std::string layout =
+      getLayout() ? llvm::formatv(".layout::v{0}", *getLayout()).str() : "";
----------------
grypp wrote:

Can we deprecate this path in another pr? Like like we don't need to maintain yhis anymore

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


More information about the Mlir-commits mailing list