Searched refs:OldGV (Results 1 – 5 of 5) sorted by relevance
| /freebsd-12-stable/contrib/llvm-project/llvm/lib/LTO/ |
| D | LTO.cpp | 1073 GlobalVariable *OldGV = RegularLTO.CombinedModule->getNamedGlobal(I.first); in runRegularLTO() local 1074 if (OldGV && DL.getTypeAllocSize(OldGV->getValueType()) == I.second.Size) { in runRegularLTO() 1077 OldGV->setAlignment(I.second.Align); in runRegularLTO() 1086 if (OldGV) { in runRegularLTO() 1087 OldGV->replaceAllUsesWith(ConstantExpr::getBitCast(GV, OldGV->getType())); in runRegularLTO() 1088 GV->takeName(OldGV); in runRegularLTO() 1089 OldGV->eraseFromParent(); in runRegularLTO()
|
| /freebsd-12-stable/contrib/llvm-project/clang/lib/CodeGen/ |
| D | CGDecl.cpp | 359 llvm::GlobalVariable *OldGV = GV; in AddInitializerToStaticVarDecl() local 362 CGM.getModule(), Init->getType(), OldGV->isConstant(), in AddInitializerToStaticVarDecl() 363 OldGV->getLinkage(), Init, "", in AddInitializerToStaticVarDecl() 364 /*InsertBefore*/ OldGV, OldGV->getThreadLocalMode(), in AddInitializerToStaticVarDecl() 365 OldGV->getType()->getPointerAddressSpace()); in AddInitializerToStaticVarDecl() 366 GV->setVisibility(OldGV->getVisibility()); in AddInitializerToStaticVarDecl() 367 GV->setDSOLocal(OldGV->isDSOLocal()); in AddInitializerToStaticVarDecl() 368 GV->setComdat(OldGV->getComdat()); in AddInitializerToStaticVarDecl() 371 GV->takeName(OldGV); in AddInitializerToStaticVarDecl() 375 llvm::ConstantExpr::getBitCast(GV, OldGV->getType()); in AddInitializerToStaticVarDecl() [all …]
|
| D | ItaniumCXXABI.cpp | 3696 llvm::GlobalVariable *OldGV = CGM.getModule().getNamedGlobal(Name); in BuildTypeInfo() local 3697 if (OldGV && !OldGV->isDeclaration()) { in BuildTypeInfo() 3698 assert(!OldGV->hasAvailableExternallyLinkage() && in BuildTypeInfo() 3701 return llvm::ConstantExpr::getBitCast(OldGV, CGM.Int8PtrTy); in BuildTypeInfo() 3861 llvm::GlobalVariable *OldGV = M.getNamedGlobal(Name); in BuildTypeInfo() local 3879 if (OldGV) { in BuildTypeInfo() 3880 GV->takeName(OldGV); in BuildTypeInfo() 3882 llvm::ConstantExpr::getBitCast(GV, OldGV->getType()); in BuildTypeInfo() 3883 OldGV->replaceAllUsesWith(NewPtr); in BuildTypeInfo() 3884 OldGV->eraseFromParent(); in BuildTypeInfo()
|
| D | CGObjCGNU.cpp | 1365 auto *OldGV = TheModule.getGlobalVariable(SymName); in GenerateProtocolRef() local 1374 assert(!OldGV); in GenerateProtocolRef() 1423 if (OldGV) { in GenerateProtocolRef() 1424 OldGV->replaceAllUsesWith(llvm::ConstantExpr::getBitCast(GV, in GenerateProtocolRef() 1425 OldGV->getType())); in GenerateProtocolRef() 1426 OldGV->removeFromParent(); in GenerateProtocolRef()
|
| D | CodeGenModule.cpp | 4050 llvm::GlobalVariable *OldGV = nullptr; in CreateOrReplaceCXXRuntimeVariable() local 4060 OldGV = GV; in CreateOrReplaceCXXRuntimeVariable() 4067 if (OldGV) { in CreateOrReplaceCXXRuntimeVariable() 4069 GV->takeName(OldGV); in CreateOrReplaceCXXRuntimeVariable() 4071 if (!OldGV->use_empty()) { in CreateOrReplaceCXXRuntimeVariable() 4073 llvm::ConstantExpr::getBitCast(GV, OldGV->getType()); in CreateOrReplaceCXXRuntimeVariable() 4074 OldGV->replaceAllUsesWith(NewPtrForOldDecl); in CreateOrReplaceCXXRuntimeVariable() 4077 OldGV->eraseFromParent(); in CreateOrReplaceCXXRuntimeVariable()
|