diff options
author | Misha Brukman <brukman+llvm@gmail.com> | 2003-05-20 20:32:24 +0000 |
---|---|---|
committer | Misha Brukman <brukman+llvm@gmail.com> | 2003-05-20 20:32:24 +0000 |
commit | a98cd4578f6c27bed2b04c09f4d71e5381a9bd40 (patch) | |
tree | f30df36c74a814481f8e18ad8de1e3da35461dd6 /lib/Target/SparcV9/SparcV9InstrSelectionSupport.h | |
parent | f117cc9ee656fa31ea933127757ffc9cd5f21a76 (diff) | |
download | external_llvm-a98cd4578f6c27bed2b04c09f4d71e5381a9bd40.zip external_llvm-a98cd4578f6c27bed2b04c09f4d71e5381a9bd40.tar.gz external_llvm-a98cd4578f6c27bed2b04c09f4d71e5381a9bd40.tar.bz2 |
Sparc instruction opcodes now all live under the `V9' namespace.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6249 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/SparcV9/SparcV9InstrSelectionSupport.h')
-rw-r--r-- | lib/Target/SparcV9/SparcV9InstrSelectionSupport.h | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/lib/Target/SparcV9/SparcV9InstrSelectionSupport.h b/lib/Target/SparcV9/SparcV9InstrSelectionSupport.h index 9038a4d..aea482e 100644 --- a/lib/Target/SparcV9/SparcV9InstrSelectionSupport.h +++ b/lib/Target/SparcV9/SparcV9InstrSelectionSupport.h @@ -14,17 +14,17 @@ ChooseLoadInstruction(const Type *DestTy) { switch (DestTy->getPrimitiveID()) { case Type::BoolTyID: - case Type::UByteTyID: return LDUB; - case Type::SByteTyID: return LDSB; - case Type::UShortTyID: return LDUH; - case Type::ShortTyID: return LDSH; - case Type::UIntTyID: return LDUW; - case Type::IntTyID: return LDSW; + case Type::UByteTyID: return V9::LDUB; + case Type::SByteTyID: return V9::LDSB; + case Type::UShortTyID: return V9::LDUH; + case Type::ShortTyID: return V9::LDSH; + case Type::UIntTyID: return V9::LDUW; + case Type::IntTyID: return V9::LDSW; case Type::PointerTyID: case Type::ULongTyID: - case Type::LongTyID: return LDX; - case Type::FloatTyID: return LD; - case Type::DoubleTyID: return LDD; + case Type::LongTyID: return V9::LDX; + case Type::FloatTyID: return V9::LD; + case Type::DoubleTyID: return V9::LDD; default: assert(0 && "Invalid type for Load instruction"); } @@ -37,16 +37,16 @@ ChooseStoreInstruction(const Type *DestTy) switch (DestTy->getPrimitiveID()) { case Type::BoolTyID: case Type::UByteTyID: - case Type::SByteTyID: return STB; + case Type::SByteTyID: return V9::STB; case Type::UShortTyID: - case Type::ShortTyID: return STH; + case Type::ShortTyID: return V9::STH; case Type::UIntTyID: - case Type::IntTyID: return STW; + case Type::IntTyID: return V9::STW; case Type::PointerTyID: case Type::ULongTyID: - case Type::LongTyID: return STX; - case Type::FloatTyID: return ST; - case Type::DoubleTyID: return STD; + case Type::LongTyID: return V9::STX; + case Type::FloatTyID: return V9::ST; + case Type::DoubleTyID: return V9::STD; default: assert(0 && "Invalid type for Store instruction"); } @@ -57,22 +57,22 @@ ChooseStoreInstruction(const Type *DestTy) inline MachineOpCode ChooseAddInstructionByType(const Type* resultType) { - MachineOpCode opCode = INVALID_OPCODE; + MachineOpCode opCode = V9::INVALID_OPCODE; if (resultType->isIntegral() || isa<PointerType>(resultType) || isa<FunctionType>(resultType) || resultType == Type::LabelTy) - { - opCode = ADD; - } + { + opCode = V9::ADD; + } else switch(resultType->getPrimitiveID()) - { - case Type::FloatTyID: opCode = FADDS; break; - case Type::DoubleTyID: opCode = FADDD; break; - default: assert(0 && "Invalid type for ADD instruction"); break; - } + { + case Type::FloatTyID: opCode = V9::FADDS; break; + case Type::DoubleTyID: opCode = V9::FADDD; break; + default: assert(0 && "Invalid type for ADD instruction"); break; + } return opCode; } |