/external/llvm-project/llvm/include/llvm/ADT/ |
D | TinyPtrVector.h | 41 PtrUnion Val; 47 if (VecTy *V = Val.template dyn_cast<VecTy*>()) in ~TinyPtrVector() 51 TinyPtrVector(const TinyPtrVector &RHS) : Val(RHS.Val) { in TinyPtrVector() 52 if (VecTy *V = Val.template dyn_cast<VecTy*>()) in TinyPtrVector() 53 Val = new VecTy(*V); in TinyPtrVector() 66 if (Val.template is<EltTy>()) { 68 Val = RHS.front(); 70 Val = new VecTy(*RHS.Val.template get<VecTy*>()); 75 if (RHS.Val.template is<EltTy>()) { 76 Val.template get<VecTy*>()->clear(); [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ADT/ |
D | TinyPtrVector.h | 41 PtrUnion Val; 47 if (VecTy *V = Val.template dyn_cast<VecTy*>()) in ~TinyPtrVector() 51 TinyPtrVector(const TinyPtrVector &RHS) : Val(RHS.Val) { in TinyPtrVector() 52 if (VecTy *V = Val.template dyn_cast<VecTy*>()) in TinyPtrVector() 53 Val = new VecTy(*V); in TinyPtrVector() 66 if (Val.template is<EltTy>()) { 68 Val = RHS.front(); 70 Val = new VecTy(*RHS.Val.template get<VecTy*>()); 75 if (RHS.Val.template is<EltTy>()) { 76 Val.template get<VecTy*>()->clear(); [all …]
|
D | DenseMapInfo.h | 40 uintptr_t Val = static_cast<uintptr_t>(-1); 41 Val <<= PointerLikeTypeTraits<T*>::NumLowBitsAvailable; 42 return reinterpret_cast<T*>(Val); 46 uintptr_t Val = static_cast<uintptr_t>(-2); 47 Val <<= PointerLikeTypeTraits<T*>::NumLowBitsAvailable; 48 return reinterpret_cast<T*>(Val); 63 static unsigned getHashValue(const char& Val) { return Val * 37U; } 74 static unsigned getHashValue(const unsigned char &Val) { return Val * 37U; } 85 static unsigned getHashValue(const unsigned short &Val) { return Val * 37U; } 96 static unsigned getHashValue(const unsigned& Val) { return Val * 37U; } [all …]
|
/external/llvm-project/llvm/unittests/ADT/ |
D | APFixedPointTest.cpp | 615 APFixedPoint Val = APFixedPoint(1ULL << 7, getSAccumSema()); in TEST() local 616 ASSERT_EQ(Val.convert(getLFractSema()).getValue(), -(1ULL << 31)); in TEST() 618 Val = APFixedPoint(1ULL << 23, getAccumSema()); in TEST() 619 ASSERT_EQ(Val.convert(getSAccumSema()).getValue(), -(1ULL << 15)); in TEST() 621 Val = APFixedPoint(1ULL << 47, getLAccumSema()); in TEST() 622 ASSERT_EQ(Val.convert(getAccumSema()).getValue(), -(1ULL << 31)); in TEST() 625 Val = APFixedPoint(/*-1.5*/ -192, getSAccumSema()); in TEST() 626 ASSERT_EQ(Val.convert(getLFractSema()).getValue(), 1ULL << 30); in TEST() 628 Val = APFixedPoint(-(257 << 15), getAccumSema()); in TEST() 629 ASSERT_EQ(Val.convert(getSAccumSema()).getValue(), 255 << 7); in TEST() [all …]
|
/external/llvm/include/llvm/ADT/ |
D | TinyPtrVector.h | 33 PtrUnion Val; 38 if (VecTy *V = Val.template dyn_cast<VecTy*>()) in ~TinyPtrVector() 42 TinyPtrVector(const TinyPtrVector &RHS) : Val(RHS.Val) { in TinyPtrVector() 43 if (VecTy *V = Val.template dyn_cast<VecTy*>()) in TinyPtrVector() 44 Val = new VecTy(*V); in TinyPtrVector() 56 if (Val.template is<EltTy>()) { 58 Val = RHS.front(); 60 Val = new VecTy(*RHS.Val.template get<VecTy*>()); 65 if (RHS.Val.template is<EltTy>()) { 66 Val.template get<VecTy*>()->clear(); [all …]
|
D | DenseMapInfo.h | 34 CachedHash(T Val) : Val(std::move(Val)) { in CachedHash() 35 Hash = DenseMapInfo<T>::getHashValue(Val); in CachedHash() 37 CachedHash(T Val, unsigned Hash) : Val(std::move(Val)), Hash(Hash) {} in CachedHash() 38 T Val; member 52 static unsigned getHashValue(CachedHash<T> Val) { 53 assert(!isEqual(Val, getEmptyKey()) && "Cannot hash the empty key!"); 54 assert(!isEqual(Val, getTombstoneKey()) && 56 return Val.Hash; 59 return DenseMapInfo<T>::isEqual(A.Val, B.Val); 67 uintptr_t Val = static_cast<uintptr_t>(-1); [all …]
|
D | PointerUnion.h | 89 ValTy Val; 103 : Val(const_cast<void *>( 106 : Val(const_cast<void *>(PointerLikeTypeTraits<PT2>::getAsVoidPointer(V)), 114 return !PointerLikeTypeTraits<PT1>::getFromVoidPointer(Val.getPointer()); 125 return static_cast<int>(Val.getInt()) == TyNo; 133 return PointerLikeTypeTraits<T>::getFromVoidPointer(Val.getPointer()); 155 get<PT1>() == Val.getPointer() && 157 return (PT1 *)Val.getAddrOfPointer(); 162 Val.initWithPointer(nullptr); 169 Val.initWithPointer( [all …]
|
/external/llvm-project/llvm/include/llvm/Support/ |
D | Casting.h | 37 static SimpleType &getSimplifiedValue(From &Val) { return Val; } in getSimplifiedValue() 47 static RetType getSimplifiedValue(const From& Val) { 48 return simplify_type<From>::getSimplifiedValue(const_cast<From&>(Val)); 57 static inline bool doit(const From &Val) { 58 return To::classof(&Val); 69 static inline bool doit(const From &Val) { 70 return isa_impl<To, From>::doit(Val); 75 static inline bool doit(const From &Val) { 76 return isa_impl<To, From>::doit(Val); 82 static inline bool doit(const std::unique_ptr<From> &Val) { [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/ |
D | Casting.h | 37 static SimpleType &getSimplifiedValue(From &Val) { return Val; } in getSimplifiedValue() 47 static RetType getSimplifiedValue(const From& Val) { 48 return simplify_type<From>::getSimplifiedValue(const_cast<From&>(Val)); 57 static inline bool doit(const From &Val) { 58 return To::classof(&Val); 70 static inline bool doit(const From &Val) { 71 return isa_impl<To, From>::doit(Val); 76 static inline bool doit(const From &Val) { 77 return isa_impl<To, From>::doit(Val); 83 static inline bool doit(const std::unique_ptr<From> &Val) { [all …]
|
/external/llvm/include/llvm/Support/ |
D | Casting.h | 36 static SimpleType &getSimplifiedValue(From &Val) { return Val; } in getSimplifiedValue() 45 static RetType getSimplifiedValue(const From& Val) { 46 return simplify_type<From>::getSimplifiedValue(const_cast<From&>(Val)); 55 static inline bool doit(const From &Val) { 56 return To::classof(&Val); 68 static inline bool doit(const From &Val) { 69 return isa_impl<To, From>::doit(Val); 74 static inline bool doit(const From &Val) { 75 return isa_impl<To, From>::doit(Val); 80 static inline bool doit(const From *Val) { [all …]
|
/external/swiftshader/third_party/llvm-subzero/include/llvm/Support/ |
D | Casting.h | 36 static SimpleType &getSimplifiedValue(From &Val) { return Val; } in getSimplifiedValue() 45 static RetType getSimplifiedValue(const From& Val) { 46 return simplify_type<From>::getSimplifiedValue(const_cast<From&>(Val)); 55 static inline bool doit(const From &Val) { 56 return To::classof(&Val); 68 static inline bool doit(const From &Val) { 69 return isa_impl<To, From>::doit(Val); 74 static inline bool doit(const From &Val) { 75 return isa_impl<To, From>::doit(Val); 80 static inline bool doit(const From *Val) { [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/Disassembler/ |
D | AMDGPUDisassembler.h | 61 MCOperand createRegOperand(unsigned RegClassID, unsigned Val) const; 62 MCOperand createSRegOperand(unsigned SRegClassID, unsigned Val) const; 73 MCOperand decodeOperand_VGPR_32(unsigned Val) const; 74 MCOperand decodeOperand_VRegOrLds_32(unsigned Val) const; 76 MCOperand decodeOperand_VS_32(unsigned Val) const; 77 MCOperand decodeOperand_VS_64(unsigned Val) const; 78 MCOperand decodeOperand_VS_128(unsigned Val) const; 79 MCOperand decodeOperand_VSrc16(unsigned Val) const; 80 MCOperand decodeOperand_VSrcV216(unsigned Val) const; 82 MCOperand decodeOperand_VReg_64(unsigned Val) const; [all …]
|
D | AMDGPUDisassembler.cpp | 104 static DecodeStatus decodeBoolReg(MCInst &Inst, unsigned Val, in decodeBoolReg() argument 107 return addOperand(Inst, DAsm->decodeBoolReg(Val)); in decodeBoolReg() 615 unsigned Val) const { in createRegOperand() 617 if (Val >= RegCl.getNumRegs()) in createRegOperand() 618 return errOperand(Val, Twine(getRegClassName(RegClassID)) + in createRegOperand() 619 ": unknown register " + Twine(Val)); in createRegOperand() 620 return createRegOperand(RegCl.getRegister(Val)); in createRegOperand() 625 unsigned Val) const { in createSRegOperand() 655 if (Val % (1 << shift)) { in createSRegOperand() 657 << ": scalar reg isn't aligned " << Val; in createSRegOperand() [all …]
|
/external/llvm-project/llvm/lib/Target/AMDGPU/Disassembler/ |
D | AMDGPUDisassembler.h | 62 MCOperand createRegOperand(unsigned RegClassID, unsigned Val) const; 63 MCOperand createSRegOperand(unsigned SRegClassID, unsigned Val) const; 101 MCOperand decodeOperand_VGPR_32(unsigned Val) const; 102 MCOperand decodeOperand_VRegOrLds_32(unsigned Val) const; 104 MCOperand decodeOperand_VS_32(unsigned Val) const; 105 MCOperand decodeOperand_VS_64(unsigned Val) const; 106 MCOperand decodeOperand_VS_128(unsigned Val) const; 107 MCOperand decodeOperand_VSrc16(unsigned Val) const; 108 MCOperand decodeOperand_VSrcV216(unsigned Val) const; 110 MCOperand decodeOperand_VReg_64(unsigned Val) const; [all …]
|
D | AMDGPUDisassembler.cpp | 117 static DecodeStatus decodeBoolReg(MCInst &Inst, unsigned Val, in decodeBoolReg() argument 120 return addOperand(Inst, DAsm->decodeBoolReg(Val)); in decodeBoolReg() 657 unsigned Val) const { in createRegOperand() 659 if (Val >= RegCl.getNumRegs()) in createRegOperand() 660 return errOperand(Val, Twine(getRegClassName(RegClassID)) + in createRegOperand() 661 ": unknown register " + Twine(Val)); in createRegOperand() 662 return createRegOperand(RegCl.getRegister(Val)); in createRegOperand() 667 unsigned Val) const { in createSRegOperand() 697 if (Val % (1 << shift)) { in createSRegOperand() 699 << ": scalar reg isn't aligned " << Val; in createSRegOperand() [all …]
|
/external/llvm/lib/Target/AMDGPU/Disassembler/ |
D | AMDGPUDisassembler.cpp | 185 unsigned Val) const { in createRegOperand() 187 if (Val >= RegCl.getNumRegs()) in createRegOperand() 188 return errOperand(Val, Twine(getRegClassName(RegClassID)) + in createRegOperand() 189 ": unknown register " + Twine(Val)); in createRegOperand() 190 return createRegOperand(RegCl.getRegister(Val)); in createRegOperand() 195 unsigned Val) const { in createSRegOperand() 223 if (Val % (1 << shift)) in createSRegOperand() 225 << ": scalar reg isn't aligned " << Val; in createSRegOperand() 226 return createRegOperand(SRegClassID, Val >> shift); in createSRegOperand() 229 MCOperand AMDGPUDisassembler::decodeOperand_VS_32(unsigned Val) const { in decodeOperand_VS_32() [all …]
|
D | AMDGPUDisassembler.h | 47 MCOperand createRegOperand(unsigned RegClassID, unsigned Val) const; 48 MCOperand createSRegOperand(unsigned SRegClassID, unsigned Val) const; 57 MCOperand decodeOperand_VGPR_32(unsigned Val) const; 58 MCOperand decodeOperand_VS_32(unsigned Val) const; 59 MCOperand decodeOperand_VS_64(unsigned Val) const; 61 MCOperand decodeOperand_VReg_64(unsigned Val) const; 62 MCOperand decodeOperand_VReg_96(unsigned Val) const; 63 MCOperand decodeOperand_VReg_128(unsigned Val) const; 65 MCOperand decodeOperand_SReg_32(unsigned Val) const; 66 MCOperand decodeOperand_SReg_32_XM0(unsigned Val) const; [all …]
|
/external/swiftshader/third_party/subzero/crosstest/ |
D | test_cast_main.cpp | 97 void testValue(FromType Val, size_t &TotalTests, size_t &Passes, in testValue() argument 99 COMPARE(cast, FromType, bool, Val, FromTypeString); in testValue() 100 COMPARE(cast, FromType, uint8_t, Val, FromTypeString); in testValue() 101 COMPARE(cast, FromType, myint8_t, Val, FromTypeString); in testValue() 102 COMPARE(cast, FromType, uint16_t, Val, FromTypeString); in testValue() 103 COMPARE(cast, FromType, int16_t, Val, FromTypeString); in testValue() 104 COMPARE(cast, FromType, uint32_t, Val, FromTypeString); in testValue() 105 COMPARE(cast, FromType, int32_t, Val, FromTypeString); in testValue() 106 COMPARE(cast, FromType, uint64, Val, FromTypeString); in testValue() 107 COMPARE(cast, FromType, int64, Val, FromTypeString); in testValue() [all …]
|
/external/llvm-project/clang/lib/Lex/ |
D | PPExpressions.cpp | 50 llvm::APSInt Val; member in __anon8b63794c0111::PPValue 53 PPValue(unsigned BitWidth) : Val(BitWidth) {} in PPValue() 60 unsigned getBitWidth() const { return Val.getBitWidth(); } in getBitWidth() 61 bool isUnsigned() const { return Val.isUnsigned(); } in isUnsigned() 132 Result.Val = !!Macro; in EvaluateDefined() 133 Result.Val.setIsUnsigned(false); // Result is signed intmax_t. in EvaluateDefined() 137 if (Result.Val != 0 && ValueLive) in EvaluateDefined() 274 Result.Val = 0; in EvaluateValue() 275 Result.Val.setIsUnsigned(false); // "0" is signed intmax_t 0. in EvaluateValue() 325 if (Literal.GetIntegerValue(Result.Val)) { in EvaluateValue() [all …]
|
/external/clang/lib/Lex/ |
D | PPExpressions.cpp | 38 llvm::APSInt Val; member in __anon2876a25e0111::PPValue 41 PPValue(unsigned BitWidth) : Val(BitWidth) {} in PPValue() 48 unsigned getBitWidth() const { return Val.getBitWidth(); } in getBitWidth() 49 bool isUnsigned() const { return Val.isUnsigned(); } in isUnsigned() 118 Result.Val = !!Macro; in EvaluateDefined() 119 Result.Val.setIsUnsigned(false); // Result is signed intmax_t. in EvaluateDefined() 122 if (Result.Val != 0 && ValueLive) in EvaluateDefined() 243 Result.Val = II->getTokenID() == tok::kw_true; in EvaluateValue() 244 Result.Val.setIsUnsigned(false); // "0" is signed intmax_t 0. in EvaluateValue() 293 if (Literal.GetIntegerValue(Result.Val)) { in EvaluateValue() [all …]
|
/external/compiler-rt/lib/ubsan/ |
D | ubsan_value.cc | 30 return SIntMax(Val) << ExtraBits >> ExtraBits; in getSIntValue() 33 return *reinterpret_cast<s64*>(Val); in getSIntValue() 36 return *reinterpret_cast<s128*>(Val); in getSIntValue() 47 return Val; in getUIntValue() 49 return *reinterpret_cast<u64*>(Val); in getUIntValue() 52 return *reinterpret_cast<u128*>(Val); in getUIntValue() 63 SIntMax Val = getSIntValue(); in getPositiveIntValue() local 64 CHECK(Val >= 0); in getPositiveIntValue() 65 return Val; in getPositiveIntValue() 80 internal_memcpy(&Value, &Val, 4); in getFloatValue() [all …]
|
/external/swiftshader/third_party/llvm-subzero/include/llvm/ADT/ |
D | DenseMapInfo.h | 37 uintptr_t Val = static_cast<uintptr_t>(-1); 38 Val <<= PointerLikeTypeTraits<T*>::NumLowBitsAvailable; 39 return reinterpret_cast<T*>(Val); 42 uintptr_t Val = static_cast<uintptr_t>(-2); 43 Val <<= PointerLikeTypeTraits<T*>::NumLowBitsAvailable; 44 return reinterpret_cast<T*>(Val); 57 static unsigned getHashValue(const char& Val) { return Val * 37U; } 67 static unsigned getHashValue(const unsigned& Val) { return Val * 37U; } 77 static unsigned getHashValue(const unsigned long& Val) { 78 return (unsigned)(Val * 37UL); [all …]
|
D | PointerUnion.h | 93 ValTy Val; 107 : Val(const_cast<void *>( 110 : Val(const_cast<void *>(PointerLikeTypeTraits<PT2>::getAsVoidPointer(V)), 118 return !PointerLikeTypeTraits<PT1>::getFromVoidPointer(Val.getPointer()); 129 return static_cast<int>(Val.getInt()) == TyNo; 137 return PointerLikeTypeTraits<T>::getFromVoidPointer(Val.getPointer()); 159 get<PT1>() == Val.getPointer() && 161 return (PT1 *)Val.getAddrOfPointer(); 166 Val.initWithPointer(nullptr); 173 Val.initWithPointer( [all …]
|
/external/llvm-project/llvm/lib/Analysis/ |
D | ValueLattice.cpp | 12 raw_ostream &operator<<(raw_ostream &OS, const ValueLatticeElement &Val) { in operator <<() argument 13 if (Val.isUnknown()) in operator <<() 15 if (Val.isUndef()) in operator <<() 17 if (Val.isOverdefined()) in operator <<() 20 if (Val.isNotConstant()) in operator <<() 21 return OS << "notconstant<" << *Val.getNotConstant() << ">"; in operator <<() 23 if (Val.isConstantRangeIncludingUndef()) in operator <<() 25 << Val.getConstantRange(true).getLower() << ", " in operator <<() 26 << Val.getConstantRange(true).getUpper() << ">"; in operator <<() 28 if (Val.isConstantRange()) in operator <<() [all …]
|
/external/llvm-project/compiler-rt/lib/ubsan/ |
D | ubsan_value.cpp | 77 return SIntMax(Val) << ExtraBits >> ExtraBits; in getSIntValue() 80 return *reinterpret_cast<s64*>(Val); in getSIntValue() 83 return *reinterpret_cast<s128*>(Val); in getSIntValue() 94 return Val; in getUIntValue() 96 return *reinterpret_cast<u64*>(Val); in getUIntValue() 99 return *reinterpret_cast<u128*>(Val); in getUIntValue() 110 SIntMax Val = getSIntValue(); in getPositiveIntValue() local 111 CHECK(Val >= 0); in getPositiveIntValue() 112 return Val; in getPositiveIntValue() 127 internal_memcpy(&Value, &Val, 4); in getFloatValue() [all …]
|