[Mlir-commits] [mlir] [MLIR][NVVM] Enable import of nvvm.barrier0 (PR #119965)

Tobias Gysi llvmlistbot at llvm.org
Sat Dec 14 08:14:32 PST 2024


================
@@ -71,12 +71,13 @@ define float @nvvm_rcp(float %0) {
   ret float %2
 }
 
-; TODO: Support the intrinsics below once they derive from NVVM_IntrOp rather than from NVVM_Op.
+define void @llvm_nvvm_barrier0() {
+  call void @llvm.nvvm.barrier0()
+  ret void
+}
----------------
gysit wrote:

```suggestion
; CHECK-LABEL: @llvm_nvvm_barrier0()
define void @llvm_nvvm_barrier0() {
  ; CHECK: nvvm.barrier0
  call void @llvm.nvvm.barrier0()
  ret void
}
```
Can you add check lines to verify the right operation is produced.

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


More information about the Mlir-commits mailing list