summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeon/AMDGPUMCInstLower.cpp
diff options
context:
space:
mode:
authorTom Stellard <[email protected]>2012-08-23 21:00:13 +0000
committerTom Stellard <[email protected]>2012-08-23 21:54:32 +0000
commit2ad8608cb3e6a8d2f375ad2295504167b082711f (patch)
tree6b84323bc2bd123483f556c749d5fa5b63f8242a /src/gallium/drivers/radeon/AMDGPUMCInstLower.cpp
parent228a6641ccddaf24a993f827af1e97379785985a (diff)
radeon/llvm: Fix some coding style issues
Diffstat (limited to 'src/gallium/drivers/radeon/AMDGPUMCInstLower.cpp')
-rw-r--r--src/gallium/drivers/radeon/AMDGPUMCInstLower.cpp20
1 files changed, 17 insertions, 3 deletions
diff --git a/src/gallium/drivers/radeon/AMDGPUMCInstLower.cpp b/src/gallium/drivers/radeon/AMDGPUMCInstLower.cpp
index 65738c2f96d..f3d80a39c3c 100644
--- a/src/gallium/drivers/radeon/AMDGPUMCInstLower.cpp
+++ b/src/gallium/drivers/radeon/AMDGPUMCInstLower.cpp
@@ -1,3 +1,17 @@
+//===- AMDGPUMCInstLower.cpp - Lower AMDGPU MachineInstr to an MCInst -----===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file is distributed under the University of Illinois Open Source
+// License. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+//
+// This file contains code to lower AMDGPU MachineInstrs to their corresponding
+// MCInst.
+//
+//===----------------------------------------------------------------------===//
+//
#include "AMDGPUMCInstLower.h"
#include "AMDGPUAsmPrinter.h"
@@ -13,7 +27,7 @@ using namespace llvm;
AMDGPUMCInstLower::AMDGPUMCInstLower() { }
-void AMDGPUMCInstLower::Lower(const MachineInstr *MI, MCInst &OutMI) const {
+void AMDGPUMCInstLower::lower(const MachineInstr *MI, MCInst &OutMI) const {
OutMI.setOpcode(MI->getOpcode());
for (unsigned i = 0, e = MI->getNumExplicitOperands(); i != e; ++i) {
@@ -56,13 +70,13 @@ void AMDGPUAsmPrinter::EmitInstruction(const MachineInstr *MI) {
while (I != MBB->end() && I->isInsideBundle()) {
MCInst MCBundleInst;
const MachineInstr *BundledInst = I;
- MCInstLowering.Lower(BundledInst, MCBundleInst);
+ MCInstLowering.lower(BundledInst, MCBundleInst);
OutStreamer.EmitInstruction(MCBundleInst);
++I;
}
} else {
MCInst TmpInst;
- MCInstLowering.Lower(MI, TmpInst);
+ MCInstLowering.lower(MI, TmpInst);
OutStreamer.EmitInstruction(TmpInst);
}
}