Searched refs:SrcPtrTy (Results 1 – 4 of 4) sorted by relevance
2939 if (PointerType *SrcPtrTy = dyn_cast<PointerType>(SrcTy)) { in isBitCastable() local2940 return SrcPtrTy->getAddressSpace() == DestPtrTy->getAddressSpace(); in isBitCastable()3148 PointerType *SrcPtrTy = dyn_cast<PointerType>(SrcTy->getScalarType()); in castIsValid() local3153 if (!SrcPtrTy != !DstPtrTy) in castIsValid()3158 if (!SrcPtrTy) in castIsValid()3162 if (SrcPtrTy->getAddressSpace() != DstPtrTy->getAddressSpace()) in castIsValid()3176 PointerType *SrcPtrTy = dyn_cast<PointerType>(SrcTy->getScalarType()); in castIsValid() local3177 if (!SrcPtrTy) in castIsValid()3184 if (SrcPtrTy->getAddressSpace() == DstPtrTy->getAddressSpace()) in castIsValid()
2169 PointerType *SrcPtrTy = in ConstantFoldGetElementPtrImpl() local2172 if (SrcPtrTy && DstPtrTy) { in ConstantFoldGetElementPtrImpl()2174 dyn_cast<ArrayType>(SrcPtrTy->getElementType()); in ConstantFoldGetElementPtrImpl()2179 && SrcPtrTy->getAddressSpace() == DstPtrTy->getAddressSpace()) in ConstantFoldGetElementPtrImpl()
500 auto *SrcPtrTy = dyn_cast<PointerType>(SrcPtr->getType()); in ConstantFoldLoadThroughBitcast() local501 if (!SrcPtrTy) in ConstantFoldLoadThroughBitcast()503 Type *SrcTy = SrcPtrTy->getPointerElementType(); in ConstantFoldLoadThroughBitcast()
1715 if (const PointerType *SrcPtrTy = SrcType->getAs<PointerType>()) in DiagnoseCastOfObjCSEL() local1716 if (SrcPtrTy->isObjCSelType()) { in DiagnoseCastOfObjCSEL()