Lines Matching defs:PTy
920 auto *PTy = dyn_cast<PointerType>(AliaseeType);
921 if (!PTy)
923 unsigned AddrSpace = PTy->getAddressSpace();
925 if (IsAlias && Ty != PTy->getElementType())
930 if (!IsAlias && !PTy->getElementType()->isFunctionTy())
1364 static inline GlobalValue *createGlobalFwdRef(Module *M, PointerType *PTy,
1366 if (auto *FT = dyn_cast<FunctionType>(PTy->getElementType()))
1368 PTy->getAddressSpace(), Name, M);
1370 return new GlobalVariable(*M, PTy->getElementType(), false,
1373 PTy->getAddressSpace());
1403 PointerType *PTy = dyn_cast<PointerType>(Ty);
1404 if (!PTy) {
1427 GlobalValue *FwdVal = createGlobalFwdRef(M, PTy, Name);
1434 PointerType *PTy = dyn_cast<PointerType>(Ty);
1435 if (!PTy) {
1456 GlobalValue *FwdVal = createGlobalFwdRef(M, PTy, "");