[Mlir-commits] [mlir] [mlir][NFC] update `mlir/lib` create APIs (35/n) (PR #150708)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Fri Jul 25 14:47:20 PDT 2025


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 HEAD~1 HEAD --extensions cpp -- mlir/lib/Conversion/GPUCommon/GPUToLLVMConversion.cpp mlir/lib/Conversion/MathToFuncs/MathToFuncs.cpp mlir/lib/Dialect/SPIRV/IR/SPIRVDialect.cpp
``````````

</details>

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

``````````diff
diff --git a/mlir/lib/Conversion/GPUCommon/GPUToLLVMConversion.cpp b/mlir/lib/Conversion/GPUCommon/GPUToLLVMConversion.cpp
index c915d95c8..3cfbd898e 100644
--- a/mlir/lib/Conversion/GPUCommon/GPUToLLVMConversion.cpp
+++ b/mlir/lib/Conversion/GPUCommon/GPUToLLVMConversion.cpp
@@ -580,8 +580,7 @@ LLVM::CallOp FunctionCallBuilder::create(Location loc, OpBuilder &builder,
     if (auto function = module.lookupSymbol<LLVM::LLVMFuncOp>(functionName))
       return function;
     auto builder = OpBuilder::atBlockEnd(module.getBody());
-    return LLVM::LLVMFuncOp::create(builder,
-                                    loc, functionName, functionType);
+    return LLVM::LLVMFuncOp::create(builder, loc, functionName, functionType);
   }();
   return LLVM::CallOp::create(builder, loc, function, arguments);
 }

``````````

</details>


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


More information about the Mlir-commits mailing list