Update llvm-mc / MCAsmStreamer to print the instruction using the actual target
authorDaniel Dunbar <daniel@zuster.org>
Fri, 14 Aug 2009 03:48:55 +0000 (03:48 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Fri, 14 Aug 2009 03:48:55 +0000 (03:48 +0000)
commitc22e0b2443afdedb6d9b225b938ad404d63cdbe6
tree63f7975e72d90fa0fb45f05c4593608fa0550f17
parent575327b77e9092074e5d18bfebfb78ce550aa2a3
Update llvm-mc / MCAsmStreamer to print the instruction using the actual target
specific printer (this only works on x86, for now).
 - This makes it possible to do some correctness checking of the parsing and
   matching, since we can compare the results of 'as' on the original input, to
   those of 'as' on the output from llvm-mc.

 - In theory, we could now have an easy ATT -> Intel syntax converter. :)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78986 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/MC/MCStreamer.h
lib/MC/MCAsmStreamer.cpp
lib/Target/X86/AsmParser/X86AsmParser.cpp
test/MC/AsmParser/labels.s
test/MC/AsmParser/x86_instructions.s
test/MC/AsmParser/x86_operands.s
tools/llvm-mc/llvm-mc.cpp