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)
commit3db6ba8cfae254ecd3b5a8166d857cadb19d04e4
tree5f1c7d4e5201f24820e8a9b791cfec78457c4803
parent1bd2463548900aff9cbbfd3cbc878b1d2a026c6a
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>
llvm-svn: 227987
llvm/lib/Target/R600/AMDGPUInstrInfo.h
llvm/lib/Target/R600/SIRegisterInfo.cpp