CIRCT  20.0.0git
ExportVerilog.h
Go to the documentation of this file.
1 //===-- circt-c/SVDialect.h - C API for emitting Verilog ----------*- C -*-===//
2 //
3 // This header declares the C interface for emitting Verilog from a CIRCT MLIR
4 // module.
5 //
6 //===----------------------------------------------------------------------===//
7 
8 #ifndef CIRCT_C_EXPORTVERILOG_H
9 #define CIRCT_C_EXPORTVERILOG_H
10 
11 #include "mlir-c/IR.h"
12 
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16 
17 /// Emits verilog for the specified module using the provided callback and user
18 /// data
19 MLIR_CAPI_EXPORTED MlirLogicalResult mlirExportVerilog(MlirModule,
20  MlirStringCallback,
21  void *userData);
22 
23 /// Emits split Verilog files for the specified module into the given directory.
24 MLIR_CAPI_EXPORTED MlirLogicalResult mlirExportSplitVerilog(MlirModule,
25  MlirStringRef);
26 
27 #ifdef __cplusplus
28 }
29 #endif
30 
31 #endif // CIRCT_C_EXPORTVERILOG_H
MLIR_CAPI_EXPORTED MlirLogicalResult mlirExportSplitVerilog(MlirModule, MlirStringRef)
Emits split Verilog files for the specified module into the given directory.
MLIR_CAPI_EXPORTED MlirLogicalResult mlirExportVerilog(MlirModule, MlirStringCallback, void *userData)
Emits verilog for the specified module using the provided callback and user data.