Lines Matching refs:PTy
706 auto *PTy = dyn_cast<PointerType>(AliaseeType); in ParseAlias() local
707 if (!PTy) in ParseAlias()
709 unsigned AddrSpace = PTy->getAddressSpace(); in ParseAlias()
711 if (Ty != PTy->getElementType()) in ParseAlias()
1067 static inline GlobalValue *createGlobalFwdRef(Module *M, PointerType *PTy, in createGlobalFwdRef() argument
1069 if (auto *FT = dyn_cast<FunctionType>(PTy->getElementType())) in createGlobalFwdRef()
1072 return new GlobalVariable(*M, PTy->getElementType(), false, in createGlobalFwdRef()
1075 PTy->getAddressSpace()); in createGlobalFwdRef()
1083 PointerType *PTy = dyn_cast<PointerType>(Ty); in GetGlobalVal() local
1084 if (!PTy) { in GetGlobalVal()
1110 GlobalValue *FwdVal = createGlobalFwdRef(M, PTy, Name); in GetGlobalVal()
1116 PointerType *PTy = dyn_cast<PointerType>(Ty); in GetGlobalVal() local
1117 if (!PTy) { in GetGlobalVal()
1141 GlobalValue *FwdVal = createGlobalFwdRef(M, PTy, ""); in GetGlobalVal()