Home
last modified time | relevance | path

Searched refs:Val (Results 1 – 25 of 944) sorted by relevance

12345678910>>...38

/external/llvm/include/llvm/ADT/
DTinyPtrVector.h33 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 …]
DDenseMapInfo.h34 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 …]
DPointerUnion.h89 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/include/llvm/Support/
DCasting.h36 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 …]
DEndianStream.h34 template <typename value_type> void write(value_type Val) { in write()
35 Val = byte_swap<value_type, endian>(Val); in write()
36 OS.write((const char *)&Val, sizeof(value_type)); in write()
42 inline void Writer<little>::write<float>(float Val) {
43 write(FloatToBits(Val));
48 inline void Writer<little>::write<double>(double Val) {
49 write(DoubleToBits(Val));
54 inline void Writer<big>::write<float>(float Val) {
55 write(FloatToBits(Val));
60 inline void Writer<big>::write<double>(double Val) {
[all …]
DMathExtras.h46 static std::size_t count(T Val, ZeroBehavior) { in count()
47 if (!Val) in count()
49 if (Val & 0x1) in count()
57 if ((Val & Mask) == 0) { in count()
58 Val >>= Shift; in count()
70 static std::size_t count(T Val, ZeroBehavior ZB) {
71 if (ZB != ZB_Undefined && Val == 0)
75 return __builtin_ctz(Val);
78 _BitScanForward(&Index, Val);
86 static std::size_t count(T Val, ZeroBehavior ZB) {
[all …]
/external/swiftshader/third_party/llvm-subzero/include/llvm/Support/
DCasting.h36 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/
DTinyPtrVector.h28 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 …]
DPointerUnion.h84 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 …]
DDenseMapInfo.h34 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/
DAMDGPUDisassembler.cpp185 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 …]
DAMDGPUDisassembler.h47 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/
Dtest_cast_main.cpp97 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/swiftshader/third_party/LLVM/include/llvm/Support/
DCasting.h34 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/clang/lib/Lex/
DPPExpressions.cpp38 llvm::APSInt Val; member in __anonca4c15760111::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/
Dubsan_value.cc30 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/
DDenseMapInfo.h37 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 …]
DPointerUnion.h93 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/lib/MC/
DMCSymbolELF.cpp45 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/llvm/lib/Support/
DYAMLTraits.cpp752 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/include/llvm/
DValue.h323 if (Val) removeFromList(); in set()
324 Val = V; in set()
333 static inline bool doit(const Value &Val) {
334 return Val.getValueID() >= Value::ConstantFirstVal &&
335 Val.getValueID() <= Value::ConstantLastVal;
340 static inline bool doit (const Value &Val) {
341 return Val.getValueID() == Value::ArgumentVal;
346 static inline bool doit(const Value &Val) {
347 return Val.getValueID() == Value::InlineAsmVal;
352 static inline bool doit(const Value &Val) {
[all …]
/external/curl/include/curl/
Dcurlrules.h208 # define CURL_OFF_T_C(Val) __CURL_OFF_T_C_HLPR1(Val) ## \ argument
210 # define CURL_OFF_TU_C(Val) __CURL_OFF_T_C_HLPR1(Val) ## \ argument
214 # define __CURL_OFF_T_C_HLPR2(Val,Suffix) Val ## Suffix argument
216 # define __CURL_OFF_T_C_HLPR2(Val,Suffix) Val/**/Suffix argument
218 # define __CURL_OFF_T_C_HLPR1(Val,Suffix) __CURL_OFF_T_C_HLPR2(Val,Suffix) argument
219 # define CURL_OFF_T_C(Val) __CURL_OFF_T_C_HLPR1(Val,CURL_SUFFIX_CURL_OFF_T) argument
220 # define CURL_OFF_TU_C(Val) __CURL_OFF_T_C_HLPR1(Val,CURL_SUFFIX_CURL_OFF_TU) argument
/external/llvm/lib/Target/PowerPC/MCTargetDesc/
DPPCMCTargetDesc.h60 static inline bool isRunOfOnes(unsigned Val, unsigned &MB, unsigned &ME) { in isRunOfOnes() argument
61 if (!Val) in isRunOfOnes()
64 if (isShiftedMask_32(Val)) { in isRunOfOnes()
66 MB = countLeadingZeros(Val); in isRunOfOnes()
68 ME = countLeadingZeros((Val - 1) ^ Val); in isRunOfOnes()
71 Val = ~Val; // invert mask in isRunOfOnes()
72 if (isShiftedMask_32(Val)) { in isRunOfOnes()
74 ME = countLeadingZeros(Val) - 1; in isRunOfOnes()
76 MB = countLeadingZeros((Val - 1) ^ Val) + 1; in isRunOfOnes()
/external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/
DLowerAtomic.cpp27 Value *Val = CXI->getNewValOperand(); in LowerAtomicCmpXchgInst() local
31 Value *Res = Builder.CreateSelect(Equal, Val, Orig); in LowerAtomicCmpXchgInst()
42 Value *Val = RMWI->getValOperand(); in LowerAtomicRMWInst() local
50 Res = Val; in LowerAtomicRMWInst()
53 Res = Builder.CreateAdd(Orig, Val); in LowerAtomicRMWInst()
56 Res = Builder.CreateSub(Orig, Val); in LowerAtomicRMWInst()
59 Res = Builder.CreateAnd(Orig, Val); in LowerAtomicRMWInst()
62 Res = Builder.CreateNot(Builder.CreateAnd(Orig, Val)); in LowerAtomicRMWInst()
65 Res = Builder.CreateOr(Orig, Val); in LowerAtomicRMWInst()
68 Res = Builder.CreateXor(Orig, Val); in LowerAtomicRMWInst()
[all …]
/external/swiftshader/third_party/LLVM/lib/Analysis/
DLazyValueInfo.cpp76 Constant *Val; member in __anond3f06b990111::LVILatticeVal
80 LVILatticeVal() : Tag(undefined), Val(0), Range(1, true) {} in LVILatticeVal()
108 return Val; in getConstant()
113 return Val; in getNotConstant()
142 Val = V; in markConstant()
160 Val = V; in markNotConstant()
192 Val = RHS.Val; in mergeIn()
199 if (Val == RHS.Val) in mergeIn()
205 if (Val == RHS.Val) in mergeIn()
231 if (Val == RHS.Val) in mergeIn()
[all …]

12345678910>>...38