CIRCT 20.0.0git
Loading...
Searching...
No Matches
RTGTestAttributes.cpp
Go to the documentation of this file.
1//===- RTGTestAttributes.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
11#include "mlir/IR/Builders.h"
12#include "mlir/IR/DialectImplementation.h"
13#include "llvm/ADT/TypeSwitch.h"
14
15using namespace circt;
16using namespace rtgtest;
17
18//===----------------------------------------------------------------------===//
19// CPUAttr
20//===----------------------------------------------------------------------===//
21
22Type CPUAttr::getType() const { return rtgtest::CPUType::get(getContext()); }
23
24//===----------------------------------------------------------------------===//
25// TableGen generated logic.
26//===----------------------------------------------------------------------===//
27
28void RTGTestDialect::registerAttributes() {
29 addAttributes<
30#define GET_ATTRDEF_LIST
31#include "circt/Dialect/RTGTest/IR/RTGTestAttributes.cpp.inc"
32 >();
33}
34
35#define GET_ATTRDEF_CLASSES
36#include "circt/Dialect/RTGTest/IR/RTGTestAttributes.cpp.inc"
The InstanceGraph op interface, see InstanceGraphInterface.td for more details.