<div dir="ltr">Hi everybody,<br><br>I know that this may be a very silly question, but seriously, I'm totally lost.<br><br>So, what I want to know is how from my Module I can get MachineFunctions or MachineBasicBlocks.<br><br>I'm able to read a file with LLVM IR, create the Module and I also managed to create some passes for it, but what I want is to see the x86-64 assembly that this IR generates and map MachineBasicBlocks with BasicBlocks.<br><br>I know that I should follow the Instruction Selection steps from <a href="http://llvm.org/docs/CodeGenerator.html#using-the-machineinstrbuilder-h-functions">http://llvm.org/docs/CodeGenerator.html#using-the-machineinstrbuilder-h-functions</a>, but I couldn't figure it out how to do this. I also tried to read the llc's code, but it didn't help me so much.<br><br>I would be grateful if somebody show me an example of how from a Module I can get MachineBasicBlocks.<br><br>Thank you,<br><br clear="all"><div><div><div><div><div><div><div><div dir="ltr"><span style="color:rgb(102,102,102)">Vanderson M. Rosario</span><br></div></div>
</div></div></div></div></div></div></div>