Issue 140329
Summary How to implement relocation of return values
Labels new issue
Assignees
Reporter Tt421
    In the llvm-project of emscripten. It use `TypeIndex` in the file `/llvm-project/llvm/lib/Target/WebAssembly/WebAssemblyInstrCall.td` implement the parameter of `CALL_INDIRECT` instruction. I looked at the code briefly and found that it is indeed handling `TypeIndex` in Relocation.

If I need to implement an instruction, the return value of this instruction is related to the processing type of TypeIndex.
This instruction looks like `ref.null ht`, which `ht` is `𝑥:s33`, the return value of this instruction can be `ref x` (`𝑥` ≥ 0).

How can I modify the code of the `llvm-project` to achieve the above effect? Can you give me some implementation suggestions?
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to