mirror of https://github.com/llvm/circt.git
[ESI] Fix ESI integration tests (#1028)
This commit is contained in:
parent
18bf7f2cfe
commit
b26c078849
|
@ -18,12 +18,8 @@ void registerESIPasses() { circt::esi::registerESIPasses(); }
|
|||
MlirLogicalResult circtESIExportCosimSchema(MlirModule module,
|
||||
MlirStringCallback callback,
|
||||
void *userData) {
|
||||
#ifdef CAPNP
|
||||
mlir::detail::CallbackOstream stream(callback, userData);
|
||||
return wrap(circt::esi::exportCosimSchema(unwrap(module), stream));
|
||||
#else
|
||||
return wrap(mlir::failure());
|
||||
#endif
|
||||
}
|
||||
|
||||
bool circtESITypeIsAChannelType(MlirType type) {
|
||||
|
|
|
@ -167,6 +167,13 @@ LogicalResult circt::esi::exportCosimSchema(ModuleOp module,
|
|||
return schema.emit();
|
||||
}
|
||||
|
||||
#else // Not CAPNP
|
||||
|
||||
LogicalResult circt::esi::exportCosimSchema(ModuleOp module,
|
||||
llvm::raw_ostream &os) {
|
||||
return failure();
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
|
Loading…
Reference in New Issue