x86 to LLVM-IR


I was looking into ways to convert an x86 executable(ELF), to an LLVM-IR representation.
To the best of my knowledge llvm-mc seems to be the tool which can be used…

It would be great if anyone could give pointers in the same direction…


Raising machine code back up to LLVM IR is hard to do in a way that
will give you any efficiency or portability. llvm-mc will at most
help you to disassemble an object file to LLVM's representation of the
machine code. IIRC that's not even possible at the moment, since it
requires parsing object files, not just generating them.