Lines Matching refs:IntBits
26 template <typename PointerT, unsigned IntBits, typename PtrTraits>
43 template <typename PointerTy, unsigned IntBits, typename IntType = unsigned,
45 typename Info = PointerIntPairInfo<PointerTy, IntBits, PtrTraits>>
85 "Can only return the address if IntBits is cleared and "
124 template <typename PointerT, unsigned IntBits, typename PtrTraits>
129 static_assert(IntBits <= PtrTraits::NumLowBitsAvailable,
138 IntShift = (uintptr_t)PtrTraits::NumLowBitsAvailable - IntBits,
141 IntMask = (uintptr_t)(((intptr_t)1 << IntBits) - 1),
175 template <typename PointerTy, unsigned IntBits, typename IntType>
176 struct isPodLike<PointerIntPair<PointerTy, IntBits, IntType>> {
181 template <typename PointerTy, unsigned IntBits, typename IntType>
182 struct DenseMapInfo<PointerIntPair<PointerTy, IntBits, IntType>> {
183 typedef PointerIntPair<PointerTy, IntBits, IntType> Ty;
202 template <typename PointerTy, unsigned IntBits, typename IntType,
205 PointerIntPair<PointerTy, IntBits, IntType, PtrTraits>> {
208 getAsVoidPointer(const PointerIntPair<PointerTy, IntBits, IntType> &P) {
211 static inline PointerIntPair<PointerTy, IntBits, IntType>
213 return PointerIntPair<PointerTy, IntBits, IntType>::getFromOpaqueValue(P);
215 static inline PointerIntPair<PointerTy, IntBits, IntType>
217 return PointerIntPair<PointerTy, IntBits, IntType>::getFromOpaqueValue(P);
219 enum { NumLowBitsAvailable = PtrTraits::NumLowBitsAvailable - IntBits };