1 | //===-- CUFAttr.cpp -------------------------------------------------------===// |
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 | // Coding style: https://mlir.llvm.org/getting_started/DeveloperGuide/ |
10 | // |
11 | //===----------------------------------------------------------------------===// |
12 | |
13 | #include "flang/Optimizer/Dialect/CUF/Attributes/CUFAttr.h" |
14 | #include "flang/Optimizer/Dialect/CUF/CUFDialect.h" |
15 | #include "mlir/IR/Builders.h" |
16 | #include "mlir/IR/BuiltinTypes.h" |
17 | #include "mlir/IR/DialectImplementation.h" |
18 | #include "mlir/IR/OpDefinition.h" |
19 | #include "llvm/ADT/TypeSwitch.h" |
20 | |
21 | #include "flang/Optimizer/Dialect/CUF/Attributes/CUFEnumAttr.cpp.inc" |
22 | #define GET_ATTRDEF_CLASSES |
23 | #include "flang/Optimizer/Dialect/CUF/Attributes/CUFAttr.cpp.inc" |
24 | |
25 | namespace cuf { |
26 | |
27 | void CUFDialect::registerAttributes() { |
28 | addAttributes<ClusterDimsAttr, DataAttributeAttr, DataTransferKindAttr, |
29 | LaunchBoundsAttr, ProcAttributeAttr>(); |
30 | } |
31 | |
32 | } // namespace cuf |
33 | |