Skip to content

Commit

Permalink
[Tools] Register ArmSVE and ArmSME dialects
Browse files Browse the repository at this point in the history
This allows these dialects to be used with tools like `iree-opt`
which can be helpful for testing and debugging.

Signed-off-by: Benjamin Maxwell <benjamin.maxwell@arm.com>
  • Loading branch information
MacDue committed Jul 12, 2024
1 parent dd7d4a1 commit deafd28
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions compiler/src/iree/compiler/Tools/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ iree_compiler_cc_library(
"@llvm-project//mlir:AffineTransforms",
"@llvm-project//mlir:ArmNeon2dToIntr",
"@llvm-project//mlir:ArmNeonDialect",
"@llvm-project//mlir:ArmSVEDialect",
"@llvm-project//mlir:ArmSMEDialect",
"@llvm-project//mlir:BufferizationDialect",
"@llvm-project//mlir:ComplexDialect",
"@llvm-project//mlir:ControlFlowDialect",
Expand Down
2 changes: 2 additions & 0 deletions compiler/src/iree/compiler/Tools/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ iree_cc_library(
MLIRAffineDialect
MLIRAffineTransforms
MLIRArmNeonDialect
MLIRArmSVEDialect
MLIRArmSMEDialect
MLIRArmNeon2dToIntr
MLIRBufferizationDialect
MLIRComplexDialect
Expand Down
5 changes: 5 additions & 0 deletions compiler/src/iree/compiler/Tools/init_mlir_dialects.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
#include "mlir/Dialect/Affine/IR/AffineOps.h"
#include "mlir/Dialect/Affine/TransformOps/AffineTransformOps.h"
#include "mlir/Dialect/ArmNeon/ArmNeonDialect.h"
#include "mlir/Dialect/ArmSME/IR/ArmSME.h"
#include "mlir/Dialect/ArmSVE/IR/ArmSVEDialect.h"
#include "mlir/Dialect/Bufferization/IR/Bufferization.h"
#include "mlir/Dialect/Bufferization/TransformOps/BufferizationTransformOps.h"
#include "mlir/Dialect/Complex/IR/Complex.h"
Expand Down Expand Up @@ -50,6 +52,7 @@
#include "mlir/Dialect/Transform/LoopExtension/LoopExtension.h"
#include "mlir/Dialect/Vector/IR/VectorOps.h"
#include "mlir/Dialect/Vector/TransformOps/VectorTransformOps.h"

#include "mlir/IR/Dialect.h"

#ifdef IREE_HAVE_C_OUTPUT_FORMAT
Expand Down Expand Up @@ -80,6 +83,8 @@ inline void registerMlirDialects(DialectRegistry &registry) {
quant::QuantizationDialect,
spirv::SPIRVDialect,
arm_neon::ArmNeonDialect,
arm_sve::ArmSVEDialect,
arm_sme::ArmSMEDialect,
func::FuncDialect,
mlir::arith::ArithDialect,
vector::VectorDialect,
Expand Down

0 comments on commit deafd28

Please sign in to comment.