[Mlir-commits] [mlir] 9dc8865 - [mlir][NFC] Sort dialects

Ivan Butygin llvmlistbot at llvm.org
Fri Jun 30 15:38:09 PDT 2023


Author: Ivan Butygin
Date: 2023-07-01T00:37:16+02:00
New Revision: 9dc88651d591f62ddd7f54b98e3c9a8cb81d8bd5

URL: https://github.com/llvm/llvm-project/commit/9dc88651d591f62ddd7f54b98e3c9a8cb81d8bd5
DIFF: https://github.com/llvm/llvm-project/commit/9dc88651d591f62ddd7f54b98e3c9a8cb81d8bd5.diff

LOG: [mlir][NFC] Sort dialects

Sort dialects cmake and registry.

Differential Revision: https://reviews.llvm.org/D154267

Added: 
    

Modified: 
    mlir/include/mlir/Dialect/CMakeLists.txt
    mlir/include/mlir/InitAllDialects.h
    mlir/lib/Dialect/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/mlir/include/mlir/Dialect/CMakeLists.txt b/mlir/include/mlir/Dialect/CMakeLists.txt
index 40c803deb6eff..5c9109fa94da1 100644
--- a/mlir/include/mlir/Dialect/CMakeLists.txt
+++ b/mlir/include/mlir/Dialect/CMakeLists.txt
@@ -1,6 +1,6 @@
+add_subdirectory(Affine)
 add_subdirectory(AMDGPU)
 add_subdirectory(AMX)
-add_subdirectory(Affine)
 add_subdirectory(Arith)
 add_subdirectory(ArmNeon)
 add_subdirectory(ArmSME)
@@ -15,11 +15,11 @@ add_subdirectory(Func)
 add_subdirectory(GPU)
 add_subdirectory(Index)
 add_subdirectory(IRDL)
-add_subdirectory(LLVMIR)
 add_subdirectory(Linalg)
-add_subdirectory(MLProgram)
+add_subdirectory(LLVMIR)
 add_subdirectory(Math)
 add_subdirectory(MemRef)
+add_subdirectory(MLProgram)
 add_subdirectory(NVGPU)
 add_subdirectory(OpenACC)
 add_subdirectory(OpenMP)
@@ -27,9 +27,9 @@ add_subdirectory(PDL)
 add_subdirectory(PDLInterp)
 add_subdirectory(Quant)
 add_subdirectory(SCF)
-add_subdirectory(SPIRV)
 add_subdirectory(Shape)
 add_subdirectory(SparseTensor)
+add_subdirectory(SPIRV)
 add_subdirectory(Tensor)
 add_subdirectory(Tosa)
 add_subdirectory(Transform)

diff  --git a/mlir/include/mlir/InitAllDialects.h b/mlir/include/mlir/InitAllDialects.h
index 106d5af5cfb7d..7a310c469a43b 100644
--- a/mlir/include/mlir/InitAllDialects.h
+++ b/mlir/include/mlir/InitAllDialects.h
@@ -93,10 +93,12 @@ inline void registerAllDialects(DialectRegistry &registry) {
   // clang-format off
   registry.insert<acc::OpenACCDialect,
                   affine::AffineDialect,
-                  arith::ArithDialect,
                   amdgpu::AMDGPUDialect,
                   amx::AMXDialect,
+                  arith::ArithDialect,
                   arm_neon::ArmNeonDialect,
+                  arm_sme::ArmSMEDialect,
+                  arm_sve::ArmSVEDialect,
                   async::AsyncDialect,
                   bufferization::BufferizationDialect,
                   cf::ControlFlowDialect,
@@ -107,28 +109,26 @@ inline void registerAllDialects(DialectRegistry &registry) {
                   gpu::GPUDialect,
                   index::IndexDialect,
                   irdl::IRDLDialect,
-                  LLVM::LLVMDialect,
                   linalg::LinalgDialect,
+                  LLVM::LLVMDialect,
                   math::MathDialect,
                   memref::MemRefDialect,
                   ml_program::MLProgramDialect,
                   nvgpu::NVGPUDialect,
-                  scf::SCFDialect,
+                  NVVM::NVVMDialect,
                   omp::OpenMPDialect,
                   pdl::PDLDialect,
                   pdl_interp::PDLInterpDialect,
                   quant::QuantizationDialect,
-                  spirv::SPIRVDialect,
-                  arm_sme::ArmSMEDialect,
-                  arm_sve::ArmSVEDialect,
-                  vector::VectorDialect,
-                  NVVM::NVVMDialect,
                   ROCDL::ROCDLDialect,
+                  scf::SCFDialect,
                   shape::ShapeDialect,
                   sparse_tensor::SparseTensorDialect,
+                  spirv::SPIRVDialect,
                   tensor::TensorDialect,
-                  transform::TransformDialect,
                   tosa::TosaDialect,
+                  transform::TransformDialect,
+                  vector::VectorDialect,
                   x86vector::X86VectorDialect>();
   // clang-format on
 

diff  --git a/mlir/lib/Dialect/CMakeLists.txt b/mlir/lib/Dialect/CMakeLists.txt
index c8062abeca1ea..3ce29fba522ba 100644
--- a/mlir/lib/Dialect/CMakeLists.txt
+++ b/mlir/lib/Dialect/CMakeLists.txt
@@ -1,11 +1,11 @@
 add_subdirectory(Affine)
 add_subdirectory(AMDGPU)
+add_subdirectory(AMX)
 add_subdirectory(Arith)
 add_subdirectory(ArmNeon)
 add_subdirectory(ArmSME)
 add_subdirectory(ArmSVE)
 add_subdirectory(Async)
-add_subdirectory(AMX)
 add_subdirectory(Bufferization)
 add_subdirectory(Complex)
 add_subdirectory(ControlFlow)


        


More information about the Mlir-commits mailing list