diff options
author | Chris Lattner <sabre@nondot.org> | 2004-06-17 18:19:28 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-06-17 18:19:28 +0000 |
commit | 6b7275996c78e50ca8b7d13625296b92d74b86c7 (patch) | |
tree | 75817e19a6f0bb380bf1a9ba39f0664076fb5705 /llvm/lib/Target/X86 | |
parent | 97bfcea262bbdeba8f8d468ff999008a4c448474 (diff) | |
download | bcm5719-llvm-6b7275996c78e50ca8b7d13625296b92d74b86c7.tar.gz bcm5719-llvm-6b7275996c78e50ca8b7d13625296b92d74b86c7.zip |
Rename Type::PrimitiveID to TypeId and ::getPrimitiveID() to ::getTypeID()
llvm-svn: 14201
Diffstat (limited to 'llvm/lib/Target/X86')
-rw-r--r-- | llvm/lib/Target/X86/InstSelectSimple.cpp | 8 | ||||
-rw-r--r-- | llvm/lib/Target/X86/Printer.cpp | 4 | ||||
-rw-r--r-- | llvm/lib/Target/X86/X86RegisterInfo.cpp | 2 | ||||
-rw-r--r-- | llvm/lib/Target/X86/X86SimpInstrSelector.cpp | 8 |
4 files changed, 11 insertions, 11 deletions
diff --git a/llvm/lib/Target/X86/InstSelectSimple.cpp b/llvm/lib/Target/X86/InstSelectSimple.cpp index 9cf4b60bd52..0c8b0a45667 100644 --- a/llvm/lib/Target/X86/InstSelectSimple.cpp +++ b/llvm/lib/Target/X86/InstSelectSimple.cpp @@ -47,7 +47,7 @@ namespace { /// size of the type, and whether or not it is floating point. /// static inline TypeClass getClass(const Type *Ty) { - switch (Ty->getPrimitiveID()) { + switch (Ty->getTypeID()) { case Type::SByteTyID: case Type::UByteTyID: return cByte; // Byte operands are class #0 case Type::ShortTyID: @@ -3258,7 +3258,7 @@ void ISel::emitCastOperation(MachineBasicBlock *BB, const Type *PromoteType = 0; unsigned PromoteOpcode = 0; unsigned RealDestReg = DestReg; - switch (SrcTy->getPrimitiveID()) { + switch (SrcTy->getTypeID()) { case Type::BoolTyID: case Type::SByteTyID: // We don't have the facilities for directly loading byte sized data from @@ -3429,7 +3429,7 @@ void ISel::visitVANextInst(VANextInst &I) { unsigned DestReg = getReg(I); unsigned Size; - switch (I.getArgType()->getPrimitiveID()) { + switch (I.getArgType()->getTypeID()) { default: std::cerr << I; assert(0 && "Error: bad type for va_next instruction!"); @@ -3454,7 +3454,7 @@ void ISel::visitVAArgInst(VAArgInst &I) { unsigned VAList = getReg(I.getOperand(0)); unsigned DestReg = getReg(I); - switch (I.getType()->getPrimitiveID()) { + switch (I.getType()->getTypeID()) { default: std::cerr << I; assert(0 && "Error: bad type for va_next instruction!"); diff --git a/llvm/lib/Target/X86/Printer.cpp b/llvm/lib/Target/X86/Printer.cpp index cbc4aeacf56..2a9ba83b4ed 100644 --- a/llvm/lib/Target/X86/Printer.cpp +++ b/llvm/lib/Target/X86/Printer.cpp @@ -285,7 +285,7 @@ void Printer::emitGlobalConstant(const Constant *CV) { // FP Constants are printed as integer constants to avoid losing // precision... double Val = CFP->getValue(); - switch (CFP->getType()->getPrimitiveID()) { + switch (CFP->getType()->getTypeID()) { default: assert(0 && "Unknown floating point type!"); case Type::FloatTyID: { union FU { // Abide by C TBAA rules @@ -310,7 +310,7 @@ void Printer::emitGlobalConstant(const Constant *CV) { const Type *type = CV->getType(); O << "\t"; - switch (type->getPrimitiveID()) { + switch (type->getTypeID()) { case Type::BoolTyID: case Type::UByteTyID: case Type::SByteTyID: O << ".byte"; break; diff --git a/llvm/lib/Target/X86/X86RegisterInfo.cpp b/llvm/lib/Target/X86/X86RegisterInfo.cpp index 02d9fc5d17f..03fe5505aed 100644 --- a/llvm/lib/Target/X86/X86RegisterInfo.cpp +++ b/llvm/lib/Target/X86/X86RegisterInfo.cpp @@ -503,7 +503,7 @@ void X86RegisterInfo::emitEpilogue(MachineFunction &MF, const TargetRegisterClass* X86RegisterInfo::getRegClassForType(const Type* Ty) const { - switch (Ty->getPrimitiveID()) { + switch (Ty->getTypeID()) { case Type::LongTyID: case Type::ULongTyID: assert(0 && "Long values can't fit in registers!"); default: assert(0 && "Invalid type to getClass!"); diff --git a/llvm/lib/Target/X86/X86SimpInstrSelector.cpp b/llvm/lib/Target/X86/X86SimpInstrSelector.cpp index 3c02acb4044..7a6115e3ec7 100644 --- a/llvm/lib/Target/X86/X86SimpInstrSelector.cpp +++ b/llvm/lib/Target/X86/X86SimpInstrSelector.cpp @@ -347,7 +347,7 @@ enum Subclasses { /// size of the type, and whether or not it is floating point. /// static inline TypeClass getClass(const Type *Ty) { - switch (Ty->getPrimitiveID()) { + switch (Ty->getTypeID()) { case Type::SByteTyID: case Type::UByteTyID: return cByte; // Byte operands are class #0 case Type::ShortTyID: @@ -2246,7 +2246,7 @@ void ISel::emitCastOperation(MachineBasicBlock *BB, const Type *PromoteType = 0; unsigned PromoteOpcode; unsigned RealDestReg = DestReg; - switch (SrcTy->getPrimitiveID()) { + switch (SrcTy->getTypeID()) { case Type::BoolTyID: case Type::SByteTyID: // We don't have the facilities for directly loading byte sized data from @@ -2418,7 +2418,7 @@ void ISel::visitVANextInst(VANextInst &I) { unsigned DestReg = getReg(I); unsigned Size; - switch (I.getArgType()->getPrimitiveID()) { + switch (I.getArgType()->getTypeID()) { default: std::cerr << I; assert(0 && "Error: bad type for va_next instruction!"); @@ -2443,7 +2443,7 @@ void ISel::visitVAArgInst(VAArgInst &I) { unsigned VAList = getReg(I.getOperand(0)); unsigned DestReg = getReg(I); - switch (I.getType()->getPrimitiveID()) { + switch (I.getType()->getTypeID()) { default: std::cerr << I; assert(0 && "Error: bad type for va_next instruction!"); |