/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/ADT/ |
D | TinyPtrVector.h | 38 PtrUnion Val; 44 if (VecTy *V = Val.template dyn_cast<VecTy*>()) in ~TinyPtrVector() 48 TinyPtrVector(const TinyPtrVector &RHS) : Val(RHS.Val) { in TinyPtrVector() 49 if (VecTy *V = Val.template dyn_cast<VecTy*>()) in TinyPtrVector() 50 Val = new VecTy(*V); in TinyPtrVector() 63 if (Val.template is<EltTy>()) { 65 Val = RHS.front(); 67 Val = new VecTy(*RHS.Val.template get<VecTy*>()); 72 if (RHS.Val.template is<EltTy>()) { 73 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 short &Val) { return Val * 37U; } 85 static unsigned getHashValue(const unsigned& Val) { return Val * 37U; } 97 static unsigned getHashValue(const unsigned long& Val) { [all …]
|
D | PointerUnion.h | 93 ValTy Val; 106 : Val(const_cast<void *>( 109 : Val(const_cast<void *>(PointerLikeTypeTraits<PT2>::getAsVoidPointer(V)), 117 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() && 162 reinterpret_cast<const PT1 *>(Val.getAddrOfPointer())); 167 Val.initWithPointer(nullptr); 174 Val.initWithPointer( [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/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Support/ |
D | Casting.h | 38 static SimpleType &getSimplifiedValue(From &Val) { return Val; } in getSimplifiedValue() 48 static RetType getSimplifiedValue(const From& Val) { 49 return simplify_type<From>::getSimplifiedValue(const_cast<From&>(Val)); 58 static inline bool doit(const From &Val) { 59 return To::classof(&Val); 71 static inline bool doit(const From &Val) { 72 return isa_impl<To, From>::doit(Val); 77 static inline bool doit(const From &Val) { 78 return isa_impl<To, From>::doit(Val); 84 static inline bool doit(const std::unique_ptr<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/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/include/llvm/ADT/ |
D | TinyPtrVector.h | 28 llvm::PointerUnion<EltTy, VecTy*> Val; variable 31 TinyPtrVector(const TinyPtrVector &RHS) : Val(RHS.Val) { in TinyPtrVector() 32 if (VecTy *V = Val.template dyn_cast<VecTy*>()) in TinyPtrVector() 33 Val = new VecTy(*V); in TinyPtrVector() 36 if (VecTy *V = Val.template dyn_cast<VecTy*>()) in ~TinyPtrVector() 43 if (Val.isNull()) return true; in empty() 44 if (VecTy *Vec = Val.template dyn_cast<VecTy*>()) in empty() 52 if (Val.template is<EltTy>()) in size() 54 return Val.template get<VecTy*>()->size(); in size() 62 if (Val.template is<EltTy>()) in begin() [all …]
|
D | PointerUnion.h | 84 ValTy Val; 99 Val.setPointer( 101 Val.setInt(0); 104 Val.setPointer( 106 Val.setInt(1); 114 return !PointerLikeTypeTraits<PT1>::getFromVoidPointer(Val.getPointer()); 126 return static_cast<int>(Val.getInt()) == TyNo; 134 return PointerLikeTypeTraits<T>::getFromVoidPointer(Val.getPointer()); 150 assert(get<PT1>() == Val.getPointer() && 153 = reinterpret_cast<PT1 const *>(Val.getAddrOfPointer()); [all …]
|
D | DenseMapInfo.h | 34 intptr_t Val = -1; 35 Val <<= PointerLikeTypeTraits<T*>::NumLowBitsAvailable; 36 return reinterpret_cast<T*>(Val); 39 intptr_t Val = -2; 40 Val <<= PointerLikeTypeTraits<T*>::NumLowBitsAvailable; 41 return reinterpret_cast<T*>(Val); 54 static unsigned getHashValue(const char& Val) { return Val * 37U; } 64 static unsigned getHashValue(const unsigned& Val) { return Val * 37U; } 74 static unsigned getHashValue(const unsigned long& Val) { 75 return (unsigned)(Val * 37UL); [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/llvm-7.0/llvm/lib/Target/AMDGPU/Disassembler/ |
D | AMDGPUDisassembler.cpp | 396 unsigned Val) const { in createRegOperand() 398 if (Val >= RegCl.getNumRegs()) in createRegOperand() 399 return errOperand(Val, Twine(getRegClassName(RegClassID)) + in createRegOperand() 400 ": unknown register " + Twine(Val)); in createRegOperand() 401 return createRegOperand(RegCl.getRegister(Val)); in createRegOperand() 406 unsigned Val) const { in createSRegOperand() 436 if (Val % (1 << shift)) { in createSRegOperand() 438 << ": scalar reg isn't aligned " << Val; in createSRegOperand() 441 return createRegOperand(SRegClassID, Val >> shift); in createSRegOperand() 444 MCOperand AMDGPUDisassembler::decodeOperand_VS_32(unsigned Val) const { in decodeOperand_VS_32() [all …]
|
D | AMDGPUDisassembler.h | 63 MCOperand createRegOperand(unsigned RegClassID, unsigned Val) const; 64 MCOperand createSRegOperand(unsigned SRegClassID, unsigned Val) const; 74 MCOperand decodeOperand_VGPR_32(unsigned Val) const; 75 MCOperand decodeOperand_VS_32(unsigned Val) const; 76 MCOperand decodeOperand_VS_64(unsigned Val) const; 77 MCOperand decodeOperand_VS_128(unsigned Val) const; 78 MCOperand decodeOperand_VSrc16(unsigned Val) const; 79 MCOperand decodeOperand_VSrcV216(unsigned Val) const; 81 MCOperand decodeOperand_VReg_64(unsigned Val) const; 82 MCOperand decodeOperand_VReg_96(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/clang/lib/Lex/ |
D | PPExpressions.cpp | 38 llvm::APSInt Val; member in __anon8cafcec00111::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/swiftshader/third_party/LLVM/include/llvm/Support/ |
D | Casting.h | 34 static SimpleType &getSimplifiedValue(From &Val) { return Val; } in getSimplifiedValue() 39 static SimpleType &getSimplifiedValue(const From &Val) { 40 return simplify_type<From>::getSimplifiedValue(static_cast<From&>(Val)); 49 static inline bool doit(const From &Val) { 50 return To::classof(&Val); 55 static inline bool doit(const From &Val) { 56 return isa_impl<To, From>::doit(Val); 61 static inline bool doit(const From &Val) { 62 return isa_impl<To, From>::doit(Val); 67 static inline bool doit(const From *Val) { [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 | 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 …]
|
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 …]
|
/external/llvm/lib/Support/ |
D | YAMLTraits.cpp | 752 void ScalarTraits<bool>::output(const bool &Val, void *, raw_ostream &Out) { in output() argument 753 Out << (Val ? "true" : "false"); in output() 756 StringRef ScalarTraits<bool>::input(StringRef Scalar, void *, bool &Val) { in input() argument 758 Val = true; in input() 761 Val = false; in input() 767 void ScalarTraits<StringRef>::output(const StringRef &Val, void *, in output() argument 769 Out << Val; in output() 773 StringRef &Val) { in input() argument 774 Val = Scalar; in input() 778 void ScalarTraits<std::string>::output(const std::string &Val, void *, in output() argument [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Support/ |
D | YAMLTraits.cpp | 779 void ScalarTraits<bool>::output(const bool &Val, void *, raw_ostream &Out) { in output() argument 780 Out << (Val ? "true" : "false"); in output() 783 StringRef ScalarTraits<bool>::input(StringRef Scalar, void *, bool &Val) { in input() argument 785 Val = true; in input() 788 Val = false; in input() 794 void ScalarTraits<StringRef>::output(const StringRef &Val, void *, in output() argument 796 Out << Val; in output() 800 StringRef &Val) { in input() argument 801 Val = Scalar; in input() 805 void ScalarTraits<std::string>::output(const std::string &Val, void *, in output() argument [all …]
|
/external/llvm/lib/MC/ |
D | MCSymbolELF.cpp | 45 unsigned Val; in setBinding() local 50 Val = 0; in setBinding() 53 Val = 1; in setBinding() 56 Val = 2; in setBinding() 59 Val = 3; in setBinding() 63 setFlags(OtherFlags | (Val << ELF_STB_Shift)); in setBinding() 68 uint32_t Val = (getFlags() & (0x3 << ELF_STB_Shift)) >> ELF_STB_Shift; in getBinding() local 69 switch (Val) { in getBinding() 95 unsigned Val; in setType() local 100 Val = 0; in setType() [all …]
|