1 | //===- ArmSMEDialect.cpp - MLIR ArmSME dialect implementation -------------===// |
2 | // |
3 | // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. |
4 | // See https://llvm.org/LICENSE.txt for license information. |
5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
6 | // |
7 | //===----------------------------------------------------------------------===// |
8 | // |
9 | // This file implements the ArmSME dialect and its operations. |
10 | // |
11 | //===----------------------------------------------------------------------===// |
12 | |
13 | #include "mlir/Dialect/ArmSME/IR/ArmSME.h" |
14 | #include "mlir/Dialect/LLVMIR/LLVMTypes.h" |
15 | #include "mlir/Dialect/MemRef/IR/MemRef.h" |
16 | #include "mlir/IR/DialectImplementation.h" |
17 | #include "mlir/IR/TypeUtilities.h" |
18 | #include "llvm/ADT/TypeSwitch.h" |
19 | |
20 | using namespace mlir; |
21 | using namespace mlir::arm_sme; |
22 | |
23 | //===----------------------------------------------------------------------===// |
24 | // Tablegen Definitions |
25 | //===----------------------------------------------------------------------===// |
26 | |
27 | #include "mlir/Dialect/ArmSME/IR/ArmSMEDialect.cpp.inc" |
28 | |
29 | #include "mlir/Dialect/ArmSME/IR/ArmSMEEnums.cpp.inc" |
30 | |
31 | #include "mlir/Dialect/ArmSME/IR/ArmSMEOpInterfaces.cpp.inc" |
32 | |
33 | #define GET_OP_CLASSES |
34 | #include "mlir/Dialect/ArmSME/IR/ArmSMEOps.cpp.inc" |
35 | |
36 | #define GET_OP_CLASSES |
37 | #include "mlir/Dialect/ArmSME/IR/ArmSMEIntrinsicOps.cpp.inc" |
38 | |
39 | #define GET_TYPEDEF_CLASSES |
40 | #include "mlir/Dialect/ArmSME/IR/ArmSMETypes.cpp.inc" |
41 | |
42 | #define GET_ATTRDEF_CLASSES |
43 | #include "mlir/Dialect/ArmSME/IR/ArmSMEAttrDefs.cpp.inc" |
44 | |
45 | void ArmSMEDialect::initialize() { |
46 | addAttributes< |
47 | #define GET_ATTRDEF_LIST |
48 | #include "mlir/Dialect/ArmSME/IR/ArmSMEAttrDefs.cpp.inc" |
49 | >(); |
50 | |
51 | addOperations< |
52 | #define GET_OP_LIST |
53 | #include "mlir/Dialect/ArmSME/IR/ArmSMEOps.cpp.inc" |
54 | , |
55 | #define GET_OP_LIST |
56 | #include "mlir/Dialect/ArmSME/IR/ArmSMEIntrinsicOps.cpp.inc" |
57 | >(); |
58 | } |
59 | |