diff options
Diffstat (limited to 'src/gallium/drivers/radeon/SIPropagateImmReads.cpp')
-rw-r--r-- | src/gallium/drivers/radeon/SIPropagateImmReads.cpp | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/src/gallium/drivers/radeon/SIPropagateImmReads.cpp b/src/gallium/drivers/radeon/SIPropagateImmReads.cpp index 6a165488831..09a28c605e2 100644 --- a/src/gallium/drivers/radeon/SIPropagateImmReads.cpp +++ b/src/gallium/drivers/radeon/SIPropagateImmReads.cpp @@ -21,19 +21,21 @@ using namespace llvm; namespace { - class SIPropagateImmReadsPass : public MachineFunctionPass { - private: - static char ID; - TargetMachine &TM; +class SIPropagateImmReadsPass : public MachineFunctionPass { - public: - SIPropagateImmReadsPass(TargetMachine &tm) : - MachineFunctionPass(ID), TM(tm) { } +private: + static char ID; + TargetMachine &TM; - virtual bool runOnMachineFunction(MachineFunction &MF); - }; -} /* End anonymous namespace */ +public: + SIPropagateImmReadsPass(TargetMachine &tm) : + MachineFunctionPass(ID), TM(tm) { } + + virtual bool runOnMachineFunction(MachineFunction &MF); +}; + +} // End anonymous namespace char SIPropagateImmReadsPass::ID = 0; @@ -60,7 +62,7 @@ bool SIPropagateImmReadsPass::runOnMachineFunction(MachineFunction &MF) continue; } - /* XXX: Create and use S_MOV_IMM for SREGs */ + // XXX: Create and use S_MOV_IMM for SREGs BuildMI(MBB, I, MBB.findDebugLoc(I), TII->get(AMDIL::V_MOV_IMM)) .addOperand(MI.getOperand(0)) .addOperand(MI.getOperand(1)); |