aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2010-05-04 16:12:42 +0000
committerDaniel Dunbar <daniel@zuster.org>2010-05-04 16:12:42 +0000
commit9b816a1bb34f26d9610f039fbf31fe029ecdd466 (patch)
treef4f21cb878e3581916c70d8a11ac7997086e8dd2 /clang/lib/Frontend/CompilerInvocation.cpp
parent40c92bbe4fec5b8edba3c33aa837a94486f0f28d (diff)
downloadllvm-9b816a1bb34f26d9610f039fbf31fe029ecdd466.zip
llvm-9b816a1bb34f26d9610f039fbf31fe029ecdd466.tar.gz
llvm-9b816a1bb34f26d9610f039fbf31fe029ecdd466.tar.bz2
MC/X86: Add "support" for matching ATT style mnemonic prefixes.
- The idea is that when a match fails, we just try to match each of +'b', +'w', +'l'. If exactly one matches, we assume this is a mnemonic prefix and accept it. If all match, we assume it is width generic, and take the 'l' form. - This would be a horrible hack, if it weren't so simple. Therefore it is an elegant solution! Chris gets the credit for this particular elegant solution. :) - Next step to making this more robust is to have the X86 matcher generate the mnemonic prefix information. Ideally we would also compute up-front exactly which mnemonic to attempt to match, but this may require more custom code in the matcher than is really worth it. llvm-svn: 103012
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions