Lines Matching defs:PTy
944 auto *PTy = dyn_cast<PointerType>(AliaseeType);
945 if (!PTy)
947 unsigned AddrSpace = PTy->getAddressSpace();
949 if (IsAlias && Ty != PTy->getElementType())
954 if (!IsAlias && !PTy->getElementType()->isFunctionTy())
1401 static inline GlobalValue *createGlobalFwdRef(Module *M, PointerType *PTy,
1403 if (auto *FT = dyn_cast<FunctionType>(PTy->getElementType()))
1405 PTy->getAddressSpace(), Name, M);
1407 return new GlobalVariable(*M, PTy->getElementType(), false,
1410 PTy->getAddressSpace());
1440 PointerType *PTy = dyn_cast<PointerType>(Ty);
1441 if (!PTy) {
1464 GlobalValue *FwdVal = createGlobalFwdRef(M, PTy, Name);
1471 PointerType *PTy = dyn_cast<PointerType>(Ty);
1472 if (!PTy) {
1493 GlobalValue *FwdVal = createGlobalFwdRef(M, PTy, "");