CIRCT 21.0.0git
Loading...
Searching...
No Matches
ExportSMTLIB.cpp
Go to the documentation of this file.
1//===- ExportSMTLIB.cpp - C Interface to ExportSMTLIB ---------------------===//
2//
3// Implements a C Interface for export SMTLIB.
4//
5//===----------------------------------------------------------------------===//
6
8
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"
14
15using namespace circt;
16
17MlirLogicalResult mlirExportSMTLIB(MlirModule module,
18 MlirStringCallback callback,
19 void *userData) {
20 mlir::detail::CallbackOstream stream(callback, userData);
21 return wrap(ExportSMTLIB::exportSMTLIB(unwrap(module), stream));
22}
MlirLogicalResult mlirExportSMTLIB(MlirModule module, MlirStringCallback callback, void *userData)
Emits SMTLIB for the specified module using the provided callback and user data.
return wrap(CMemoryType::get(unwrap(ctx), baseType, numElements))
static EvaluatorValuePtr unwrap(OMEvaluatorValue c)
Definition OM.cpp:113
LogicalResult exportSMTLIB(Operation *module, llvm::raw_ostream &os, const SMTEmissionOptions &options=SMTEmissionOptions())
Run the ExportSMTLIB pass.
The InstanceGraph op interface, see InstanceGraphInterface.td for more details.