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"
16 using namespace circt;
17 using namespace firrtl;
20 MlirStringCallback callback,
22 mlir::detail::CallbackOstream stream(callback, userData);
return wrap(CMemoryType::get(unwrap(ctx), baseType, numElements))
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(4, 0, 0)
The InstanceGraph op interface, see InstanceGraphInterface.td for more details.