/freebsd-11.0-release/contrib/llvm/include/llvm/ADT/ |
H A D | APInt.h | 1 //===-- llvm/ADT/APInt.h - For Arbitrary Precision Integer -----*- C++ -*--===// 44 // APInt Class 49 /// APInt is a functional replacement for common case unsigned integer type like 52 /// than 64-bits of precision. APInt provides a variety of arithmetic operators 61 /// * All binary operators must be on APInt instances of the same bit width. 73 class APInt { class in namespace:llvm 74 unsigned BitWidth; ///< The number of bits in this APInt. 83 /// This enum is used to hold the constants we needed for APInt. 98 APInt(uint64_t *val, unsigned bits) : BitWidth(bits), pVal(val) {} function in class:llvm::APInt 100 /// \brief Determine if this APInt jus 236 APInt(unsigned numBits, uint64_t val, bool isSigned = false) function in class:llvm::APInt 279 APInt(const APInt &that) : BitWidth(that.BitWidth), VAL(0) { function in class:llvm::APInt 287 APInt(APInt &&that) : BitWidth(that.BitWidth), VAL(that.VAL) { function in class:llvm::APInt 302 explicit APInt() : BitWidth(1), VAL(0) {} function in class:llvm::APInt [all...] |
H A D | APSInt.h | 18 #include "llvm/ADT/APInt.h" 22 class APSInt : public APInt { 26 /// Default constructor that creates an uninitialized APInt. 32 : APInt(BitWidth, 0), IsUnsigned(isUnsigned) {} 34 explicit APSInt(APInt I, bool isUnsigned = true) 35 : APInt(std::move(I)), IsUnsigned(isUnsigned) {} 46 APSInt &operator=(APInt RHS) { 48 APInt::operator=(std::move(RHS)); 54 APInt::operator=(RHS); 66 APInt [all...] |
H A D | APFloat.h | 20 #include "llvm/ADT/APInt.h" 43 /// the APInt class. The library will work with bignum integers whose parts are 198 APFloat(const fltSemantics &, const APInt &); 239 APInt fill(64, type); 248 const APInt *payload = nullptr) { 254 const APInt *payload = nullptr) { 365 opStatus convertFromAPInt(const APInt &, bool, roundingMode); 371 APInt bitcastToAPInt() const; 577 const APInt *fill = nullptr); 579 const APInt *fil [all...] |
/freebsd-11.0-release/contrib/llvm/include/llvm/Analysis/ |
H A D | DemandedBits.h | 26 #include "llvm/ADT/APInt.h" 47 APInt getDemandedBits(Instruction *I); 56 const APInt &AOut, APInt &AB, 57 APInt &KnownZero, APInt &KnownOne, 58 APInt &KnownZero2, APInt &KnownOne2); 67 DenseMap<Instruction *, APInt> AliveBits;
|
H A D | MemoryBuiltins.h | 136 typedef std::pair<APInt, APInt> SizeOffsetType; 147 APInt Zero; 150 APInt align(APInt Size, uint64_t Align); 153 return std::make_pair(APInt(), APInt());
|
/freebsd-11.0-release/contrib/llvm/lib/Support/ |
H A D | APInt.cpp | 1 //===-- APInt.cpp - Implement APInt class ---------------------------------===// 15 #include "llvm/ADT/APInt.h" 36 assert(result && "APInt memory allocation fails!"); 45 assert(result && "APInt memory allocation fails!"); 77 void APInt::initSlowCase(unsigned numBits, uint64_t val, bool isSigned) { 85 void APInt::initSlowCase(const APInt& that) { 90 void APInt::initFromArray(ArrayRef<uint64_t> bigVal) { 107 APInt function in class:APInt 112 APInt::APInt(unsigned numBits, unsigned numWords, const uint64_t bigVal[]) function in class:APInt 117 APInt::APInt(unsigned numbits, StringRef Str, uint8_t radix) function in class:APInt [all...] |
H A D | APSInt.cpp | 25 APInt Tmp(NumBits, Str, /*Radix=*/10); 41 APInt::Profile(ID);
|
H A D | APFloat.cpp | 349 lsb = APInt::tcLSB(parts, partCount); 357 APInt::tcExtractBit(parts, bits - 1)) 371 APInt::tcShiftRight(dst, parts, bits); 487 APInt::tcFullMultiply(pow5, pow5 - pc, pow5 - pc, pc, pc); 497 APInt::tcFullMultiply(p2, p1, pow5, result, pc); 511 APInt::tcAssign(dst, p1, result); 613 APInt::tcAssign(significandParts(), rhs.significandParts(), 620 void APFloat::makeNaN(bool SNaN, bool Negative, const APInt *fill) 630 APInt::tcSet(significand, 0, numParts); 632 APInt [all...] |
/freebsd-11.0-release/contrib/llvm/include/llvm/IR/ |
H A D | ConstantRange.h | 35 #include "llvm/ADT/APInt.h" 44 APInt Lower, Upper; 47 typedef APInt APIntMoveTy; 60 /// assert out if the two APInt's are not the same bit width. 94 const APInt &C, unsigned NoWrapKind); 98 const APInt &getLower() const { return Lower; } 102 const APInt &getUpper() const { return Upper; } 129 bool contains(const APInt &Val) const; 137 const APInt *getSingleElement() const { 149 APInt getSetSiz [all...] |
H A D | Constant.h | 20 class APInt; 109 const APInt &getUniqueInteger() const; 147 static Constant *getIntegerValue(Type *Ty, const APInt &V);
|
H A D | MDBuilder.h | 24 class APInt; 74 MDNode *createRange(const APInt &Lo, const APInt &Hi);
|
/freebsd-11.0-release/contrib/llvm/lib/IR/ |
H A D | Operator.cpp | 16 APInt &Offset) const { 33 Offset += APInt(Offset.getBitWidth(), SL->getElementOffset(ElementIdx)); 38 APInt Index = OpC->getValue().sextOrTrunc(Offset.getBitWidth()); 39 Offset += Index * APInt(Offset.getBitWidth(),
|
H A D | ConstantRange.cpp | 36 Lower = Upper = APInt::getMaxValue(BitWidth); 38 Lower = Upper = APInt::getMinValue(BitWidth); 70 APInt UMax(CR.getUnsignedMax()); 73 return ConstantRange(APInt::getMinValue(W), UMax); 76 APInt SMax(CR.getSignedMax()); 79 return ConstantRange(APInt::getSignedMinValue(W), SMax); 82 APInt UMax(CR.getUnsignedMax()); 85 return ConstantRange(APInt::getMinValue(W), UMax + 1); 88 APInt SMax(CR.getSignedMax()); 91 return ConstantRange(APInt [all...] |
/freebsd-11.0-release/contrib/llvm/lib/Analysis/ |
H A D | DemandedBits.cpp | 73 const APInt &AOut, APInt &AB, APInt &KnownZero, APInt &KnownOne, 74 APInt &KnownZero2, APInt &KnownOne2) { 86 KnownZero = APInt(BitWidth, 0); 87 KnownOne = APInt(BitWidth, 0); 92 KnownZero2 = APInt(BitWidth, 0); 93 KnownOne2 = APInt(BitWidt [all...] |
H A D | ValueTracking.cpp | 130 static void computeKnownBits(Value *V, APInt &KnownZero, APInt &KnownOne, 134 void llvm::computeKnownBits(Value *V, APInt &KnownZero, APInt &KnownOne, 150 APInt LHSKnownZero(IT->getBitWidth(), 0), LHSKnownOne(IT->getBitWidth(), 0); 151 APInt RHSKnownZero(IT->getBitWidth(), 0), RHSKnownOne(IT->getBitWidth(), 0); 208 static bool MaskedValueIsZero(Value *V, const APInt &Mask, const DataLayout &DL, 211 bool llvm::MaskedValueIsZero(Value *V, const APInt &Mask, const DataLayout &DL, 229 APInt &KnownZero, APInt [all...] |
/freebsd-11.0-release/contrib/llvm/lib/ExecutionEngine/Orc/ |
H A D | OrcMCJITReplacement.cpp | 55 rv.IntVal = APInt(32, PF(ArgValues[0].IntVal.getZExtValue(), 68 rv.IntVal = APInt(32, PF(ArgValues[0].IntVal.getZExtValue(), 77 rv.IntVal = APInt(32, PF(ArgValues[0].IntVal.getZExtValue())); 93 rv.IntVal = APInt(BitWidth, ((bool (*)())(intptr_t)FPtr)()); 95 rv.IntVal = APInt(BitWidth, ((char (*)())(intptr_t)FPtr)()); 97 rv.IntVal = APInt(BitWidth, ((short (*)())(intptr_t)FPtr)()); 99 rv.IntVal = APInt(BitWidth, ((int (*)())(intptr_t)FPtr)()); 101 rv.IntVal = APInt(BitWidth, ((int64_t (*)())(intptr_t)FPtr)()); 107 rv.IntVal = APInt(32, ((int (*)())(intptr_t)FPtr)());
|
/freebsd-11.0-release/contrib/llvm/include/llvm/ExecutionEngine/ |
H A D | GenericValue.h | 18 #include "llvm/ADT/APInt.h" 24 class APInt; 38 APInt IntVal; // also used for long doubles.
|
/freebsd-11.0-release/contrib/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineSimplifyDemanded.cpp | 30 APInt Demanded) { 57 APInt KnownZero(BitWidth, 0), KnownOne(BitWidth, 0); 58 APInt DemandedMask(APInt::getAllOnesValue(BitWidth)); 71 bool InstCombiner::SimplifyDemandedBits(Use &U, APInt DemandedMask, 72 APInt &KnownZero, APInt &KnownOne, 104 Value *InstCombiner::SimplifyDemandedUseBits(Value *V, APInt DemandedMask, 105 APInt &KnownZero, APInt [all...] |
/freebsd-11.0-release/contrib/llvm/tools/lldb/include/lldb/Core/ |
H A D | Scalar.h | 14 #include "llvm/ADT/APInt.h" 51 Scalar(int v) : m_type(e_sint), m_float((float)0) { m_integer = llvm::APInt(sizeof(int) * 8, v, true);} 52 Scalar(unsigned int v) : m_type(e_uint), m_float((float)0) { m_integer = llvm::APInt(sizeof(int) * 8, v);} 53 Scalar(long v) : m_type(e_slong), m_float((float)0) { m_integer = llvm::APInt(sizeof(long) * 8, v, true);} 54 Scalar(unsigned long v) : m_type(e_ulong), m_float((float)0) { m_integer = llvm::APInt(sizeof(long) * 8, v);} 55 Scalar(long long v) : m_type(e_slonglong), m_float((float)0) { m_integer = llvm::APInt(sizeof(long long) * 8, v, true);} 56 Scalar(unsigned long long v): m_type(e_ulonglong), m_float((float)0) { m_integer = llvm::APInt(sizeof(long long) * 8, v);} 63 m_float = llvm::APFloat(llvm::APFloat::IEEEquad, llvm::APInt(BITWIDTH_INT128, NUM_OF_WORDS_INT128, ((type128 *)&v)->x)); 65 m_float = llvm::APFloat(llvm::APFloat::x87DoubleExtended, llvm::APInt(BITWIDTH_INT128, NUM_OF_WORDS_INT128, ((type128 *)&v)->x)); 67 Scalar(llvm::APInt [all...] |
H A D | RegisterValue.h | 18 #include "llvm/ADT/APInt.h" 85 RegisterValue (llvm::APInt inst) : 88 m_scalar = llvm::APInt(inst); 187 llvm::APInt 188 GetAsUInt128(const llvm::APInt& fail_value, bool *success_ptr = nullptr) const; 246 operator = (llvm::APInt uint) 249 m_scalar = llvm::APInt(uint); 302 SetUInt128 (llvm::APInt uint)
|
/freebsd-11.0-release/contrib/llvm/lib/Target/SystemZ/ |
H A D | SystemZTargetTransformInfo.h | 45 int getIntImmCost(const APInt &Imm, Type *Ty); 47 int getIntImmCost(unsigned Opcode, unsigned Idx, const APInt &Imm, Type *Ty); 48 int getIntImmCost(Intrinsic::ID IID, unsigned Idx, const APInt &Imm,
|
/freebsd-11.0-release/contrib/llvm/tools/lldb/source/Core/ |
H A D | Scalar.cpp | 174 static llvm::APInt ldbl_val = m_float.bitcastToAPInt(); 207 static llvm::APInt ldbl_val = m_float.bitcastToAPInt(); 239 static llvm::APInt ldbl_val = m_float.bitcastToAPInt(); 275 llvm::APInt ldbl_val = m_float.bitcastToAPInt(); 306 llvm::APInt zero_int = llvm::APInt::getNullValue(m_integer.getBitWidth() / 8); 319 return llvm::APInt::isSameValue(zero_int, m_integer); 356 llvm::APInt ldbl_val = m_float.bitcastToAPInt(); 394 m_integer = llvm::APInt(rhs.m_integer); 404 m_integer = llvm::APInt(sizeo [all...] |
/freebsd-11.0-release/contrib/llvm/lib/Target/AArch64/ |
H A D | AArch64TargetTransformInfo.h | 67 int getIntImmCost(const APInt &Imm, Type *Ty); 68 int getIntImmCost(unsigned Opcode, unsigned Idx, const APInt &Imm, Type *Ty); 69 int getIntImmCost(Intrinsic::ID IID, unsigned Idx, const APInt &Imm,
|
/freebsd-11.0-release/contrib/llvm/lib/Target/X86/ |
H A D | X86TargetTransformInfo.h | 87 int getIntImmCost(const APInt &Imm, Type *Ty); 89 int getIntImmCost(unsigned Opcode, unsigned Idx, const APInt &Imm, Type *Ty); 90 int getIntImmCost(Intrinsic::ID IID, unsigned Idx, const APInt &Imm,
|
/freebsd-11.0-release/contrib/llvm/lib/Target/PowerPC/ |
H A D | PPCTargetTransformInfo.h | 55 int getIntImmCost(const APInt &Imm, Type *Ty); 57 int getIntImmCost(unsigned Opcode, unsigned Idx, const APInt &Imm, Type *Ty); 58 int getIntImmCost(Intrinsic::ID IID, unsigned Idx, const APInt &Imm,
|