CIRCT
18.0.0git
include
circt
InitAllTranslations.h
Go to the documentation of this file.
1
//===- InitAllTranslations.h - CIRCT Translations 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 translations
10
// in and out of CIRCT to the system.
11
//
12
//===----------------------------------------------------------------------===//
13
14
#include "
circt/Dialect/Calyx/CalyxEmitter.h
"
15
#include "
circt/Dialect/ESI/ESIDialect.h
"
16
#include "
circt/Dialect/FIRRTL/FIREmitter.h
"
17
#include "
circt/Dialect/FIRRTL/FIRParser.h
"
18
#include "
circt/Dialect/MSFT/ExportTcl.h
"
19
#include "
circt/Target/ExportSystemC.h
"
20
21
#ifndef CIRCT_INITALLTRANSLATIONS_H
22
#define CIRCT_INITALLTRANSLATIONS_H
23
24
namespace
circt
{
25
26
// This function should be called before creating any MLIRContext if one
27
// expects all the possible translations to be made available to the context
28
// automatically.
29
inline
void
registerAllTranslations
() {
30
static
bool
initOnce = []() {
31
esi::registerESITranslations
();
32
calyx::registerToCalyxTranslation
();
33
firrtl::registerFromFIRFileTranslation
();
34
firrtl::registerToFIRFileTranslation
();
35
ExportSystemC::registerExportSystemCTranslation
();
36
return
true
;
37
}();
38
(void)initOnce;
39
}
40
}
// namespace circt
41
42
#endif
// CIRCT_INITALLTRANSLATIONS_H
CalyxEmitter.h
ESIDialect.h
ExportSystemC.h
ExportTcl.h
FIREmitter.h
FIRParser.h
circt::ExportSystemC::registerExportSystemCTranslation
void registerExportSystemCTranslation()
Definition:
ExportSystemC.cpp:128
circt::calyx::registerToCalyxTranslation
void registerToCalyxTranslation()
Definition:
CalyxEmitter.cpp:992
circt::esi::registerESITranslations
void registerESITranslations()
Definition:
ESITranslations.cpp:187
circt::firrtl::registerFromFIRFileTranslation
void registerFromFIRFileTranslation()
Definition:
FIRParser.cpp:5138
circt::firrtl::registerToFIRFileTranslation
void registerToFIRFileTranslation()
Definition:
FIREmitter.cpp:1392
circt
This file defines an intermediate representation for circuits acting as an abstraction for constraint...
Definition:
DependenceAnalysis.h:30
circt::registerAllTranslations
void registerAllTranslations()
Definition:
InitAllTranslations.h:29
Generated on Mon Sep 25 2023 00:27:08 for CIRCT by
1.9.1