/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/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-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/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-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/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/clang/lib/Lex/ |
D | PPExpressions.cpp | 38 llvm::APSInt Val; member in __anonc43d75fc0111::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/cronet/buildtools/third_party/libc++/trunk/test/support/ |
D | test_container_comparisons.h | 85 template <template <typename...> typename Container, typename Key, typename Val, typename Order> 89 Container<Key, Val> l1; in test_ordered_map_container_spaceship_with_type() 90 Container<Key, Val> l2; in test_ordered_map_container_spaceship_with_type() 95 Container<Key, Val> l1{{1, 1}, {2, 1}}; in test_ordered_map_container_spaceship_with_type() 96 Container<Key, Val> l2{{1, 1}, {2, 1}}; in test_ordered_map_container_spaceship_with_type() 101 Container<Key, Val> l1{{1, 1}, {2, 1}}; in test_ordered_map_container_spaceship_with_type() 102 Container<Key, Val> l2{{1, 1}, {2, 2}}; in test_ordered_map_container_spaceship_with_type() 107 Container<Key, Val> l1{{1, 1}, {2, 3}}; in test_ordered_map_container_spaceship_with_type() 108 Container<Key, Val> l2{{1, 1}, {2, 2}}; in test_ordered_map_container_spaceship_with_type() 113 Container<Key, Val> l1{{1, 1}}; in test_ordered_map_container_spaceship_with_type() [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/capstone/arch/TMS320C64x/ |
D | TMS320C64xDisassembler.c | 28 static DecodeStatus DecodeScst5(MCInst *Inst, unsigned Val, 31 static DecodeStatus DecodeScst16(MCInst *Inst, unsigned Val, 34 static DecodeStatus DecodePCRelScst7(MCInst *Inst, unsigned Val, 37 static DecodeStatus DecodePCRelScst10(MCInst *Inst, unsigned Val, 40 static DecodeStatus DecodePCRelScst12(MCInst *Inst, unsigned Val, 43 static DecodeStatus DecodePCRelScst21(MCInst *Inst, unsigned Val, 46 static DecodeStatus DecodeMemOperand(MCInst *Inst, unsigned Val, 49 static DecodeStatus DecodeMemOperandSc(MCInst *Inst, unsigned Val, 52 static DecodeStatus DecodeMemOperand2(MCInst *Inst, unsigned Val, 61 static DecodeStatus DecodeCondRegister(MCInst *Inst, unsigned Val, [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/MC/ |
D | MCSymbolELF.cpp | 43 unsigned Val; in setBinding() local 48 Val = 0; in setBinding() 51 Val = 1; in setBinding() 54 Val = 2; in setBinding() 57 Val = 3; in setBinding() 61 setFlags(OtherFlags | (Val << ELF_STB_Shift)); in setBinding() 66 uint32_t Val = (Flags >> ELF_STB_Shift) & 3; in getBinding() local 67 switch (Val) { in getBinding() 93 unsigned Val; in setType() local 98 Val = 0; in setType() [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/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 …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/ |
D | LowerAtomic.cpp | 28 Value *Val = CXI->getNewValOperand(); in LowerAtomicCmpXchgInst() local 30 LoadInst *Orig = Builder.CreateLoad(Val->getType(), Ptr); in LowerAtomicCmpXchgInst() 32 Value *Res = Builder.CreateSelect(Equal, Val, Orig); in LowerAtomicCmpXchgInst() 46 Value *Val = RMWI->getValOperand(); in LowerAtomicRMWInst() local 48 LoadInst *Orig = Builder.CreateLoad(Val->getType(), Ptr); in LowerAtomicRMWInst() 54 Res = Val; in LowerAtomicRMWInst() 57 Res = Builder.CreateAdd(Orig, Val); in LowerAtomicRMWInst() 60 Res = Builder.CreateSub(Orig, Val); in LowerAtomicRMWInst() 63 Res = Builder.CreateAnd(Orig, Val); in LowerAtomicRMWInst() 66 Res = Builder.CreateNot(Builder.CreateAnd(Orig, Val)); in LowerAtomicRMWInst() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Support/ |
D | YAMLTraits.cpp | 852 void ScalarTraits<bool>::output(const bool &Val, void *, raw_ostream &Out) { in output() argument 853 Out << (Val ? "true" : "false"); in output() 856 StringRef ScalarTraits<bool>::input(StringRef Scalar, void *, bool &Val) { in input() argument 858 Val = true; in input() 861 Val = false; in input() 867 void ScalarTraits<StringRef>::output(const StringRef &Val, void *, in output() argument 869 Out << Val; in output() 873 StringRef &Val) { in input() argument 874 Val = Scalar; in input() 878 void ScalarTraits<std::string>::output(const std::string &Val, void *, in output() argument [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/PowerPC/MCTargetDesc/ |
D | PPCMCTargetDesc.h | 61 static inline bool isRunOfOnes(unsigned Val, unsigned &MB, unsigned &ME) { in isRunOfOnes() argument 62 if (!Val) in isRunOfOnes() 65 if (isShiftedMask_32(Val)) { in isRunOfOnes() 67 MB = countLeadingZeros(Val); in isRunOfOnes() 69 ME = countLeadingZeros((Val - 1) ^ Val); in isRunOfOnes() 72 Val = ~Val; // invert mask in isRunOfOnes() 73 if (isShiftedMask_32(Val)) { in isRunOfOnes() 75 ME = countLeadingZeros(Val) - 1; in isRunOfOnes() 77 MB = countLeadingZeros((Val - 1) ^ Val) + 1; in isRunOfOnes() 85 static inline bool isRunOfOnes64(uint64_t Val, unsigned &MB, unsigned &ME) { in isRunOfOnes64() argument [all …]
|