summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/LiveVariables.cpp
diff options
context:
space:
mode:
authorBill Schmidt <wschmidt@linux.vnet.ibm.com>2013-05-22 20:45:11 +0000
committerBill Schmidt <wschmidt@linux.vnet.ibm.com>2013-05-22 20:45:11 +0000
commit9b703f9c5d85d9ebe78bf4ac09c246bde7cb9588 (patch)
treec090d20d34ab48fdd03083f4f91229113daadf1f /llvm/lib/CodeGen/LiveVariables.cpp
parent217b28baeedf46d33a99613e99d23007a9666da1 (diff)
downloadbcm5719-llvm-9b703f9c5d85d9ebe78bf4ac09c246bde7cb9588.tar.gz
bcm5719-llvm-9b703f9c5d85d9ebe78bf4ac09c246bde7cb9588.zip
Recognize ValueType operands in source patterns for fast-isel.
Currently the fast-isel table generator recognizes registers, register classes, and immediates for source pattern operands. ValueType operands are not recognized. This is not a problem for existing targets with fast-isel support, but will not work for targets like PowerPC and SPARC that use types in source patterns. The proposed patch allows ValueType operands and treats them in the same manner as register classes. There is no convenient way to map from a ValueType to a register class, but there's no need to do so. The table generator already requires that all types in the source pattern be identical, and we know the register class of the output operand already. So we just assign that register class to any ValueType operands we encounter. No functional effect on existing targets. Testing deferred until the PowerPC target implements fast-isel. llvm-svn: 182512
Diffstat (limited to 'llvm/lib/CodeGen/LiveVariables.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud