[Mlir-commits] [mlir] [mlir][nvvm] Introduce `nvvm.barrier` OP (PR #81487)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Tue Feb 13 01:08:46 PST 2024


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff afa413a132c0959295df36c28814ee83948e4931 8d79471d1a5e20db88e7c15d567ad1823f75b7d6 -- mlir/lib/Dialect/LLVMIR/IR/NVVMDialect.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/mlir/lib/Dialect/LLVMIR/IR/NVVMDialect.cpp b/mlir/lib/Dialect/LLVMIR/IR/NVVMDialect.cpp
index 5fcedb03c2..137e8e1679 100644
--- a/mlir/lib/Dialect/LLVMIR/IR/NVVMDialect.cpp
+++ b/mlir/lib/Dialect/LLVMIR/IR/NVVMDialect.cpp
@@ -1023,8 +1023,9 @@ LogicalResult NVVM::SetMaxRegisterOp::verify() {
 }
 
 LogicalResult NVVM::BarrierOp::verify() {
-  if(getNumberOfThreads() && !getBarrierId())
-    return emitOpError("barrier id is missing, it should be set between 0 to 15");
+  if (getNumberOfThreads() && !getBarrierId())
+    return emitOpError(
+        "barrier id is missing, it should be set between 0 to 15");
   return success();
 }
 

``````````

</details>


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


More information about the Mlir-commits mailing list