Home
last modified time | relevance | path

Searched refs:PtrTraits (Results 1 – 9 of 9) sorted by relevance

/external/llvm/include/llvm/ADT/
DPointerIntPair.h26 template <typename PointerT, unsigned IntBits, typename PtrTraits>
44 typename PtrTraits = PointerLikeTypeTraits<PointerTy>,
45 typename Info = PointerIntPairInfo<PointerTy, IntBits, PtrTraits>>
104 (void)PtrTraits::getFromVoidPointer(V); in getFromOpaqueValue()
124 template <typename PointerT, unsigned IntBits, typename PtrTraits>
126 static_assert(PtrTraits::NumLowBitsAvailable <
129 static_assert(IntBits <= PtrTraits::NumLowBitsAvailable,
134 ~(uintptr_t)(((intptr_t)1 << PtrTraits::NumLowBitsAvailable) - 1),
138 IntShift = (uintptr_t)PtrTraits::NumLowBitsAvailable - IntBits,
148 return PtrTraits::getFromVoidPointer( in getPointer()
[all …]
DSmallPtrSet.h233 typedef PointerLikeTypeTraits<PtrTy> PtrTraits; typedef
249 return PtrTraits::getFromVoidPointer(const_cast<void*>(*Bucket));
295 typedef PointerLikeTypeTraits<PtrType> PtrTraits;
318 auto p = insert_imp(PtrTraits::getAsVoidPointer(Ptr));
325 return erase_imp(PtrTraits::getAsVoidPointer(Ptr));
330 return count_imp(PtrTraits::getAsVoidPointer(Ptr)) ? 1 : 0;
/external/swiftshader/third_party/llvm-subzero/include/llvm/ADT/
DPointerIntPair.h26 template <typename PointerT, unsigned IntBits, typename PtrTraits>
44 typename PtrTraits = PointerLikeTypeTraits<PointerTy>,
45 typename Info = PointerIntPairInfo<PointerTy, IntBits, PtrTraits>>
104 (void)PtrTraits::getFromVoidPointer(V); in getFromOpaqueValue()
124 template <typename PointerT, unsigned IntBits, typename PtrTraits>
126 static_assert(PtrTraits::NumLowBitsAvailable <
129 static_assert(IntBits <= PtrTraits::NumLowBitsAvailable,
134 ~(uintptr_t)(((intptr_t)1 << PtrTraits::NumLowBitsAvailable) - 1),
138 IntShift = (uintptr_t)PtrTraits::NumLowBitsAvailable - IntBits,
148 return PtrTraits::getFromVoidPointer( in getPointer()
[all …]
DSmallPtrSet.h260 typedef PointerLikeTypeTraits<PtrTy> PtrTraits; typedef
276 return PtrTraits::getFromVoidPointer(const_cast<void*>(*Bucket));
336 typedef PointerLikeTypeTraits<PtrType> PtrTraits;
359 auto p = insert_imp(PtrTraits::getAsVoidPointer(Ptr));
366 return erase_imp(PtrTraits::getAsVoidPointer(Ptr));
371 return count_imp(PtrTraits::getAsVoidPointer(Ptr)) ? 1 : 0;
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/ADT/
DPointerIntPair.h25 template <typename PointerT, unsigned IntBits, typename PtrTraits>
42 typename PtrTraits = PointerLikeTypeTraits<PointerTy>,
43 typename Info = PointerIntPairInfo<PointerTy, IntBits, PtrTraits>>
103 (void)PtrTraits::getFromVoidPointer(V); in getFromOpaqueValue()
127 template <typename PointerT, unsigned IntBits, typename PtrTraits>
129 static_assert(PtrTraits::NumLowBitsAvailable <
132 static_assert(IntBits <= PtrTraits::NumLowBitsAvailable,
137 ~(uintptr_t)(((intptr_t)1 << PtrTraits::NumLowBitsAvailable) - 1),
141 IntShift = (uintptr_t)PtrTraits::NumLowBitsAvailable - IntBits,
151 return PtrTraits::getFromVoidPointer( in getPointer()
[all …]
DSmallPtrSet.h269 using PtrTraits = PointerLikeTypeTraits<PtrTy>; variable
288 return PtrTraits::getFromVoidPointer(const_cast<void *>(Bucket[-1]));
291 return PtrTraits::getFromVoidPointer(const_cast<void*>(*Bucket));
346 using PtrTraits = PointerLikeTypeTraits<PtrType>;
372 auto p = insert_imp(PtrTraits::getAsVoidPointer(Ptr));
379 return erase_imp(PtrTraits::getAsVoidPointer(Ptr));
/external/swiftshader/third_party/LLVM/include/llvm/ADT/
DPointerIntPair.h40 typename PtrTraits = PointerLikeTypeTraits<PointerTy> >
46 ~(uintptr_t)(((intptr_t)1 << PtrTraits::NumLowBitsAvailable)-1),
50 IntShift = (uintptr_t)PtrTraits::NumLowBitsAvailable-IntBits,
61 assert(IntBits <= PtrTraits::NumLowBitsAvailable && in PointerIntPair()
68 return PtrTraits::getFromVoidPointer( in getPointer()
78 = reinterpret_cast<intptr_t>(PtrTraits::getAsVoidPointer(Ptr)); in setPointer()
79 assert((PtrVal & ((1 << PtrTraits::NumLowBitsAvailable)-1)) == 0 && in setPointer()
145 typename PtrTraits>
147 PtrTraits> > {
158 NumLowBitsAvailable = PtrTraits::NumLowBitsAvailable - IntBits
DSmallPtrSet.h174 typedef PointerLikeTypeTraits<PtrTy> PtrTraits; typedef
189 return PtrTraits::getFromVoidPointer(const_cast<void*>(*Bucket));
240 typedef PointerLikeTypeTraits<PtrType> PtrTraits;
253 return insert_imp(PtrTraits::getAsVoidPointer(Ptr));
259 return erase_imp(PtrTraits::getAsVoidPointer(Ptr));
264 return count_imp(PtrTraits::getAsVoidPointer(Ptr));
/external/clang/include/clang/Sema/
DOwnership.h183 typedef llvm::PointerLikeTypeTraits<PtrTy> PtrTraits;
189 void *VP = PtrTraits::getAsVoidPointer(V);
205 return PtrTraits::getFromVoidPointer(VP);
210 void *VP = PtrTraits::getAsVoidPointer(V);
216 void *VP = PtrTraits::getAsVoidPointer(RHS);