summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeon/AMDILRegisterInfo.cpp
diff options
context:
space:
mode:
authorTom Stellard <[email protected]>2012-05-08 15:37:59 -0400
committerTom Stellard <[email protected]>2012-05-08 15:47:46 -0400
commit5aaaa6a426258dc714c7346bec062795998f9986 (patch)
tree1362f721ad2722d7308069d8fc4310681cd72a8f /src/gallium/drivers/radeon/AMDILRegisterInfo.cpp
parent21ab46eae8b1156667dd35142829392701a8637d (diff)
radeon/llvm: Remove AMDILUtilityFunctions.cpp
Diffstat (limited to 'src/gallium/drivers/radeon/AMDILRegisterInfo.cpp')
-rw-r--r--src/gallium/drivers/radeon/AMDILRegisterInfo.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/gallium/drivers/radeon/AMDILRegisterInfo.cpp b/src/gallium/drivers/radeon/AMDILRegisterInfo.cpp
index 5588233378c..d7c1dc74b8b 100644
--- a/src/gallium/drivers/radeon/AMDILRegisterInfo.cpp
+++ b/src/gallium/drivers/radeon/AMDILRegisterInfo.cpp
@@ -20,7 +20,8 @@
#include "AMDILRegisterInfo.h"
#include "AMDIL.h"
-#include "AMDILUtilityFunctions.h"
+#include "AMDILInstrInfo.h"
+#include "AMDILTargetMachine.h"
#include "llvm/ADT/BitVector.h"
#include "llvm/CodeGen/MachineFrameInfo.h"
#include "llvm/CodeGen/MachineRegisterInfo.h"
@@ -109,7 +110,9 @@ AMDILRegisterInfo::eliminateFrameIndex(MachineBasicBlock::iterator II,
if (!MI.getOperand(x).isFI()) {
continue;
}
- bool def = isStoreInst(TM.getInstrInfo(), &MI);
+ const AMDILInstrInfo * AMDILII =
+ static_cast<const AMDILInstrInfo *>(TM.getInstrInfo());
+ bool def = AMDILII->isStoreInst(&MI);
int FrameIndex = MI.getOperand(x).getIndex();
int64_t Offset = MFI->getObjectOffset(FrameIndex);
//int64_t Size = MF.getFrameInfo()->getObjectSize(FrameIndex);