[llvm-commits] CVS: llvm/lib/Target/X86/InstSelectSimple.cpp Printer.cpp X86RegisterInfo.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sat Feb 14 00:01:01 PST 2004
Changes in directory llvm/lib/Target/X86:
InstSelectSimple.cpp updated: 1.158 -> 1.159
Printer.cpp updated: 1.80 -> 1.81
X86RegisterInfo.cpp updated: 1.44 -> 1.45
---
Log message:
finegrainify namespacification, fix 80col prob
---
Diffs of the changes: (+5 -14)
Index: llvm/lib/Target/X86/InstSelectSimple.cpp
diff -u llvm/lib/Target/X86/InstSelectSimple.cpp:1.158 llvm/lib/Target/X86/InstSelectSimple.cpp:1.159
--- llvm/lib/Target/X86/InstSelectSimple.cpp:1.158 Fri Feb 13 22:46:05 2004
+++ llvm/lib/Target/X86/InstSelectSimple.cpp Sat Feb 14 00:00:36 2004
@@ -1257,7 +1257,7 @@
switch (Align & 3) {
case 2: // WORD aligned
if (ConstantInt *I = dyn_cast<ConstantInt>(CI.getOperand(3))) {
- CountReg = getReg(ConstantUInt::get(Type::UIntTy, I->getRawValue()/2));
+ CountReg =getReg(ConstantUInt::get(Type::UIntTy, I->getRawValue()/2));
} else {
CountReg = makeAnotherReg(Type::IntTy);
BuildMI(BB, X86::SHRir32, 2, CountReg).addReg(ByteReg).addZImm(1);
@@ -1267,7 +1267,7 @@
break;
case 0: // DWORD aligned
if (ConstantInt *I = dyn_cast<ConstantInt>(CI.getOperand(3))) {
- CountReg = getReg(ConstantUInt::get(Type::UIntTy, I->getRawValue()/4));
+ CountReg =getReg(ConstantUInt::get(Type::UIntTy, I->getRawValue()/4));
} else {
CountReg = makeAnotherReg(Type::IntTy);
BuildMI(BB, X86::SHRir32, 2, CountReg).addReg(ByteReg).addZImm(2);
Index: llvm/lib/Target/X86/Printer.cpp
diff -u llvm/lib/Target/X86/Printer.cpp:1.80 llvm/lib/Target/X86/Printer.cpp:1.81
--- llvm/lib/Target/X86/Printer.cpp:1.80 Wed Feb 11 20:27:09 2004
+++ llvm/lib/Target/X86/Printer.cpp Sat Feb 14 00:00:36 2004
@@ -28,8 +28,7 @@
#include "Support/Statistic.h"
#include "Support/StringExtras.h"
#include "Support/CommandLine.h"
-
-namespace llvm {
+using namespace llvm;
namespace {
Statistic<> EmittedInsts("asm-printer", "Number of machine instrs printed");
@@ -91,7 +90,7 @@
/// using the given target machine description. This should work
/// regardless of whether the function is in SSA form.
///
-FunctionPass *createX86CodePrinterPass(std::ostream &o,TargetMachine &tm){
+FunctionPass *llvm::createX86CodePrinterPass(std::ostream &o,TargetMachine &tm){
return new Printer(o, tm);
}
@@ -946,5 +945,3 @@
delete Mang;
return false; // success
}
-
-} // End llvm namespace
Index: llvm/lib/Target/X86/X86RegisterInfo.cpp
diff -u llvm/lib/Target/X86/X86RegisterInfo.cpp:1.44 llvm/lib/Target/X86/X86RegisterInfo.cpp:1.45
--- llvm/lib/Target/X86/X86RegisterInfo.cpp:1.44 Fri Feb 13 19:18:32 2004
+++ llvm/lib/Target/X86/X86RegisterInfo.cpp Sat Feb 14 00:00:36 2004
@@ -26,7 +26,7 @@
#include "Support/CommandLine.h"
#include "Support/STLExtras.h"
-namespace llvm {
+using namespace llvm;
namespace {
cl::opt<bool>
@@ -253,12 +253,8 @@
return MBB.size() - oldSize;
}
-} // End llvm namespace
-
#include "X86GenRegisterInfo.inc"
-namespace llvm {
-
const TargetRegisterClass*
X86RegisterInfo::getRegClassForType(const Type* Ty) const {
switch (Ty->getPrimitiveID()) {
@@ -278,5 +274,3 @@
case Type::DoubleTyID: return &RFPInstance;
}
}
-
-} // End llvm namespace
More information about the llvm-commits
mailing list