From bcfc97dbf40c256ed59c2424e0c55b845f0f2569 Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Fri, 11 May 2012 13:44:24 -0400 Subject: radeon/llvm: More comments and cleanups --- src/gallium/drivers/radeon/SIPropagateImmReads.cpp | 24 ++++++++++++---------- 1 file changed, 13 insertions(+), 11 deletions(-) (limited to 'src/gallium/drivers/radeon/SIPropagateImmReads.cpp') 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)); -- cgit v1.2.3