diff options
author | Tom Stellard <[email protected]> | 2012-04-25 12:16:27 -0400 |
---|---|---|
committer | Tom Stellard <[email protected]> | 2012-04-25 12:52:44 -0400 |
commit | 30f2a38cef4d4a75776fbd822ff4ad716302b888 (patch) | |
tree | 42e749570ba8478848076cb6b904bf0b139fad33 /src/gallium/drivers/radeon/SIMachineFunctionInfo.cpp | |
parent | 540ec964db1c0046935def3c85b2a5c7bd634782 (diff) |
radeon/llvm: Remove AMDILMachineFunctionInfo.cpp
Diffstat (limited to 'src/gallium/drivers/radeon/SIMachineFunctionInfo.cpp')
-rw-r--r-- | src/gallium/drivers/radeon/SIMachineFunctionInfo.cpp | 44 |
1 files changed, 2 insertions, 42 deletions
diff --git a/src/gallium/drivers/radeon/SIMachineFunctionInfo.cpp b/src/gallium/drivers/radeon/SIMachineFunctionInfo.cpp index a69353af9a6..eace40c226c 100644 --- a/src/gallium/drivers/radeon/SIMachineFunctionInfo.cpp +++ b/src/gallium/drivers/radeon/SIMachineFunctionInfo.cpp @@ -13,50 +13,10 @@ #include "SIMachineFunctionInfo.h" -#include "AMDGPU.h" -#include "llvm/CodeGen/MachineFunctionPass.h" using namespace llvm; - -SIMachineFunctionInfo::SIMachineFunctionInfo() - : AMDILMachineFunctionInfo(), - spi_ps_input_addr(0) - { } - -SIMachineFunctionInfo::SIMachineFunctionInfo(MachineFunction &MF) - : AMDILMachineFunctionInfo(MF), +SIMachineFunctionInfo::SIMachineFunctionInfo(const MachineFunction &MF) + : MachineFunctionInfo(), spi_ps_input_addr(0) { } - - -namespace { - class SIInitMachineFunctionInfoPass : public MachineFunctionPass { - - private: - static char ID; - TargetMachine &TM; - - public: - SIInitMachineFunctionInfoPass(TargetMachine &tm) : - MachineFunctionPass(ID), TM(tm) { } - virtual bool runOnMachineFunction(MachineFunction &MF); - }; -} // End anonymous namespace - -char SIInitMachineFunctionInfoPass::ID = 0; - -FunctionPass *llvm::createSIInitMachineFunctionInfoPass(TargetMachine &tm) { - return new SIInitMachineFunctionInfoPass(tm); -} - -/* A MachineFunction's MachineFunctionInfo is initialized in the first call to - * getInfo(). We need to intialize it as an SIMachineFunctionInfo object - * before any of the AMDIL passes otherwise it will be an - * AMDILMachineFunctionInfo object and we won't be able to use it. - */ -bool SIInitMachineFunctionInfoPass::runOnMachineFunction(MachineFunction &MF) -{ - SIMachineFunctionInfo * MFI = MF.getInfo<SIMachineFunctionInfo>(); - return false; -} |