| 1 | //===- VCIXDialect.cpp - MLIR VCIX ops 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 VCIX dialect and its operations. |
| 10 | // |
| 11 | //===----------------------------------------------------------------------===// |
| 12 | |
| 13 | #include "mlir/Dialect/LLVMIR/VCIXDialect.h" |
| 14 | |
| 15 | #include "mlir/Dialect/GPU/IR/CompilationInterfaces.h" |
| 16 | #include "mlir/Dialect/LLVMIR/LLVMDialect.h" |
| 17 | #include "mlir/IR/Builders.h" |
| 18 | #include "mlir/IR/BuiltinTypes.h" |
| 19 | #include "mlir/IR/DialectImplementation.h" |
| 20 | #include "mlir/IR/MLIRContext.h" |
| 21 | #include "mlir/IR/Operation.h" |
| 22 | #include "llvm/ADT/TypeSwitch.h" |
| 23 | #include "llvm/AsmParser/Parser.h" |
| 24 | #include "llvm/IR/Attributes.h" |
| 25 | #include "llvm/IR/Function.h" |
| 26 | #include "llvm/IR/Type.h" |
| 27 | #include "llvm/Support/SourceMgr.h" |
| 28 | |
| 29 | using namespace mlir; |
| 30 | using namespace vcix; |
| 31 | |
| 32 | #include "mlir/Dialect/LLVMIR/VCIXOpsDialect.cpp.inc" |
| 33 | |
| 34 | //===----------------------------------------------------------------------===// |
| 35 | // VCIXDialect initialization, type parsing, and registration. |
| 36 | //===----------------------------------------------------------------------===// |
| 37 | |
| 38 | void VCIXDialect::initialize() { |
| 39 | addOperations< |
| 40 | #define GET_OP_LIST |
| 41 | #include "mlir/Dialect/LLVMIR/VCIXOps.cpp.inc" |
| 42 | >(); |
| 43 | |
| 44 | addAttributes< |
| 45 | #define GET_ATTRDEF_LIST |
| 46 | #include "mlir/Dialect/LLVMIR/VCIXOpsAttributes.cpp.inc" |
| 47 | >(); |
| 48 | } |
| 49 | |
| 50 | #define GET_OP_CLASSES |
| 51 | #include "mlir/Dialect/LLVMIR/VCIXOps.cpp.inc" |
| 52 | |
| 53 | #define GET_ATTRDEF_CLASSES |
| 54 | #include "mlir/Dialect/LLVMIR/VCIXOpsAttributes.cpp.inc" |
| 55 |
