llvm.org GIT mirror llvm / 2ba767f
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 Reid Spencer 13 years ago
4 changed file(s) with 26 addition(s) and 29 deletion(s). Raw diff Collapse all Expand all
2222
2323 union GenericValue {
2424 bool BoolVal;
25 unsigned char UByteVal;
26 signed char SByteVal;
27 unsigned short UShortVal;
28 signed short ShortVal;
29 unsigned int UIntVal;
30 signed int IntVal;
31 uint64_t ULongVal;
32 int64_t LongVal;
25 unsigned char Int8Val;
26 unsigned short Int16Val;
27 unsigned int Int32Val;
28 uint64_t Int64Val;
3329 double DoubleVal;
3430 float FloatVal;
3531 struct { unsigned int first; unsigned int second; } UIntPairVal;
426426 /// involving Integer and Pointer types. They are no-op casts if the integer
427427 /// is the same size as the pointer. However, pointer size varies with
428428 /// platform. Generally, the result of TargetData::getIntPtrType() should be
429 /// passed in. If that's not available, use Type::ULongTy, which will make
429 /// passed in. If that's not available, use Type::Int64Ty, which will make
430430 /// the isNoopCast call conservative.
431431 /// @brief Determine if this cast is a no-op cast.
432432 bool isNoopCast(
6464
6565 def llvm_void_ty : LLVMType;
6666 def llvm_bool_ty : LLVMType;
67 def llvm_sbyte_ty : LLVMType;
68 def llvm_short_ty : LLVMType;
69 def llvm_int_ty : LLVMType;
70 def llvm_long_ty : LLVMType;
71 def llvm_ubyte_ty : LLVMType;
72 def llvm_ushort_ty : LLVMType;
73 def llvm_uint_ty : LLVMType;
74 def llvm_ulong_ty : LLVMTypeTyID">;
67 def llvm_sbyte_ty : LLVMTypeTyID">;
68 def llvm_short_ty : LLVMType;
69 def llvm_int_ty : LLVMType;
70 def llvm_long_ty : LLVMType;
71 def llvm_ubyte_ty : LLVMType;
72 def llvm_ushort_ty : LLVMType;
73 def llvm_uint_ty : LLVMType;
74 def llvm_ulong_ty : LLVMType;
7575 def llvm_float_ty : LLVMType;
7676 def llvm_double_ty : LLVMType;
7777 def llvm_ptr_ty : LLVMType; // sbyte*
342342 default: assert(0 && "Unknown type!");
343343 case Type::VoidTyID: return MVT::isVoid;
344344 case Type::BoolTyID: return MVT::i1;
345 case Type::UByteTyID:
346 case Type::SByteTyID: return MVT::i8;
347 case Type::ShortTyID:
348 case Type::UShortTyID: return MVT::i16;
349 case Type::IntTyID:
350 case Type::UIntTyID: return MVT::i32;
351 case Type::LongTyID:
352 case Type::ULongTyID: return MVT::i64;
345 case Type::Int8TyID: return MVT::i8;
346 case Type::Int16TyID: return MVT::i16;
347 case Type::Int32TyID: return MVT::i32;
348 case Type::Int64TyID: return MVT::i64;
353349 case Type::FloatTyID: return MVT::f32;
354350 case Type::DoubleTyID: return MVT::f64;
355351 case Type::PointerTyID: return PointerTy;
742738 /// actual call. This returns a pair of operands. The first element is the
743739 /// return value for the function (if RetTy is not VoidTy). The second
744740 /// element is the outgoing token chain.
745 typedef std::vector > ArgListTy;
741 struct ArgListEntry {
742 SDOperand Node;
743 const Type* Ty;
744 bool isSigned;
745 };
746 typedef std::vector ArgListTy;
746747 virtual std::pair
747 LowerCallTo(SDOperand Chain, const Type *RetTy, bool isVarArg,
748 unsigned CallingConv, bool isTailCall, SDOperand Callee,
749 ArgListTy &Args, SelectionDAG &DAG);
748 LowerCallTo(SDOperand Chain, const Type *RetTy, bool RetTyIsSigned,
749 bool isVarArg, unsigned CallingConv, bool isTailCall,
750 SDOperand Callee, ArgListTy &Args, SelectionDAG &DAG);
750751
751752 /// LowerFrameReturnAddress - This hook lowers a call to llvm.returnaddress or
752753 /// llvm.frameaddress (depending on the value of the first argument). The