TableGen: convert InstAlias's Emit bit to an int.
authorTim Northover <tnorthover@apple.com>
Tue, 20 May 2014 09:17:16 +0000 (09:17 +0000)
committerTim Northover <tnorthover@apple.com>
Tue, 20 May 2014 09:17:16 +0000 (09:17 +0000)
commitc9ff20e8c646764f802520a5d3f1c17050123f32
tree4c93d0024d11bc043d66c0f524e8f1dd9946619d
parent0d0bab5168239afddcc6a4fbcc73b101b570f563
TableGen: convert InstAlias's Emit bit to an int.

When multiple aliases overlap, the correct string to print can often be
determined purely by considering the InstAlias declarations in some particular
order. This allows the user to specify that order manually when desired,
without resorting to hacking around with the default lexicographical order on
Record instantiation, which is error-prone and ugly.

I was also mistaken about "add w2, w3, w4" being the same as "add w2, w3, w4,
uxtw". That's only true if Rn is the stack pointer.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@209199 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Target/Target.td
lib/Target/ARM64/ARM64InstrFormats.td
lib/Target/ARM64/ARM64InstrInfo.td
test/MC/AArch64/basic-a64-instructions.s
test/MC/ARM64/arithmetic-encoding.s
utils/TableGen/AsmWriterEmitter.cpp