summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeon/AMDGPULowerInstructions.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/AMDGPULowerInstructions.cpp
parent23c0d469e55b3cb79ad4b2fd0d961562a26234fd (diff)
radeon/llvm: More comments and cleanups
Diffstat (limited to 'src/gallium/drivers/radeon/AMDGPULowerInstructions.cpp')
-rw-r--r--src/gallium/drivers/radeon/AMDGPULowerInstructions.cpp26
1 files changed, 14 insertions, 12 deletions
diff --git a/src/gallium/drivers/radeon/AMDGPULowerInstructions.cpp b/src/gallium/drivers/radeon/AMDGPULowerInstructions.cpp
index 2e455fea8ab..42374ef1254 100644
--- a/src/gallium/drivers/radeon/AMDGPULowerInstructions.cpp
+++ b/src/gallium/drivers/radeon/AMDGPULowerInstructions.cpp
@@ -23,22 +23,24 @@
using namespace llvm;
namespace {
- class AMDGPULowerInstructionsPass : public MachineFunctionPass {
- private:
- static char ID;
- TargetMachine &TM;
- void lowerVCREATE_v4(MachineInstr &MI, MachineBasicBlock::iterator I,
- MachineBasicBlock &MBB, MachineFunction &MF);
+class AMDGPULowerInstructionsPass : public MachineFunctionPass {
- public:
- AMDGPULowerInstructionsPass(TargetMachine &tm) :
- MachineFunctionPass(ID), TM(tm) { }
+private:
+ static char ID;
+ TargetMachine &TM;
+ void lowerVCREATE_v4(MachineInstr &MI, MachineBasicBlock::iterator I,
+ MachineBasicBlock &MBB, MachineFunction &MF);
- virtual bool runOnMachineFunction(MachineFunction &MF);
+public:
+ AMDGPULowerInstructionsPass(TargetMachine &tm) :
+ MachineFunctionPass(ID), TM(tm) { }
- };
-} /* End anonymous namespace */
+ virtual bool runOnMachineFunction(MachineFunction &MF);
+
+};
+
+} // End anonymous namespace
char AMDGPULowerInstructionsPass::ID = 0;