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