llvm-mc disassembler chooses default subtarget if -mattr is unspecified

Xiaochu Liu xil174 at eng.ucsd.edu
Thu Jan 23 11:45:50 PST 2014


Many of my new colleagues in the research lab have problem with
unrecognized instructions when using llvm-mc to disassemble ARM binaries.
The problem is that they don't even know sub target concept in LLVM MC.
I made some small modifications for the llvm-mc tool (for ARM) so that if
you just specify the triple instead of the mattr you can still cover the
default sub target we offer. I think this will help many beginners who were
scared away when they saw error message disassembling binary with LLVM.
I do see some brilliant guy actively working on embedding the sub target
into table description. I think this will push the MC project to a new
stage!
But before that happens, this seems to be one of the optional temporary
remedy.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140123/baecce63/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: llvm-mc.patch
Type: application/octet-stream
Size: 1083 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140123/baecce63/attachment.obj>


More information about the llvm-commits mailing list