CIRCT 24.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
44#ifdef CIRCT_INCLUDE_TESTS
46#endif
54#include "mlir/Dialect/SMT/IR/SMTDialect.h"
55#include "mlir/IR/Dialect.h"
56
57namespace circt {
58
59// Add all the MLIR dialects to the provided registry.
60inline void registerAllDialects(mlir::DialectRegistry &registry) {
61 // clang-format off
62 registry.insert<
63 arc::ArcDialect,
64 axi4::AXI4Dialect,
65 calyx::CalyxDialect,
66 chirrtl::CHIRRTLDialect,
67 comb::CombDialect,
68 datapath::DatapathDialect,
69 dc::DCDialect,
70 debug::DebugDialect,
71 emit::EmitDialect,
72 esi::ESIDialect,
73 firrtl::FIRRTLDialect,
74 fsm::FSMDialect,
75 handshake::HandshakeDialect,
76 hw::HWDialect,
77 hwarith::HWArithDialect,
78 interop::InteropDialect,
79 kanagawa::KanagawaDialect,
80 llhd::LLHDDialect,
81 loopschedule::LoopScheduleDialect,
82 ltl::LTLDialect,
83 moore::MooreDialect,
84 msft::MSFTDialect,
85 om::OMDialect,
86 pipeline::PipelineDialect,
87 pir::PIRDialect,
88 probe::ProbeDialect,
89 rtg::RTGDialect,
90#ifdef CIRCT_INCLUDE_TESTS
91 rtgtest::RTGTestDialect,
92#endif
93 seq::SeqDialect,
94 sim::SimDialect,
95 mlir::smt::SMTDialect,
96 ssp::SSPDialect,
97 sv::SVDialect,
98 synth::SynthDialect,
99 systemc::SystemCDialect,
100 verif::VerifDialect
101 >();
102 // clang-format on
103}
104
105} // namespace circt
106
107#endif // CIRCT_INITALLDIALECTS_H_
The InstanceGraph op interface, see InstanceGraphInterface.td for more details.
void registerAllDialects(mlir::DialectRegistry &registry)