R600/SI: Clean up checks for legality of immediate operands
authorTom Stellard <thomas.stellard@amd.com>
Tue, 23 Sep 2014 21:26:25 +0000 (21:26 +0000)
committerTom Stellard <thomas.stellard@amd.com>
Tue, 23 Sep 2014 21:26:25 +0000 (21:26 +0000)
commit33aca6d4a090b1305873735dfdc8c8a00e65482e
treef13e20e4877244ceae3371b87f98d7a75323e227
parent30e7514d010ddb137c8de2f6b5379f94b50564fa
R600/SI: Clean up checks for legality of immediate operands

There are new register classes VCSrc_* which represent operands that
can take an SGPR, VGPR or inline constant.  The VSrc_* class is now used
to represent operands that can take an SGPR, VGPR, or a 32-bit
immediate.

This allows us to have more accurate checks for legality of
immediates, since before we had no way to distinguish between operands
that supported any 32-bit immediate and operands which could only
support inline constants.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@218334 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/R600/MCTargetDesc/SIMCCodeEmitter.cpp
lib/Target/R600/SIISelLowering.cpp
lib/Target/R600/SIInstrInfo.cpp
lib/Target/R600/SIInstrInfo.h
lib/Target/R600/SIInstrInfo.td
lib/Target/R600/SIRegisterInfo.cpp
lib/Target/R600/SIRegisterInfo.h
lib/Target/R600/SIRegisterInfo.td