<div dir="ltr"><div>Hello,</div><br><div>Is there a way to use LLVM and clang++ to generate a Control Flow Graph with x86 basic blocks? <br></div><div><br></div><div>I am able to generate control flow graphs using clang++ and LLVM's opt,
but the CFG's basic blocks contain LLVM IR. Instead, I would like the
basic blocks to contain x86 assembly.
</div><p>Ideally this tool would be useful for visualizing optimization passes
that a compiler makes to the code and ultimately the assembly.</p>
<p>Thanks!</p><p>Olivia<br clear="all"></p><div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><br></div><div>--</div>Olivia Weng<div>PhD Student<br><div>Computer Science and Engineering</div><div>University of California, San Diego</div><div><a href="https://www.oliviaweng.com" target="_blank">https://oliviaweng.com</a> </div></div></div></div></div></div></div>