[Mlir-commits] [mlir] [mlir] Add fast and ftz flags in gpu-lower-to-nvvm-pipeline (PR #84199)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Wed Mar 6 09:12:53 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 67c82d6ffb4bbc21212116a11f390761d859297a 5c94e0f4082736f127b286edf0e8f355550b0846 -- mlir/include/mlir/Dialect/GPU/Pipelines/Passes.h mlir/lib/Dialect/GPU/Pipelines/GPUToNVVMPipeline.cpp
``````````

</details>

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

``````````diff
diff --git a/mlir/include/mlir/Dialect/GPU/Pipelines/Passes.h b/mlir/include/mlir/Dialect/GPU/Pipelines/Passes.h
index f98dbc75a4..3afd4b82ea 100644
--- a/mlir/include/mlir/Dialect/GPU/Pipelines/Passes.h
+++ b/mlir/include/mlir/Dialect/GPU/Pipelines/Passes.h
@@ -54,15 +54,11 @@ struct GPUToNVVMPipelineOptions
           "this should be false until the GPU layering is fixed)"),
       llvm::cl::init(false)};
   PassOptions::Option<bool> ftz{
-      *this, "ftz",
-      llvm::cl::desc(
-          "Enable flush to zero for denormals"),
-      llvm::cl::init(false)};
-  PassOptions::Option<bool> fast{
-      *this, "fast",
-      llvm::cl::desc(
-          "Enable fast math mode."),
+      *this, "ftz", llvm::cl::desc("Enable flush to zero for denormals"),
       llvm::cl::init(false)};
+  PassOptions::Option<bool> fast{*this, "fast",
+                                 llvm::cl::desc("Enable fast math mode."),
+                                 llvm::cl::init(false)};
 };
 
 //===----------------------------------------------------------------------===//

``````````

</details>


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


More information about the Mlir-commits mailing list