Skip to content
Discussion options

You must be logged in to vote

Let me try to organize your question into 3 parts and answer them respectively.

  1. Can't find any API functions
    Let me answer this with the example you gave us. In short, there is no API function that directly outputs a Value type given an Llvm.llvalue. This is the very part that you need to implement by yourself. To give a hint, try to decompose the given Llvm.llvalue to compose a new Value type with it. Try using the API functions in https://llvm.moe/ocaml/Llvm.html.

  2. How to implement the transfer function.
    First of all, your reasoning for the implementation is correct. And yes, you would need to use Memory.add to update the memory. Finally, instr in execute_instr and transfer function …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by doit-man
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants
Converted from issue

This discussion was converted from issue #70 on May 31, 2024 05:31.