summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeon/SIPropagateImmReads.cpp
diff options
context:
space:
mode:
authorTom Stellard <[email protected]>2012-05-11 13:44:24 -0400
committerTom Stellard <[email protected]>2012-05-11 15:09:52 -0400
commitbcfc97dbf40c256ed59c2424e0c55b845f0f2569 (patch)
tree75f46800f74716e7703c47a8f0b5b04a1551be6a /src/gallium/drivers/radeon/SIPropagateImmReads.cpp
parent23c0d469e55b3cb79ad4b2fd0d961562a26234fd (diff)
radeon/llvm: More comments and cleanups
Diffstat (limited to 'src/gallium/drivers/radeon/SIPropagateImmReads.cpp')
-rw-r--r--src/gallium/drivers/radeon/SIPropagateImmReads.cpp24
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));