Support disable fork (#4125) (#4569)

This commit is contained in:
Aleksander Kiryk
2023-10-16 14:02:29 +02:00
committed by GitHub
parent 25dde58297
commit ad3bcbb1bb
26 changed files with 441 additions and 87 deletions
+4 -1
View File
@@ -410,7 +410,8 @@ void EmitCFunc::displayNode(AstNode* nodep, AstScopeName* scopenamep, const stri
displayEmit(nodep, isScan);
}
void EmitCFunc::emitCCallArgs(const AstNodeCCall* nodep, const string& selfPointer) {
void EmitCFunc::emitCCallArgs(const AstNodeCCall* nodep, const string& selfPointer,
bool inProcess) {
puts("(");
bool comma = false;
if (nodep->funcp()->isLoose() && !nodep->funcp()->isStatic()) {
@@ -422,6 +423,8 @@ void EmitCFunc::emitCCallArgs(const AstNodeCCall* nodep, const string& selfPoint
if (comma) puts(", ");
if (VN_IS(nodep->backp(), CAwait) || !nodep->funcp()->isCoroutine()) {
puts("vlProcess");
} else if (inProcess) {
puts("std::make_shared<VlProcess>(vlProcess)");
} else {
puts("std::make_shared<VlProcess>()");
}