Searched refs:SrcPtrTy (Results 1 – 3 of 3) sorted by relevance
3032 if (PointerType *SrcPtrTy = dyn_cast<PointerType>(SrcTy)) { in isBitCastable() local3033 return SrcPtrTy->getAddressSpace() == DestPtrTy->getAddressSpace(); in isBitCastable()3241 PointerType *SrcPtrTy = dyn_cast<PointerType>(SrcTy->getScalarType()); in castIsValid() local3246 if (!SrcPtrTy != !DstPtrTy) in castIsValid()3251 if (!SrcPtrTy) in castIsValid()3255 if (SrcPtrTy->getAddressSpace() != DstPtrTy->getAddressSpace()) in castIsValid()3271 PointerType *SrcPtrTy = dyn_cast<PointerType>(SrcTy->getScalarType()); in castIsValid() local3272 if (!SrcPtrTy) in castIsValid()3279 if (SrcPtrTy->getAddressSpace() == DstPtrTy->getAddressSpace()) in castIsValid()
2336 PointerType *SrcPtrTy = in ConstantFoldGetElementPtr() local2339 if (SrcPtrTy && DstPtrTy) { in ConstantFoldGetElementPtr()2341 dyn_cast<ArrayType>(SrcPtrTy->getElementType()); in ConstantFoldGetElementPtr()2346 && SrcPtrTy->getAddressSpace() == DstPtrTy->getAddressSpace()) in ConstantFoldGetElementPtr()
609 auto *SrcPtrTy = dyn_cast<PointerType>(SrcPtr->getType()); in ConstantFoldLoadThroughBitcastExpr() local610 if (!SrcPtrTy) in ConstantFoldLoadThroughBitcastExpr()612 Type *SrcTy = SrcPtrTy->getPointerElementType(); in ConstantFoldLoadThroughBitcastExpr()