Skip to content

Commit 7da62a7

Browse files
committed
[NFC] Apply clang-format include ordering fixes
Pure reordering of include blocks in four files to satisfy the pre-commit clang-format hook (CI lint job was failing on this PR): - Codegen/Common/ErrorCheckingTrackingListener.cpp - Codegen/Interfaces/Interfaces.cpp - GlobalOptimization/TransformMatchers.cpp - GlobalOptimization/TransformMatchers.h clang-format wants llvm/* headers ordered before mlir/* within each include block (alphabetical). No removals, no behavior change. Signed-off-by: Alex-Wengg <hanweng9@gmail.com>
1 parent 3b008f9 commit 7da62a7

4 files changed

Lines changed: 10 additions & 10 deletions

File tree

compiler/src/iree/compiler/Codegen/Common/ErrorCheckingTrackingListener.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66

77
#include "iree/compiler/Codegen/Common/ErrorCheckingTrackingListener.h"
88

9-
#include "mlir/Dialect/SCF/IR/SCF.h"
109
#include "llvm/Support/Debug.h"
10+
#include "mlir/Dialect/SCF/IR/SCF.h"
1111

1212
#define DEBUG_TYPE "iree-codegen-error-checking-tracking-listener"
1313
#define DBGS() (llvm::dbgs() << "[" DEBUG_TYPE "]: ")

compiler/src/iree/compiler/Codegen/Interfaces/Interfaces.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
#include "iree/compiler/Codegen/Interfaces/Interfaces.h"
88

9+
#include "iree/compiler/Codegen/Common/TransformExtensions/CommonExtensions.h"
910
#include "iree/compiler/Codegen/Dialect/GPU/ExternalInterfaces/Interfaces.h"
1011
#include "iree/compiler/Codegen/Dialect/GPU/TransformExtensions/IREEGPUExtensions.h"
1112
#include "iree/compiler/Codegen/Dialect/Map/ExternalInterfaces/Interfaces.h"
@@ -15,11 +16,8 @@
1516
#include "iree/compiler/Codegen/Interfaces/HoistableRegionOpInterface.h"
1617
#include "iree/compiler/Codegen/Interfaces/PartitionableLoopsInterface.h"
1718
#include "iree/compiler/Codegen/Interfaces/ProcessorOpInterfaces.h"
18-
#include "iree/compiler/Codegen/Interfaces/VectorizableOpInterface.h"
19-
#include "mlir/Dialect/Linalg/IR/Linalg.h"
20-
#include "mlir/Interfaces/SideEffectInterfaces.h"
21-
#include "iree/compiler/Codegen/Common/TransformExtensions/CommonExtensions.h"
2219
#include "iree/compiler/Codegen/Interfaces/TensorMaskingOpInterface.h"
20+
#include "iree/compiler/Codegen/Interfaces/VectorizableOpInterface.h"
2321
#include "iree/compiler/Codegen/LLVMCPU/TransformExtensions/LLVMCPUExtensions.h"
2422
#include "iree/compiler/Codegen/LLVMGPU/TransformExtensions/LLVMGPUExtensions.h"
2523
#include "iree/compiler/Dialect/LinalgExt/TransformExtensions/LinalgExtExtensionsOps.h"
@@ -30,6 +28,7 @@
3028
#include "mlir/Dialect/GPU/IR/ValueBoundsOpInterfaceImpl.h"
3129
#include "mlir/Dialect/GPU/TransformOps/GPUTransformOps.h"
3230
#include "mlir/Dialect/GPU/Transforms/IndexedAccessOpInterfaceImpl.h"
31+
#include "mlir/Dialect/Linalg/IR/Linalg.h"
3332
#include "mlir/Dialect/Linalg/IR/ValueBoundsOpInterfaceImpl.h"
3433
#include "mlir/Dialect/Linalg/TransformOps/DialectExtension.h"
3534
#include "mlir/Dialect/Linalg/TransformOps/LinalgTransformOps.h"
@@ -47,6 +46,7 @@
4746
#include "mlir/Dialect/Vector/TransformOps/VectorTransformOps.h"
4847
#include "mlir/Dialect/Vector/Transforms/IndexedAccessOpInterfaceImpl.h"
4948
#include "mlir/Dialect/Vector/Transforms/SubsetOpInterfaceImpl.h"
49+
#include "mlir/Interfaces/SideEffectInterfaces.h"
5050

5151
namespace mlir::iree_compiler {
5252

compiler/src/iree/compiler/GlobalOptimization/TransformMatchers.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@
66

77
#include "iree/compiler/GlobalOptimization/TransformMatchers.h"
88

9+
#include "llvm/ADT/STLExtras.h"
10+
#include "llvm/ADT/ScopeExit.h"
11+
#include "llvm/Support/Debug.h"
912
#include "mlir/Analysis/SliceAnalysis.h"
1013
#include "mlir/Dialect/Arith/IR/Arith.h"
1114
#include "mlir/Dialect/Linalg/IR/Linalg.h"
1215
#include "mlir/Dialect/Math/IR/Math.h"
1316
#include "mlir/Dialect/Utils/StructuredOpsUtils.h"
1417
#include "mlir/Interfaces/FunctionInterfaces.h"
15-
#include "llvm/ADT/STLExtras.h"
16-
#include "llvm/ADT/ScopeExit.h"
17-
#include "llvm/Support/Debug.h"
1818

1919
using namespace mlir;
2020

compiler/src/iree/compiler/GlobalOptimization/TransformMatchers.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@
1111
#include <cstdint>
1212
#include <functional>
1313

14+
#include "llvm/ADT/SmallPtrSet.h"
15+
#include "llvm/ADT/StringMap.h"
1416
#include "mlir/Dialect/Linalg/IR/LinalgInterfaces.h"
1517
#include "mlir/Dialect/Tensor/IR/Tensor.h"
1618
#include "mlir/Dialect/Transform/Interfaces/TransformInterfaces.h"
1719
#include "mlir/IR/Matchers.h"
18-
#include "llvm/ADT/SmallPtrSet.h"
19-
#include "llvm/ADT/StringMap.h"
2020

2121
namespace mlir {
2222
namespace transform_ext {

0 commit comments

Comments
 (0)