Skip to content
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

Mark dominator edges in CFG #24

Open
yugr opened this issue Mar 14, 2022 · 2 comments
Open

Mark dominator edges in CFG #24

yugr opened this issue Mar 14, 2022 · 2 comments

Comments

@yugr
Copy link
Collaborator

yugr commented Mar 14, 2022

Knowing that one block dominates another may be useful for reading the CFG. Such edges can be highlighted with different color or thickness.

@x213212
Copy link

x213212 commented Nov 21, 2022

hi, I have slightly modified this project
https://github.com/x213212/asm2cfg
so that it can read riscv asm to draw the control flow graph, and the latter added the tarjan algorithm according to your suggestion so that it can find the loops in asm

newmatrix_test

I added SVG viewer to easily see the different ASMs in the browser.
https://github.com/x213212/asm2cfg/blob/main/compare.html

image

@Kazhuu
Copy link
Owner

Kazhuu commented Nov 22, 2022

Yeah this looks very promising. Can you make a PR about these so I can review them?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants