[Mlir-commits] [mlir] Reland [MLIR] Make resolveCallable customizable in CallOpInterface (PR #107989)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Tue Sep 10 04:52:15 PDT 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 daf208598b06a0b8b3dc3c30b023334182bdf170 67383ff915a1d2a0dc374d6c948241f71e4a42db --extensions cpp,h -- mlir/include/mlir/Interfaces/CallInterfaces.h mlir/lib/Analysis/CallGraph.cpp mlir/lib/Analysis/DataFlow/DeadCodeAnalysis.cpp mlir/lib/Analysis/DataFlow/DenseAnalysis.cpp mlir/lib/Analysis/DataFlow/SparseAnalysis.cpp mlir/lib/Dialect/Bufferization/Transforms/OwnershipBasedBufferDeallocation.cpp mlir/lib/Interfaces/CallInterfaces.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/mlir/include/mlir/Interfaces/CallInterfaces.h b/mlir/include/mlir/Interfaces/CallInterfaces.h
index 58c37f01ca..0020c19333 100644
--- a/mlir/include/mlir/Interfaces/CallInterfaces.h
+++ b/mlir/include/mlir/Interfaces/CallInterfaces.h
@@ -32,7 +32,8 @@ namespace call_interface_impl {
/// nullptr if a valid callable was not resolved. `symbolTable` is an optional
/// parameter that will allow for using a cached symbol table for symbol lookups
/// instead of performing an O(N) scan.
-Operation *resolveCallable(CallOpInterface call, SymbolTableCollection *symbolTable = nullptr);
+Operation *resolveCallable(CallOpInterface call,
+ SymbolTableCollection *symbolTable = nullptr);
} // namespace call_interface_impl
diff --git a/mlir/lib/Interfaces/CallInterfaces.cpp b/mlir/lib/Interfaces/CallInterfaces.cpp
index 47f8021f50..9e5bc159dc 100644
--- a/mlir/lib/Interfaces/CallInterfaces.cpp
+++ b/mlir/lib/Interfaces/CallInterfaces.cpp
@@ -15,7 +15,8 @@ using namespace mlir;
//===----------------------------------------------------------------------===//
Operation *
-call_interface_impl::resolveCallable(CallOpInterface call, SymbolTableCollection *symbolTable) {
+call_interface_impl::resolveCallable(CallOpInterface call,
+ SymbolTableCollection *symbolTable) {
CallInterfaceCallable callable = call.getCallableForCallee();
if (auto symbolVal = dyn_cast<Value>(callable))
return symbolVal.getDefiningOp();
``````````
</details>
https://github.com/llvm/llvm-project/pull/107989
More information about the Mlir-commits
mailing list