As an ongoing personal research project, I have something like this. I actually learned of LLVM as part of some research I was doing on this project. It is a quite complicated though, each assembly language instruction expands to a number of SSA instructions, as each flag/register affected becomes a separate instruction, every register used in the method has phi functions in every basic block, the initial generation produces much more code that the original assembly language  which then need to have certain optimization passes to weed out unneeded effects. reconstructing local variables from stack usage, and picking out method inputs/outputs that are real as opposed to just being saved and restored is tricky too.<br>
<br><div class="gmail_quote">On Thu, Jun 10, 2010 at 10:24 PM, Bob Grandish <span dir="ltr"><<a href="mailto:redcurbs@yahoo.com">redcurbs@yahoo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I'm wondering if anyone is working on a machine code -> LLVM bitcode disassembler? Obviously, there won't be a one-to-one correspondence but it seems like you should be able to get close. There's always inline asm for the remaining fragments.<br>

<br>
So is there such a thing?<br>
<br>
Thank you,<br>
Bob<br>
<br>
<br>
<br>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
</blockquote></div><br>