11#include "mlir/CAPI/IR.h"
12#include "mlir/CAPI/Support.h"
13#include "mlir/CAPI/Utils.h"
14#include "llvm/Support/raw_ostream.h"
17using namespace firrtl;
20 MlirStringCallback callback,
22 mlir::detail::CallbackOstream stream(callback, userData);
AIGLongestPathObject wrap(llvm::PointerUnion< Object *, DataflowPath::OutputPort * > object)
MlirLogicalResult mlirExportFIRRTL(MlirModule module, MlirStringCallback callback, void *userData)
Emits FIRRTL for the specified module using the provided callback and user data.
static EvaluatorValuePtr unwrap(OMEvaluatorValue c)
mlir::LogicalResult exportFIRFile(mlir::ModuleOp module, llvm::raw_ostream &os, std::optional< size_t > targetLineLength, FIRVersion version)
constexpr FIRVersion exportFIRVersion
The version of FIRRTL that the exporter produces.
The InstanceGraph op interface, see InstanceGraphInterface.td for more details.