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
The ll2dot tool is now capable of producing CFGs from LLVM IR assembly. The functionality may be pulled out into a dedicated library at a later stage, should other use cases require it. Closing this issue for now. If you wish to use this functionality, feel free to reopen this issue and start a discussion on how we may wish to design a reusable Control Flow Graph package.
ref: mewspring/mewmew-l#6 (comment)
Translate blockaddress to `&ir.ConstBlockAddress{Func: f,
Block: &ir.BasicBlock{LocalName: local(old.Name())}}`, the
point being that we create a dummy IR basic block, that
will record the basic block name used in the blockaddress
constant. Then, once function bodies have been translated,
run `f.AssignIDs()` to assign local IDs to unnamed
instruction results, basic blocks and function parameters.
As far as I can tell, this would solve the dependency
relationship mentioned above.
Updates #6.
ref: mewspring/mewmew-l#6 (comment)
Translate blockaddress to `&ir.ConstBlockAddress{Func: f,
Block: &ir.BasicBlock{LocalName: local(old.Name())}}`, the
point being that we create a dummy IR basic block, that
will record the basic block name used in the blockaddress
constant. Then, once function bodies have been translated,
run `f.AssignIDs()` to assign local IDs to unnamed
instruction results, basic blocks and function parameters.
As far as I can tell, this would solve the dependency
relationship mentioned above.
Updates #6.
Former-commit-id: dd5992f
Corresponds to requirement 8, decomp/decomp#98.
The text was updated successfully, but these errors were encountered: