reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
179 if (Ptr->getType()->getPointerAddressSpace() == ADDRESS_SPACE_GLOBAL) 184 if (Argument *Arg = dyn_cast<Argument>(Ptr)) { 189 InsertPt = ++cast<Instruction>(Ptr)->getIterator(); 195 Ptr, PointerType::get(Ptr->getType()->getPointerElementType(), 195 Ptr, PointerType::get(Ptr->getType()->getPointerElementType(), 197 Ptr->getName(), &*InsertPt); 198 Value *PtrInGeneric = new AddrSpaceCastInst(PtrInGlobal, Ptr->getType(), 199 Ptr->getName(), &*InsertPt); 201 Ptr->replaceAllUsesWith(PtrInGeneric); 202 PtrInGlobal->setOperand(0, Ptr);