diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2006-12-31 05:23:18 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2006-12-31 05:23:18 +0000 |
commit | 2ba767f44ad8af9f941213e3dad017771e572db8 (patch) | |
tree | a72bb50ce3acad525c819fc4c200d3e5ae237928 /include/llvm/Target/TargetLowering.h | |
parent | 57a0342e96b18af93972d8371e7b5eb82dc853c4 (diff) | |
download | external_llvm-2ba767f44ad8af9f941213e3dad017771e572db8.zip external_llvm-2ba767f44ad8af9f941213e3dad017771e572db8.tar.gz external_llvm-2ba767f44ad8af9f941213e3dad017771e572db8.tar.bz2 |
For PR950:
Change integer type names for signless integer types
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32777 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Target/TargetLowering.h')
-rw-r--r-- | include/llvm/Target/TargetLowering.h | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/include/llvm/Target/TargetLowering.h b/include/llvm/Target/TargetLowering.h index f3f4eda..2a353ba 100644 --- a/include/llvm/Target/TargetLowering.h +++ b/include/llvm/Target/TargetLowering.h @@ -343,14 +343,10 @@ public: default: assert(0 && "Unknown type!"); case Type::VoidTyID: return MVT::isVoid; case Type::BoolTyID: return MVT::i1; - case Type::UByteTyID: - case Type::SByteTyID: return MVT::i8; - case Type::ShortTyID: - case Type::UShortTyID: return MVT::i16; - case Type::IntTyID: - case Type::UIntTyID: return MVT::i32; - case Type::LongTyID: - case Type::ULongTyID: return MVT::i64; + case Type::Int8TyID: return MVT::i8; + case Type::Int16TyID: return MVT::i16; + case Type::Int32TyID: return MVT::i32; + case Type::Int64TyID: return MVT::i64; case Type::FloatTyID: return MVT::f32; case Type::DoubleTyID: return MVT::f64; case Type::PointerTyID: return PointerTy; @@ -743,11 +739,16 @@ public: /// actual call. This returns a pair of operands. The first element is the /// return value for the function (if RetTy is not VoidTy). The second /// element is the outgoing token chain. - typedef std::vector<std::pair<SDOperand, const Type*> > ArgListTy; + struct ArgListEntry { + SDOperand Node; + const Type* Ty; + bool isSigned; + }; + typedef std::vector<ArgListEntry> ArgListTy; virtual std::pair<SDOperand, SDOperand> - LowerCallTo(SDOperand Chain, const Type *RetTy, bool isVarArg, - unsigned CallingConv, bool isTailCall, SDOperand Callee, - ArgListTy &Args, SelectionDAG &DAG); + LowerCallTo(SDOperand Chain, const Type *RetTy, bool RetTyIsSigned, + bool isVarArg, unsigned CallingConv, bool isTailCall, + SDOperand Callee, ArgListTy &Args, SelectionDAG &DAG); /// LowerFrameReturnAddress - This hook lowers a call to llvm.returnaddress or /// llvm.frameaddress (depending on the value of the first argument). The |