CIRCT 22.0.0git
Loading...
Searching...
No Matches
InitAllDialects.h
Go to the documentation of this file.
1//===- InitAllDialects.h - CIRCT Dialects Registration ----------*- C++ -*-===//
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// This file defines a helper to trigger the registration of all dialects and
10// passes to the system.
11//
12//===----------------------------------------------------------------------===//
13
14#ifndef CIRCT_INITALLDIALECTS_H_
15#define CIRCT_INITALLDIALECTS_H_
16
42#ifdef CIRCT_INCLUDE_TESTS
44#endif
52#include "mlir/Dialect/SMT/IR/SMTDialect.h"
53#include "mlir/IR/Dialect.h"
54
55namespace circt {
56
57// Add all the MLIR dialects to the provided registry.
58inline void registerAllDialects(mlir::DialectRegistry &registry) {
59 // clang-format off
60 registry.insert<
61 aig::AIGDialect,
62 arc::ArcDialect,
63 calyx::CalyxDialect,
64 chirrtl::CHIRRTLDialect,
65 comb::CombDialect,
66 datapath::DatapathDialect,
67 dc::DCDialect,
68 debug::DebugDialect,
69 emit::EmitDialect,
70 esi::ESIDialect,
71 firrtl::FIRRTLDialect,
72 fsm::FSMDialect,
73 handshake::HandshakeDialect,
74 hw::HWDialect,
75 hwarith::HWArithDialect,
76 interop::InteropDialect,
77 kanagawa::KanagawaDialect,
78 llhd::LLHDDialect,
79 loopschedule::LoopScheduleDialect,
80 ltl::LTLDialect,
81 moore::MooreDialect,
82 msft::MSFTDialect,
83 om::OMDialect,
84 pipeline::PipelineDialect,
85 rtg::RTGDialect,
86#ifdef CIRCT_INCLUDE_TESTS
87 rtgtest::RTGTestDialect,
88#endif
89 seq::SeqDialect,
90 sim::SimDialect,
91 mlir::smt::SMTDialect,
92 ssp::SSPDialect,
93 sv::SVDialect,
94 synth::SynthDialect,
95 systemc::SystemCDialect,
96 verif::VerifDialect
97 >();
98 // clang-format on
99}
100
101} // namespace circt
102
103#endif // CIRCT_INITALLDIALECTS_H_
The InstanceGraph op interface, see InstanceGraphInterface.td for more details.
void registerAllDialects(mlir::DialectRegistry &registry)