[Mlir-commits] [llvm] [mlir] [LLVM][NVPTX][MLIR] Add mbarrier layout support (PR #217252)
Durgadoss R
llvmlistbot at llvm.org
Wed Aug 19 03:09:57 PDT 2026
================
@@ -463,6 +468,32 @@ Performing `mbarrier.init` on a valid mbarrier object is undefined;
use `mbarrier.inval` before reusing the memory for another mbarrier
or any other purpose.
+An mbarrier object initialized with a particular layout must only be
+used with operations that support that layout; the layout of an existing
+mbarrier object can be queried with `llvm.nvvm.mbarrier.check.layout.*`.
+
+#### '`llvm.nvvm.mbarrier.check.layout`'
+
+##### Syntax:
+
+```llvm
+declare i1 @llvm.nvvm.mbarrier.check.layout(ptr addrspace(3) %addr, i32 immarg %layout)
+```
+
+##### Overview:
+
+The '`@llvm.nvvm.mbarrier.check.layout.*`' intrinsics test whether the
+mbarrier object at `addr` was initialized with the layout named by
+`%layout`. They return `true` when the layout matches and `false`
----------------
durga4github wrote:
...`%layout, returning `true` on a match and `false` otherwise....
https://github.com/llvm/llvm-project/pull/217252
More information about the Mlir-commits
mailing list