diff options
author | Tom Stellard <[email protected]> | 2012-05-31 20:35:18 -0400 |
---|---|---|
committer | Tom Stellard <[email protected]> | 2012-06-01 11:28:11 -0400 |
commit | d6c2d3722d795381d3cdf11fe00f63780ad0725a (patch) | |
tree | 05b75b2f5a1ac26b476d1851cc62b27fbcc5640a /src/gallium/drivers/radeon/SIRegisterInfo.cpp | |
parent | 65917004d99ccb79f709e621f8f6cf66715ffdca (diff) |
radeon/llvm: Eliminate CFGStructurizer dependency on AMDIL instructions
Add some hooks to the R600,SI InstrInfo and RegisterInfo classes, so
that the CFGStructurizer pass can run without any relying on AMDIL
instructions.
Diffstat (limited to 'src/gallium/drivers/radeon/SIRegisterInfo.cpp')
-rw-r--r-- | src/gallium/drivers/radeon/SIRegisterInfo.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeon/SIRegisterInfo.cpp b/src/gallium/drivers/radeon/SIRegisterInfo.cpp index 04e2e17d7ec..2abe6884da2 100644 --- a/src/gallium/drivers/radeon/SIRegisterInfo.cpp +++ b/src/gallium/drivers/radeon/SIRegisterInfo.cpp @@ -53,4 +53,12 @@ SIRegisterInfo::getISARegClass(const TargetRegisterClass * rc) const } } +const TargetRegisterClass * SIRegisterInfo::getCFGStructurizerRegClass( + MVT VT) const +{ + switch(VT.SimpleTy) { + default: + case MVT::i32: return AMDIL::VReg_32RegisterClass; + } +} #include "SIRegisterGetHWRegNum.inc" |