[SystemZ] Fix parsing of inline asm registers
authorRichard Sandiford <rsandifo@linux.vnet.ibm.com>
Fri, 12 Jul 2013 09:08:12 +0000 (09:08 +0000)
committerRichard Sandiford <rsandifo@linux.vnet.ibm.com>
Fri, 12 Jul 2013 09:08:12 +0000 (09:08 +0000)
commitb820405b59b12fd9eff51957118bdddd6519b8a4
tree35bed6f94339cdef6b87d1765e707e47a2ca9c9a
parent3f0edc29036dfbd780c42fbe074048b782dd47c9
[SystemZ] Fix parsing of inline asm registers

GPR and FPR constraints like "{r2}" and "{f2}" weren't handled correctly
because the name-to-regno mapping depends on the value type and
(because of that) the internal names in RegStrings are not the
same as the AsmName.

CC constraints like "{cc}" didn't work either because there was no
associated register class.

llvm-svn: 186148
llvm/lib/Target/SystemZ/SystemZISelLowering.cpp
llvm/lib/Target/SystemZ/SystemZMCInstLower.cpp
llvm/lib/Target/SystemZ/SystemZMCInstLower.h
llvm/lib/Target/SystemZ/SystemZRegisterInfo.td