37 lines · cpp
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-exception6//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 15using namespace mlir;16using namespace mlir::index;17 18//===----------------------------------------------------------------------===//19// IndexDialect20//===----------------------------------------------------------------------===//21 22void IndexDialect::registerAttributes() {23 addAttributes<24#define GET_ATTRDEF_LIST25#include "mlir/Dialect/Index/IR/IndexAttrs.cpp.inc"26 >();27}28 29//===----------------------------------------------------------------------===//30// ODS-Generated Declarations31//===----------------------------------------------------------------------===//32 33#include "mlir/Dialect/Index/IR/IndexEnums.cpp.inc"34 35#define GET_ATTRDEF_CLASSES36#include "mlir/Dialect/Index/IR/IndexAttrs.cpp.inc"37