| /NextBSD/contrib/llvm/lib/Transforms/IPO/ |
| HD | ConstantMerge.cpp | 49 bool hasKnownAlignment(GlobalVariable *GV) const; 53 unsigned getAlignment(GlobalVariable *GV) const; 74 GlobalValue *GV = cast<GlobalValue>(Operand); in FindUsedValues() local 75 UsedValues.insert(GV); in FindUsedValues() 91 unsigned ConstantMerge::getAlignment(GlobalVariable *GV) const { in getAlignment() 92 unsigned Align = GV->getAlignment(); in getAlignment() 95 return GV->getParent()->getDataLayout().getPreferredAlignment(GV); in getAlignment() 122 GlobalVariable *GV = GVI++; in runOnModule() local 125 GV->removeDeadConstantUsers(); in runOnModule() 126 if (GV->use_empty() && GV->hasLocalLinkage()) { in runOnModule() [all …]
|
| HD | GlobalOpt.cpp | 84 bool ProcessGlobal(GlobalVariable *GV,Module::global_iterator &GVI); 85 bool ProcessInternalGlobal(GlobalVariable *GV,Module::global_iterator &GVI, 105 static bool isLeakCheckerRoot(GlobalVariable *GV) { in isLeakCheckerRoot() argument 114 if (GV->hasPrivateLinkage()) in isLeakCheckerRoot() 118 Types.push_back(cast<PointerType>(GV->getType())->getElementType()); in isLeakCheckerRoot() 183 static bool CleanupPointerRootUsers(GlobalVariable *GV, in CleanupPointerRootUsers() argument 201 for (Value::user_iterator UI = GV->user_begin(), E = GV->user_end(); in CleanupPointerRootUsers() 240 CleanupPointerRootUsers(GV, TLI); in CleanupPointerRootUsers() 391 static bool IsUserOfGlobalSafeForSRA(User *U, GlobalValue *GV) { in IsUserOfGlobalSafeForSRA() argument 458 static bool GlobalUsersSafeToSRA(GlobalValue *GV) { in GlobalUsersSafeToSRA() argument [all …]
|
| HD | GlobalDCE.cpp | 55 void GlobalIsNeeded(GlobalValue *GV); 58 bool RemoveUnusedGlobalValue(GlobalValue &GV); 87 for (GlobalVariable &GV : M.globals()) in runOnModule() 88 if (Comdat *C = GV.getComdat()) in runOnModule() 89 ComdatMembers.insert(std::make_pair(C, &GV)); in runOnModule() 210 if (GlobalVariable *GV = dyn_cast<GlobalVariable>(G)) { in GlobalIsNeeded() local 213 if (GV->hasInitializer()) in GlobalIsNeeded() 214 MarkUsedGlobalsAsNeeded(GV->getInitializer()); in GlobalIsNeeded() 237 if (GlobalValue *GV = dyn_cast<GlobalValue>(*U)) in GlobalIsNeeded() local 238 GlobalIsNeeded(GV); in GlobalIsNeeded() [all …]
|
| HD | ExtractGV.cpp | 28 static void makeVisible(GlobalValue &GV, bool Delete) { in makeVisible() argument 29 bool Local = GV.hasLocalLinkage(); in makeVisible() 31 GV.setLinkage(GlobalValue::ExternalLinkage); in makeVisible() 33 GV.setVisibility(GlobalValue::HiddenVisibility); in makeVisible() 37 if (!GV.hasLinkOnceLinkage()) { in makeVisible() 38 assert(!GV.isDiscardableIfUnused()); in makeVisible() 43 switch(GV.getLinkage()) { in makeVisible() 47 GV.setLinkage(GlobalValue::WeakAnyLinkage); in makeVisible() 50 GV.setLinkage(GlobalValue::WeakODRLinkage); in makeVisible()
|
| /NextBSD/contrib/llvm/lib/ExecutionEngine/ |
| HD | ExecutionEngine.cpp | 90 GVMemoryBlock(const GlobalVariable *GV) in GVMemoryBlock() argument 91 : CallbackVH(const_cast<GlobalVariable*>(GV)) {} in GVMemoryBlock() 96 static char *Create(const GlobalVariable *GV, const DataLayout& TD) { in Create() argument 97 Type *ElTy = GV->getType()->getElementType(); in Create() 101 TD.getPreferredAlignment(GV)) in Create() 103 new(RawMemory) GVMemoryBlock(GV); in Create() 117 char *ExecutionEngine::getMemoryForGV(const GlobalVariable *GV) { in getMemoryForGV() argument 118 return GVMemoryBlock::Create(GV, *getDataLayout()); in getMemoryForGV() 158 GlobalVariable *GV = Modules[i]->getGlobalVariable(Name,AllowInternal); in FindGlobalVariableNamed() local 159 if (GV && !GV->isDeclaration()) in FindGlobalVariableNamed() [all …]
|
| /NextBSD/contrib/llvm/lib/Target/Mips/ |
| HD | MipsTargetObjectFile.cpp | 63 IsGlobalInSmallSection(const GlobalValue *GV, const TargetMachine &TM) const { in IsGlobalInSmallSection() argument 67 if (GV->isDeclaration() || GV->hasAvailableExternallyLinkage()) in IsGlobalInSmallSection() 68 return IsGlobalInSmallSectionImpl(GV, TM); in IsGlobalInSmallSection() 70 return IsGlobalInSmallSection(GV, TM, getKindForGlobal(GV, TM)); in IsGlobalInSmallSection() 76 IsGlobalInSmallSection(const GlobalValue *GV, const TargetMachine &TM, in IsGlobalInSmallSection() argument 78 return (IsGlobalInSmallSectionImpl(GV, TM) && in IsGlobalInSmallSection() 86 IsGlobalInSmallSectionImpl(const GlobalValue *GV, in IsGlobalInSmallSectionImpl() argument 96 const GlobalVariable *GVA = dyn_cast<GlobalVariable>(GV); in IsGlobalInSmallSectionImpl() 101 if (!LocalSData && GV->hasLocalLinkage()) in IsGlobalInSmallSectionImpl() 105 if (!ExternSData && ((GV->hasExternalLinkage() && GV->isDeclaration()) || in IsGlobalInSmallSectionImpl() [all …]
|
| /NextBSD/contrib/llvm/lib/CodeGen/ |
| HD | TargetLoweringObjectFileImpl.cpp | 50 const GlobalValue *GV, Mangler &Mang, const TargetMachine &TM, in getCFIPersonalitySymbol() argument 55 TM.getSymbol(GV, Mang)->getName()); in getCFIPersonalitySymbol() 57 return TM.getSymbol(GV, Mang); in getCFIPersonalitySymbol() 87 const GlobalValue *GV, unsigned Encoding, Mangler &Mang, in getTTypeGlobalReference() argument 94 MCSymbol *SSym = getSymbolWithGlobalValueBase(GV, ".DW.stub", Mang, TM); in getTTypeGlobalReference() 100 MCSymbol *Sym = TM.getSymbol(GV, Mang); in getTTypeGlobalReference() 101 StubSym = MachineModuleInfoImpl::StubValueTy(Sym, !GV->hasLocalLinkage()); in getTTypeGlobalReference() 110 getTTypeGlobalReference(GV, Encoding, Mang, TM, MMI, Streamer); in getTTypeGlobalReference() 191 static const Comdat *getELFComdat(const GlobalValue *GV) { in getELFComdat() argument 192 const Comdat *C = GV->getComdat(); in getELFComdat() [all …]
|
| /NextBSD/contrib/llvm/lib/Target/XCore/ |
| HD | XCoreLowerThreadLocal.cpp | 49 bool lowerGlobal(GlobalVariable *GV); 161 static bool rewriteNonInstructionUses(GlobalVariable *GV, Pass *P) { in rewriteNonInstructionUses() argument 163 for (User *U : GV->users()) in rewriteNonInstructionUses() 180 bool XCoreLowerThreadLocal::lowerGlobal(GlobalVariable *GV) { in lowerGlobal() argument 181 Module *M = GV->getParent(); in lowerGlobal() 183 if (!GV->isThreadLocal()) in lowerGlobal() 187 if (!rewriteNonInstructionUses(GV, this) || in lowerGlobal() 188 !GV->getType()->isSized() || isZeroLengthArray(GV->getType())) in lowerGlobal() 192 ArrayType *NewType = createLoweredType(GV->getType()->getElementType()); in lowerGlobal() 194 if (GV->hasInitializer()) in lowerGlobal() [all …]
|
| HD | XCoreAsmPrinter.cpp | 78 void emitArrayBound(MCSymbol *Sym, const GlobalVariable *GV); 79 void EmitGlobalVariable(const GlobalVariable *GV) override; 92 void XCoreAsmPrinter::emitArrayBound(MCSymbol *Sym, const GlobalVariable *GV) { in emitArrayBound() argument 93 assert( ( GV->hasExternalLinkage() || GV->hasWeakLinkage() || in emitArrayBound() 94 GV->hasLinkOnceLinkage() || GV->hasCommonLinkage() ) && in emitArrayBound() 97 cast<PointerType>(GV->getType())->getElementType())) { in emitArrayBound() 105 if (GV->hasWeakLinkage() || GV->hasLinkOnceLinkage() || in emitArrayBound() 106 GV->hasCommonLinkage()) { in emitArrayBound() 112 void XCoreAsmPrinter::EmitGlobalVariable(const GlobalVariable *GV) { in EmitGlobalVariable() argument 114 if (!GV->hasInitializer() || in EmitGlobalVariable() [all …]
|
| /NextBSD/contrib/llvm/lib/Target/Hexagon/ |
| HD | HexagonTargetObjectFile.cpp | 53 bool HexagonTargetObjectFile::IsGlobalInSmallSection(const GlobalValue *GV, in IsGlobalInSmallSection() argument 58 if (GV->isDeclaration() || GV->hasAvailableExternallyLinkage()) in IsGlobalInSmallSection() 63 return IsGlobalInSmallSection(GV, TM, getKindForGlobal(GV, TM)); in IsGlobalInSmallSection() 69 IsGlobalInSmallSection(const GlobalValue *GV, const TargetMachine &TM, in IsGlobalInSmallSection() argument 72 const GlobalVariable *GVA = dyn_cast<GlobalVariable>(GV); in IsGlobalInSmallSection() 77 Type *Ty = GV->getType()->getElementType(); in IsGlobalInSmallSection() 85 HexagonTargetObjectFile::SelectSectionForGlobal(const GlobalValue *GV, in SelectSectionForGlobal() argument 90 if (Kind.isBSS() && IsGlobalInSmallSection(GV, TM, Kind)) in SelectSectionForGlobal() 92 if (Kind.isDataNoRel() && IsGlobalInSmallSection(GV, TM, Kind)) in SelectSectionForGlobal() 96 return TargetLoweringObjectFileELF::SelectSectionForGlobal(GV, Kind, Mang,TM); in SelectSectionForGlobal()
|
| /NextBSD/contrib/llvm/lib/Target/ |
| HD | TargetLoweringObjectFile.cpp | 54 static bool isSuitableForBSS(const GlobalVariable *GV, bool NoZerosInBSS) { in isSuitableForBSS() argument 55 const Constant *C = GV->getInitializer(); in isSuitableForBSS() 62 if (GV->isConstant()) in isSuitableForBSS() 66 if (GV->hasSection()) in isSuitableForBSS() 105 const GlobalValue *GV, StringRef Suffix, Mangler &Mang, in getSymbolWithGlobalValueBase() argument 111 TM.getNameWithPrefix(NameStr, GV, Mang); in getSymbolWithGlobalValueBase() 117 const GlobalValue *GV, Mangler &Mang, const TargetMachine &TM, in getCFIPersonalitySymbol() argument 119 return TM.getSymbol(GV, Mang); in getCFIPersonalitySymbol() 133 SectionKind TargetLoweringObjectFile::getKindForGlobal(const GlobalValue *GV, in getKindForGlobal() argument 135 assert(!GV->isDeclaration() && !GV->hasAvailableExternallyLinkage() && in getKindForGlobal() [all …]
|
| HD | TargetMachine.cpp | 92 static TLSModel::Model getSelectedTLSModel(const GlobalValue *GV) { in getSelectedTLSModel() argument 93 switch (GV->getThreadLocalMode()) { in getSelectedTLSModel() 109 TLSModel::Model TargetMachine::getTLSModel(const GlobalValue *GV) const { in getTLSModel() 110 bool isLocal = GV->hasLocalLinkage(); in getTLSModel() 111 bool isDeclaration = GV->isDeclaration(); in getTLSModel() 116 bool isHidden = GV->hasHiddenVisibility(); in getTLSModel() 132 TLSModel::Model SelectedModel = getSelectedTLSModel(GV); in getTLSModel() 172 const GlobalValue *GV, Mangler &Mang, in getNameWithPrefix() argument 174 if (MayAlwaysUsePrivate || !GV->hasPrivateLinkage()) { in getNameWithPrefix() 177 Mang.getNameWithPrefix(Name, GV, false); in getNameWithPrefix() [all …]
|
| /NextBSD/contrib/llvm/lib/Object/ |
| HD | IRObjectFile.cpp | 127 const GlobalValue *GV = &*I; in skipEmpty() local 128 return reinterpret_cast<uintptr_t>(GV) | 2; in skipEmpty() 134 const GlobalValue *GV = &*I; in skipEmpty() local 135 return reinterpret_cast<uintptr_t>(GV) | 1; in skipEmpty() 141 const GlobalValue *GV = &*I; in skipEmpty() local 142 return reinterpret_cast<uintptr_t>(GV) | 0; in skipEmpty() 153 const GlobalValue *GV = getGV(Symb); in moveSymbolNext() local 158 Module::const_iterator Iter(static_cast<const Function*>(GV)); in moveSymbolNext() 164 Module::const_global_iterator Iter(static_cast<const GlobalVariable*>(GV)); in moveSymbolNext() 170 Module::const_alias_iterator Iter(static_cast<const GlobalAlias*>(GV)); in moveSymbolNext() [all …]
|
| /NextBSD/contrib/llvm/tools/clang/lib/CodeGen/ |
| HD | CodeGenModule.cpp | 272 const llvm::GlobalValue *GV = getAliasedGlobal(*Alias); in checkAliases() local 273 if (!GV) { in checkAliases() 276 } else if (GV->isDeclaration()) { in checkAliases() 303 << GV->getName() << GA->getName(); in checkAliases() 509 void CodeGenModule::setGlobalVisibility(llvm::GlobalValue *GV, in setGlobalVisibility() argument 512 if (GV->hasLocalLinkage()) { in setGlobalVisibility() 513 GV->setVisibility(llvm::GlobalValue::DefaultVisibility); in setGlobalVisibility() 519 if (LV.isVisibilityExplicit() || !GV->hasAvailableExternallyLinkage()) in setGlobalVisibility() 520 GV->setVisibility(GetLLVMVisibility(LV.getVisibility())); in setGlobalVisibility() 546 void CodeGenModule::setTLSMode(llvm::GlobalValue *GV, const VarDecl &D) const { in setTLSMode() argument [all …]
|
| /NextBSD/contrib/llvm/lib/Target/NVPTX/ |
| HD | NVPTXGenericToNVVM.cpp | 49 Value *getOrInsertCVTA(Module *M, Function *F, GlobalVariable *GV, 84 GlobalVariable *GV = I++; in runOnModule() local 85 if (GV->getType()->getAddressSpace() == llvm::ADDRESS_SPACE_GENERIC && in runOnModule() 86 !llvm::isTexture(*GV) && !llvm::isSurface(*GV) && in runOnModule() 87 !llvm::isSampler(*GV) && !GV->getName().startswith("llvm.")) { in runOnModule() 89 M, GV->getType()->getElementType(), GV->isConstant(), in runOnModule() 90 GV->getLinkage(), in runOnModule() 91 GV->hasInitializer() ? GV->getInitializer() : nullptr, in runOnModule() 92 "", GV, GV->getThreadLocalMode(), llvm::ADDRESS_SPACE_GLOBAL); in runOnModule() 93 NewGV->copyAttributesFrom(GV); in runOnModule() [all …]
|
| /NextBSD/contrib/llvm/include/llvm/Target/ |
| HD | TargetLoweringObjectFile.h | 79 static SectionKind getKindForGlobal(const GlobalValue *GV, 85 MCSection *SectionForGlobal(const GlobalValue *GV, SectionKind Kind, 91 MCSection *SectionForGlobal(const GlobalValue *GV, Mangler &Mang, in SectionForGlobal() argument 93 return SectionForGlobal(GV, getKindForGlobal(GV, TM), Mang, TM); in SectionForGlobal() 97 const GlobalValue *GV, 111 getExplicitSectionGlobal(const GlobalValue *GV, SectionKind Kind, 115 virtual const MCSection *getSpecialCasedSectionGlobals(const GlobalValue *GV, in getSpecialCasedSectionGlobals() argument 124 getTTypeGlobalReference(const GlobalValue *GV, unsigned Encoding, 130 MCSymbol *getSymbolWithGlobalValueBase(const GlobalValue *GV, 135 virtual MCSymbol *getCFIPersonalitySymbol(const GlobalValue *GV, [all …]
|
| /NextBSD/contrib/llvm/include/llvm/ExecutionEngine/Orc/ |
| HD | LazyEmittingLayer.h | 48 if (auto GV = searchGVs(Name, ExportedSymbolsOnly)) { in find() local 53 JITSymbolFlags Flags = JITSymbolBase::flagsFromGlobalValue(*GV); in find() 136 auto GV = VI->second; in searchGVs() local 137 if (!ExportedSymbolsOnly || GV->hasDefaultVisibility()) in searchGVs() 138 return GV; in searchGVs() 162 const GlobalValue &GV, in addGlobalValue() argument 166 if (GV.isDeclaration() || GV.hasCommonLinkage()) in addGlobalValue() 173 Mang.getNameWithPrefix(MangledNameStream, &GV, false); in addGlobalValue() 179 if (!ExportedSymbolsOnly || GV.hasDefaultVisibility()) in addGlobalValue() 180 return &GV; in addGlobalValue() [all …]
|
| /NextBSD/contrib/llvm/include/llvm/CodeGen/ |
| HD | TargetLoweringObjectFileImpl.h | 52 MCSection *getExplicitSectionGlobal(const GlobalValue *GV, SectionKind Kind, 56 MCSection *SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind, 69 getTTypeGlobalReference(const GlobalValue *GV, unsigned Encoding, 75 MCSymbol *getCFIPersonalitySymbol(const GlobalValue *GV, Mangler &Mang, 98 MCSection *SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind, 102 MCSection *getExplicitSectionGlobal(const GlobalValue *GV, SectionKind Kind, 111 getTTypeGlobalReference(const GlobalValue *GV, unsigned Encoding, 117 MCSymbol *getCFIPersonalitySymbol(const GlobalValue *GV, Mangler &Mang, 134 MCSection *getExplicitSectionGlobal(const GlobalValue *GV, SectionKind Kind, 138 MCSection *SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind, [all …]
|
| /NextBSD/contrib/llvm/lib/Target/X86/ |
| HD | X86Subtarget.cpp | 65 ClassifyGlobalReference(const GlobalValue *GV, const TargetMachine &TM) const { in ClassifyGlobalReference() argument 68 if (GV->hasDLLImportStorageClass()) in ClassifyGlobalReference() 71 bool isDef = GV->isStrongDefinitionForLinker(); in ClassifyGlobalReference() 83 if (GV->hasDefaultVisibility() && !isDef) in ClassifyGlobalReference() 89 if (!GV->hasLocalLinkage() && GV->hasDefaultVisibility()) in ClassifyGlobalReference() 98 if (GV->hasLocalLinkage() || GV->hasHiddenVisibility()) in ClassifyGlobalReference() 114 if (!GV->hasHiddenVisibility()) // Non-hidden $non_lazy_ptr reference. in ClassifyGlobalReference() 119 if (GV->isDeclarationForLinker() || GV->hasCommonLinkage()) { in ClassifyGlobalReference() 138 if (!GV->hasHiddenVisibility()) // Non-hidden $non_lazy_ptr reference. in ClassifyGlobalReference()
|
| /NextBSD/contrib/llvm/lib/Analysis/IPA/ |
| HD | GlobalsModRef.cpp | 58 unsigned getInfoForGlobal(const GlobalValue *GV) const { in getInfoForGlobal() 61 GlobalInfo.find(GV); in getInfoForGlobal() 189 bool AnalyzeIndirectGlobalMemory(GlobalValue *GV); 303 bool GlobalsModRef::AnalyzeIndirectGlobalMemory(GlobalValue *GV) { in AnalyzeIndirectGlobalMemory() argument 310 for (User *U : GV->users()) { in AnalyzeIndirectGlobalMemory() 321 if (SI->getOperand(0) == GV) in AnalyzeIndirectGlobalMemory() 330 GV->getParent()->getDataLayout()); in AnalyzeIndirectGlobalMemory() 338 if (AnalyzeUsesOfPointer(Ptr, ReadersWriters, ReadersWriters, GV)) in AnalyzeIndirectGlobalMemory() 352 AllocsForIndirectGlobals[AllocRelatedValues.back()] = GV; in AnalyzeIndirectGlobalMemory() 355 IndirectGlobals.insert(GV); in AnalyzeIndirectGlobalMemory() [all …]
|
| /NextBSD/contrib/llvm/lib/ExecutionEngine/Orc/ |
| HD | IndirectionUtils.cpp | 107 for (auto &GV : M.globals()) in makeAllSymbolsExternallyAccessible() local 108 raiseVisibilityOnValue(GV, Renamer); in makeAllSymbolsExternallyAccessible() 149 GlobalVariable* cloneGlobalVariableDecl(Module &Dst, const GlobalVariable &GV, in cloneGlobalVariableDecl() argument 151 assert(GV.getParent() != &Dst && "Can't copy decl over existing global var."); in cloneGlobalVariableDecl() 153 Dst, GV.getType()->getElementType(), GV.isConstant(), in cloneGlobalVariableDecl() 154 GV.getLinkage(), nullptr, GV.getName(), nullptr, in cloneGlobalVariableDecl() 155 GV.getThreadLocalMode(), GV.getType()->getAddressSpace()); in cloneGlobalVariableDecl() 156 NewGV->copyAttributesFrom(&GV); in cloneGlobalVariableDecl() 158 (*VMap)[&GV] = NewGV; in cloneGlobalVariableDecl()
|
| /NextBSD/contrib/llvm/lib/ExecutionEngine/Interpreter/ |
| HD | ExternalFunctions.cpp | 303 GenericValue GV; in lle_X_atexit() local 304 GV.IntVal = 0; in lle_X_atexit() 305 return GV; in lle_X_atexit() 332 GenericValue GV; in lle_X_sprintf() local 333 GV.IntVal = APInt(32, strlen(FmtStr)); in lle_X_sprintf() 336 case 0: return GV; // Null terminator... in lle_X_sprintf() 401 return GV; in lle_X_sprintf() 412 GenericValue GV = lle_X_sprintf(FT, NewArgs); in lle_X_printf() local 414 return GV; in lle_X_printf() 426 GenericValue GV; in lle_X_sscanf() local [all …]
|
| /NextBSD/contrib/llvm/lib/Target/SystemZ/ |
| HD | SystemZConstantPoolValue.cpp | 21 : MachineConstantPoolValue(gv->getType()), GV(gv), Modifier(modifier) {} in SystemZConstantPoolValue() 24 SystemZConstantPoolValue::Create(const GlobalValue *GV, in Create() argument 26 return new SystemZConstantPoolValue(GV, Modifier); in Create() 53 if (ZCPV->GV == GV && ZCPV->Modifier == Modifier) in getExistingMachineCPValue() 61 ID.AddPointer(GV); in addSelectionDAGCSEId() 66 O << GV << "@" << int(Modifier); in print()
|
| /NextBSD/contrib/llvm/lib/Transforms/Utils/ |
| HD | CtorUtils.cpp | 68 std::vector<Function *> parseGlobalCtors(GlobalVariable *GV) { in parseGlobalCtors() argument 69 if (GV->getInitializer()->isNullValue()) in parseGlobalCtors() 71 ConstantArray *CA = cast<ConstantArray>(GV->getInitializer()); in parseGlobalCtors() 84 GlobalVariable *GV = M.getGlobalVariable("llvm.global_ctors"); in findGlobalCtors() local 85 if (!GV) in findGlobalCtors() 90 if (!GV->hasUniqueInitializer()) in findGlobalCtors() 93 if (isa<ConstantAggregateZero>(GV->getInitializer())) in findGlobalCtors() 94 return GV; in findGlobalCtors() 95 ConstantArray *CA = cast<ConstantArray>(GV->getInitializer()); in findGlobalCtors() 114 return GV; in findGlobalCtors()
|
| /NextBSD/contrib/llvm/tools/bugpoint/ |
| HD | ExtractFunction.cpp | 52 Function* globalInitUsesExternalBA(GlobalVariable* GV) { in globalInitUsesExternalBA() argument 53 if (!GV->hasInitializer()) in globalInitUsesExternalBA() 56 Constant *I = GV->getInitializer(); in globalInitUsesExternalBA() 219 GlobalVariable *GV = M1->getNamedGlobal(GlobalName); in SplitStaticCtorDtor() local 220 if (!GV || GV->isDeclaration() || GV->hasLocalLinkage() || in SplitStaticCtorDtor() 221 !GV->use_empty()) return; in SplitStaticCtorDtor() 224 ConstantArray *InitList = dyn_cast<ConstantArray>(GV->getInitializer()); in SplitStaticCtorDtor() 253 GV->eraseFromParent(); in SplitStaticCtorDtor() 261 GV = M2->getNamedGlobal(GlobalName); in SplitStaticCtorDtor() 262 assert(GV && "Not a clone of M1?"); in SplitStaticCtorDtor() [all …]
|