CIRCT  19.0.0git
ExportFIRRTL.h
Go to the documentation of this file.
1 //===- circt-c/ExportFIRRTL.h - C API for emitting FIRRTL ---------*- C -*-===//
2 //
3 // This header declares the C interface for emitting FIRRTL from a CIRCT MLIR
4 // module.
5 //
6 //===----------------------------------------------------------------------===//
7 
8 #ifndef CIRCT_C_EXPORTFIRRTL_H
9 #define CIRCT_C_EXPORTFIRRTL_H
10 
11 #include "mlir-c/IR.h"
12 
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16 
17 /// Emits FIRRTL for the specified module using the provided callback and user
18 /// data
19 MLIR_CAPI_EXPORTED MlirLogicalResult mlirExportFIRRTL(MlirModule,
20  MlirStringCallback,
21  void *userData);
22 
23 #ifdef __cplusplus
24 }
25 #endif
26 
27 #endif // CIRCT_C_EXPORTFIRRTL_H
MLIR_CAPI_EXPORTED MlirLogicalResult mlirExportFIRRTL(MlirModule, MlirStringCallback, void *userData)
Emits FIRRTL for the specified module using the provided callback and user data.