-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
expose tablegen API #1945
Comments
It is the bad branch. Anyway I plan to add api in https://github.com/capstone-engine/capstone/tree/master/include/capstone |
It's related to the work being done by @Rot127, see #1936 (comment) |
@gogo2464 If I understand your problem correctly you need primarily information what bit in an instruction encodes what (regs, imms, opcode etc.) + certain constraints. If you need access to the TableGen definitions in all its detail, I highly recommend to write a new backend for TableGen and generate the map there. Simply because there is no reasonable way to provide access to all records of the If you are still interested in this it is probably better to wait until the main auto-sync work is done (minimum requirement is #2026) and then discuss how to add this info. To learn how we generate code with the help of refactored TableGen backends, see the llvm-capstone docs. |
I currently have hardcoded the statistics. This is very imprecise. Can I wait in order to overwrite my hardcoded value with more specific data please? |
Yes, of cause. Feel free to come back to it when you find time. |
@gogo2464 now that auto-sync code was refactored and merged, could you please check the code and if anything is missing. |
I am writting a cryptanalysis library. I need to get statistics on opcodes repartition on the code. So I need to generate any valid assembled <-> disassembled instructions on a BiBTreeMap in rust.
I need to implement bindings for tablegen to this library : https://github.com/capstone-rust/capstone-rs/ and I imagine the library author needs an exposed library first.
Could you assign me to this issue please?
The files I want to edit are here: https://github.com/capstone-engine/capstone/tree/next/suite/synctools/tablegen
The text was updated successfully, but these errors were encountered: