-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can we have the python harness to emit directly the LLVM ll file? #92
Comments
Getting LLVM IR out is a bit annoying because it is not even visible at the Python level. However, you can dump LLVM Dialect using https://github.com/google/iree-llvm-sandbox/blob/main/python/examples/core/harness.py#L123 and call I am not sure what |
There is also the tools/llvm-mca.py script that I use successfully to cross-compile and pipe through llvm-mca. The part that is trickier is producing the .o without running as it needs to happen in ExecutionEngine. Usage of llvm-mca.py:
You need to pass the proper This should compose well with the other functionality that dump LLVM dialect to file. |
This has also been done. Closing |
This stemmed from the discussion in #83 (comment)
It would be great to have the llvm file from the harness to pass it down to
llc
. It would be also nice if the harness could compile the executable without going throughmlir-c-runner
.The text was updated successfully, but these errors were encountered: