xref: /llvm-project/mlir/lib/Dialect/Index/IR/IndexAttrs.cpp (revision ddf87d6cd40416b306c55a02f3646018c2293a7c)
1 //===- IndexAttrs.cpp - Index attribute definitions ------------------------==//
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 #include "mlir/Dialect/Index/IR/IndexAttrs.h"
10 #include "mlir/Dialect/Index/IR/IndexDialect.h"
11 #include "mlir/IR/Builders.h"
12 #include "mlir/IR/DialectImplementation.h"
13 #include "llvm/ADT/TypeSwitch.h"
14 
15 using namespace mlir;
16 using namespace mlir::index;
17 
18 //===----------------------------------------------------------------------===//
19 // IndexDialect
20 //===----------------------------------------------------------------------===//
21 
registerAttributes()22 void IndexDialect::registerAttributes() {
23   addAttributes<
24 #define GET_ATTRDEF_LIST
25 #include "mlir/Dialect/Index/IR/IndexAttrs.cpp.inc"
26       >();
27 }
28 
29 //===----------------------------------------------------------------------===//
30 // ODS-Generated Declarations
31 //===----------------------------------------------------------------------===//
32 
33 #include "mlir/Dialect/Index/IR/IndexEnums.cpp.inc"
34 
35 #define GET_ATTRDEF_CLASSES
36 #include "mlir/Dialect/Index/IR/IndexAttrs.cpp.inc"
37