[Mlir-commits] [mlir] [mlir] Reorder `declarePromisedInterface()` operands (PR #86628)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Mon Mar 25 22:46:23 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 53c44187538794a749746339595aa62ec08b3f4a e5f06867149c01c107bea20eac586088cabbe094 -- mlir/include/mlir/IR/Dialect.h mlir/lib/Dialect/Arith/IR/ArithDialect.cpp mlir/lib/Dialect/Complex/IR/ComplexDialect.cpp mlir/lib/Dialect/ControlFlow/IR/ControlFlowOps.cpp mlir/lib/Dialect/Func/IR/FuncOps.cpp mlir/lib/Dialect/GPU/IR/GPUDialect.cpp mlir/lib/Dialect/Index/IR/IndexDialect.cpp mlir/lib/Dialect/LLVMIR/IR/NVVMDialect.cpp mlir/lib/Dialect/LLVMIR/IR/ROCDLDialect.cpp mlir/lib/Dialect/Linalg/IR/LinalgDialect.cpp mlir/lib/Dialect/Math/IR/MathDialect.cpp mlir/lib/Dialect/MemRef/IR/MemRefDialect.cpp mlir/lib/Dialect/SCF/IR/SCF.cpp mlir/lib/Dialect/SPIRV/IR/SPIRVDialect.cpp mlir/lib/Dialect/Tensor/IR/TensorDialect.cpp mlir/lib/Dialect/UB/IR/UBOps.cpp mlir/lib/Dialect/Vector/IR/VectorOps.cpp mlir/unittests/IR/InterfaceAttachmentTest.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/mlir/lib/Dialect/Arith/IR/ArithDialect.cpp b/mlir/lib/Dialect/Arith/IR/ArithDialect.cpp
index 00568b0c3a..042acf6100 100644
--- a/mlir/lib/Dialect/Arith/IR/ArithDialect.cpp
+++ b/mlir/lib/Dialect/Arith/IR/ArithDialect.cpp
@@ -49,7 +49,7 @@ void arith::ArithDialect::initialize() {
>();
addInterfaces<ArithInlinerInterface>();
declarePromisedInterface<ConvertToLLVMPatternInterface, ArithDialect>();
- declarePromisedInterface<bufferization::BufferDeallocationOpInterface,
+ declarePromisedInterface<bufferization::BufferDeallocationOpInterface,
SelectOp>();
declarePromisedInterfaces<bufferization::BufferizableOpInterface, ConstantOp,
IndexCastOp, SelectOp>();
diff --git a/mlir/lib/Dialect/ControlFlow/IR/ControlFlowOps.cpp b/mlir/lib/Dialect/ControlFlow/IR/ControlFlowOps.cpp
index b8c1fe53df..5d11f8f6cc 100644
--- a/mlir/lib/Dialect/ControlFlow/IR/ControlFlowOps.cpp
+++ b/mlir/lib/Dialect/ControlFlow/IR/ControlFlowOps.cpp
@@ -73,7 +73,7 @@ void ControlFlowDialect::initialize() {
declarePromisedInterface<ConvertToLLVMPatternInterface, ControlFlowDialect>();
declarePromisedInterfaces<bufferization::BufferizableOpInterface, BranchOp,
CondBranchOp>();
- declarePromisedInterface<bufferization::BufferDeallocationOpInterface,
+ declarePromisedInterface<bufferization::BufferDeallocationOpInterface,
CondBranchOp>();
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/86628
More information about the Mlir-commits
mailing list