[ESI] Fix ESI integration tests (#1028)

This commit is contained in:
John Demme 2021-05-07 15:13:08 -07:00 committed by GitHub
parent 18bf7f2cfe
commit b26c078849
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 4 deletions

View File

@ -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) {

View File

@ -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
//===----------------------------------------------------------------------===//