10 #include "mlir/CAPI/IR.h"
11 #include "mlir/CAPI/Support.h"
12 #include "mlir/CAPI/Utils.h"
13 #include "llvm/Support/raw_ostream.h"
15 using namespace circt;
18 MlirStringCallback callback,
20 mlir::detail::CallbackOstream stream(callback, userData);
25 MlirStringRef directory) {
MlirLogicalResult mlirExportSplitVerilog(MlirModule module, MlirStringRef directory)
Emits split Verilog files for the specified module into the given directory.
MlirLogicalResult mlirExportVerilog(MlirModule module, MlirStringCallback callback, void *userData)
Emits verilog for the specified module using the provided callback and user data.
return wrap(CMemoryType::get(unwrap(ctx), baseType, numElements))
static EvaluatorValuePtr unwrap(OMEvaluatorValue c)
The InstanceGraph op interface, see InstanceGraphInterface.td for more details.
mlir::LogicalResult exportVerilog(mlir::ModuleOp module, llvm::raw_ostream &os)
Export a module containing HW, and SV dialect code.
mlir::LogicalResult exportSplitVerilog(mlir::ModuleOp module, llvm::StringRef dirname)
Export a module containing HW, and SV dialect code, as one file per SV module.