Searched refs:SrcPtrTy (Results 1 – 7 of 7) sorted by relevance
2754 if (PointerType *SrcPtrTy = dyn_cast<PointerType>(SrcTy)) { in isBitCastable() local2755 return SrcPtrTy->getAddressSpace() == DestPtrTy->getAddressSpace(); in isBitCastable()2963 PointerType *SrcPtrTy = dyn_cast<PointerType>(SrcTy->getScalarType()); in castIsValid() local2968 if (!SrcPtrTy != !DstPtrTy) in castIsValid()2973 if (!SrcPtrTy) in castIsValid()2977 if (SrcPtrTy->getAddressSpace() != DstPtrTy->getAddressSpace()) in castIsValid()2991 PointerType *SrcPtrTy = dyn_cast<PointerType>(SrcTy->getScalarType()); in castIsValid() local2992 if (!SrcPtrTy) in castIsValid()2999 if (SrcPtrTy->getAddressSpace() == DstPtrTy->getAddressSpace()) in castIsValid()
2215 PointerType *SrcPtrTy = in ConstantFoldGetElementPtr() local2218 if (SrcPtrTy && DstPtrTy) { in ConstantFoldGetElementPtr()2220 dyn_cast<ArrayType>(SrcPtrTy->getElementType()); in ConstantFoldGetElementPtr()2225 && SrcPtrTy->getAddressSpace() == DstPtrTy->getAddressSpace()) in ConstantFoldGetElementPtr()
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()
578 auto *SrcPtrTy = dyn_cast<PointerType>(SrcPtr->getType()); in ConstantFoldLoadThroughBitcastExpr() local579 if (!SrcPtrTy) in ConstantFoldLoadThroughBitcastExpr()581 Type *SrcTy = SrcPtrTy->getPointerElementType(); in ConstantFoldLoadThroughBitcastExpr()
1715 if (const PointerType *SrcPtrTy = SrcType->getAs<PointerType>()) in DiagnoseCastOfObjCSEL() local1716 if (SrcPtrTy->isObjCSelType()) { in DiagnoseCastOfObjCSEL()