R600/SI: Determine target-specific encoding of READLANE and WRITELANE early v2
authorMarek Olsak <marek.olsak@amd.com>
Tue, 3 Feb 2015 17:37:57 +0000 (17:37 +0000)
committerMarek Olsak <marek.olsak@amd.com>
Tue, 3 Feb 2015 17:37:57 +0000 (17:37 +0000)
commitf426f1db6e30dea307513e0c88af26aadc5f1b7c
tree293d05077668191ccae9da65d9647372e890ab42
parentb19dbd9eb32d72a55b3bffbc07b042419a86ec9f
R600/SI: Determine target-specific encoding of READLANE and WRITELANE early v2

These are VOP2 on SI and VOP3 on VI, and their pseudos are neither, which can
be a problem. In order to make isVOP2 and isVOP3 queries behave as expected,
the encoding must be determined first.

This doesn't fix any known issue, but better safe than sorry.

v2: add and use getMCOpcodeFromPseudo

Tested-by: Michel Dänzer <michel.daenzer@amd.com>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227987 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/R600/AMDGPUInstrInfo.h
lib/Target/R600/SIRegisterInfo.cpp