You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Assumes the module can be converted to LLVM IR. For each function, creates a wrapper function with the fixed interface void _mlir_funcName(void **)
where the only argument is interpreted as a list of pointers to the actual arguments of the function, followed by a pointer to the result.
This description is consistent with the execution engine invoke method in python binding: it supports only one return value, although the return statement in IR can have multiple return values.
I think we should put return values in the input argument list during IR building.
I added a MoveReturnToInput pass to move all return values to input arg list, and now we can support multiple return values. The test passed at this commit point: bfa76c9
A related test can be seen here. We need to find a way to support multiple return values in LLVM.
The text was updated successfully, but these errors were encountered: