MLIR 22.0.0git
IndexAttrs.cpp
Go to the documentation of this file.
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
11#include "mlir/IR/Builders.h"
13#include "llvm/ADT/TypeSwitch.h"
14
15using namespace mlir;
16using namespace mlir::index;
17
18//===----------------------------------------------------------------------===//
19// IndexDialect
20//===----------------------------------------------------------------------===//
21
22void 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"
Include the generated interface declarations.