Loading [MathJax]/extensions/tex2jax.js
CIRCT 21.0.0git
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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
22#include "mlir/Target/SMTLIB/ExportSMTLIB.h"
23
24#ifndef CIRCT_INITALLTRANSLATIONS_H
25#define CIRCT_INITALLTRANSLATIONS_H
26
27namespace circt {
28
29// This function should be called before creating any MLIRContext if one
30// expects all the possible translations to be made available to the context
31// automatically.
33 static bool initOnce = []() {
38 mlir::smt::registerExportSMTLIBTranslation();
41 return true;
42 }();
43 (void)initOnce;
44}
45} // namespace circt
46
47#endif // CIRCT_INITALLTRANSLATIONS_H
void registerExportSystemCTranslation()
void registerArcModelInfoTranslation()
Registers CIRCT translation from Arc to JSON model info.
void registerToCalyxTranslation()
void registerTranslations()
Register all debug information emission flavors as from-MLIR translations.
void registerFromFIRFileTranslation()
void registerToFIRFileTranslation()
The InstanceGraph op interface, see InstanceGraphInterface.td for more details.
void registerAllTranslations()