/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/ |
H A D | ConstantMerge.cpp | 52 GlobalValue *GV = cast<GlobalValue>(Operand); in FindUsedValues() local 53 UsedValues.insert(GV); in FindUsedValues() 69 static bool hasMetadataOtherThanDebugLoc(const GlobalVariable *GV) { in hasMetadataOtherThanDebugLoc() argument 71 GV->getAllMetadata(MDs); in hasMetadataOtherThanDebugLoc() 86 static Align getAlign(GlobalVariable *GV) { in getAlign() argument 87 return GV->getAlign().value_or( in getAlign() 88 GV->getDataLayout().getPreferredAlign(GV)); in getAlign() 92 isUnmergeableGlobal(GlobalVariable *GV, in isUnmergeableGlobal() argument 95 return !GV->isConstant() || !GV->hasDefinitiveInitializer() || in isUnmergeableGlobal() 96 GV->getType()->getAddressSpace() != 0 || GV->hasSection() || in isUnmergeableGlobal() [all …]
|
H A D | GlobalOpt.cpp | 111 static bool isLeakCheckerRoot(GlobalVariable *GV) { in isLeakCheckerRoot() argument 120 if (GV->hasPrivateLinkage()) in isLeakCheckerRoot() 124 Types.push_back(GV->getValueType()); in isLeakCheckerRoot() 192 CleanupPointerRootUsers(GlobalVariable *GV, in CleanupPointerRootUsers() argument 209 SmallVector<User *> Worklist(GV->users()); in CleanupPointerRootUsers() 263 GV->removeDeadConstantUsers(); in CleanupPointerRootUsers() 270 static bool CleanupConstantGlobalUsers(GlobalVariable *GV, in CleanupConstantGlobalUsers() argument 272 Constant *Init = GV->getInitializer(); in CleanupConstantGlobalUsers() 273 SmallVector<User *, 8> WorkList(GV->users()); in CleanupConstantGlobalUsers() 314 if (PtrOp == GV) { in CleanupConstantGlobalUsers() [all …]
|
H A D | Internalize.cpp | 66 bool operator()(const GlobalValue &GV) { in operator ()() argument 68 ExternalNames, [&](GlobPattern &GP) { return GP.match(GV.getName()); }); in operator ()() 103 bool InternalizePass::shouldPreserveGV(const GlobalValue &GV) { in shouldPreserveGV() argument 105 if (GV.isDeclaration()) in shouldPreserveGV() 109 if (GV.hasAvailableExternallyLinkage()) in shouldPreserveGV() 113 if (GV.hasDLLExportStorageClass()) in shouldPreserveGV() 118 if (const auto *G = dyn_cast<GlobalVariable>(&GV)) in shouldPreserveGV() 123 if (GV.hasLocalLinkage()) in shouldPreserveGV() 127 if (AlwaysPreserved.count(GV.getName())) in shouldPreserveGV() 130 return MustPreserveGV(GV); in shouldPreserveGV() [all …]
|
H A D | ExtractGV.cpp | 24 static void makeVisible(GlobalValue &GV, bool Delete) { in makeVisible() argument 25 bool Local = GV.hasLocalLinkage(); in makeVisible() 27 GV.setLinkage(GlobalValue::ExternalLinkage); in makeVisible() 29 GV.setVisibility(GlobalValue::HiddenVisibility); in makeVisible() 33 if (!GV.hasLinkOnceLinkage()) { in makeVisible() 34 assert(!GV.isDiscardableIfUnused()); in makeVisible() 39 switch (GV.getLinkage()) { in makeVisible() 43 GV.setLinkage(GlobalValue::WeakAnyLinkage); in makeVisible() 46 GV.setLinkage(GlobalValue::WeakODRLinkage); in makeVisible() 72 for (GlobalVariable &GV : M.globals()) { in run() [all …]
|
H A D | GlobalSplit.cpp | 39 static bool splitGlobal(GlobalVariable &GV) { in splitGlobal() argument 42 if (!GV.hasLocalLinkage()) in splitGlobal() 46 auto *Init = dyn_cast_or_null<ConstantStruct>(GV.getInitializer()); in splitGlobal() 50 const DataLayout &DL = GV.getDataLayout(); in splitGlobal() 53 unsigned IndexWidth = DL.getIndexTypeSizeInBits(GV.getType()); in splitGlobal() 67 for (User *U : GV.users()) { in splitGlobal() 108 GV.getMetadata(LLVMContext::MD_type, Types); in splitGlobal() 110 IntegerType *Int32Ty = Type::getInt32Ty(GV.getContext()); in splitGlobal() 116 new GlobalVariable(*GV.getParent(), Init->getOperand(I)->getType(), in splitGlobal() 117 GV.isConstant(), GlobalValue::PrivateLinkage, in splitGlobal() [all …]
|
H A D | GlobalDCE.cpp | 66 } else if (auto *GV = dyn_cast<GlobalValue>(V)) { in ComputeDependencies() local 67 Deps.insert(GV); in ComputeDependencies() 83 void GlobalDCEPass::UpdateGVDependencies(GlobalValue &GV) { in UpdateGVDependencies() argument 85 for (User *User : GV.users()) in UpdateGVDependencies() 87 Deps.erase(&GV); // Remove self-reference. in UpdateGVDependencies() 93 if (VFESafeVTables.count(GVU) && isa<Function>(&GV)) { in UpdateGVDependencies() 95 << GV.getName() << "\n"); in UpdateGVDependencies() 98 GVDependencies[GVU].insert(&GV); in UpdateGVDependencies() 103 void GlobalDCEPass::MarkLive(GlobalValue &GV, in MarkLive() argument 105 auto const Ret = AliveGlobals.insert(&GV); in MarkLive() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/ |
H A D | ExecutionEngine.cpp | 98 GVMemoryBlock(const GlobalVariable *GV) in GVMemoryBlock() argument 99 : CallbackVH(const_cast<GlobalVariable*>(GV)) {} in GVMemoryBlock() 104 static char *Create(const GlobalVariable *GV, const DataLayout& TD) { in Create() argument 105 Type *ElTy = GV->getValueType(); in Create() 108 alignTo(sizeof(GVMemoryBlock), TD.getPreferredAlign(GV)) + GVSize); in Create() 109 new(RawMemory) GVMemoryBlock(GV); in Create() 123 char *ExecutionEngine::getMemoryForGV(const GlobalVariable *GV) { in getMemoryForGV() argument 124 return GVMemoryBlock::Create(GV, getDataLayout()); in getMemoryForGV() 164 GlobalVariable *GV = M->getGlobalVariable(Name, AllowInternal); in FindGlobalVariableNamed() local 165 if (GV && !GV->isDeclaration()) in FindGlobalVariableNamed() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/ |
H A D | TargetMachine.cpp | 59 auto *GV = dyn_cast<GlobalVariable>(GO); in isLargeGlobalValue() local 66 if (!GV) { in isLargeGlobalValue() 76 if (GV->isThreadLocal()) in isLargeGlobalValue() 81 if (auto CM = GV->getCodeModel()) { in isLargeGlobalValue() 92 if (GV->hasSection()) { in isLargeGlobalValue() 93 StringRef Name = GV->getSection(); in isLargeGlobalValue() 101 if (!GV->getValueType()->isSized()) in isLargeGlobalValue() 105 if (GV->isDeclaration() && (GV->getName() == "__ehdr_start" || in isLargeGlobalValue() 106 GV->getName().starts_with("__start_") || in isLargeGlobalValue() 107 GV->getName().starts_with("__stop_"))) in isLargeGlobalValue() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
H A D | FunctionImportUtils.cpp | 92 const GlobalValue &GV) const { in isNonRenamableLocal() 93 if (!GV.hasLocalLinkage()) in isNonRenamableLocal() 96 if (GV.hasSection()) in isNonRenamableLocal() 98 if (Used.count(const_cast<GlobalValue *>(&GV))) in isNonRenamableLocal() 220 void FunctionImportGlobalProcessing::processGlobalForThinLTO(GlobalValue &GV) { in processGlobalForThinLTO() argument 223 if (GV.hasName()) { in processGlobalForThinLTO() 224 VI = ImportIndex.getValueInfo(GV.getGUID()); in processGlobalForThinLTO() 227 if (Function *F = dyn_cast<Function>(&GV)) { in processGlobalForThinLTO() 244 assert(VI || GV.isDeclaration() || in processGlobalForThinLTO() 245 (isPerformingImport() && !doImportAsDefinition(&GV))); in processGlobalForThinLTO() [all …]
|
H A D | SplitModule.cpp | 73 const GlobalValue *GV, const User *U) { in addNonConstUser() argument 78 GVtoClusterMap.unionSets(GV, F); in addNonConstUser() 80 GVtoClusterMap.unionSets(GV, GVU); in addNonConstUser() 88 const GlobalValue *GV, const Value *V) { in addAllGlobalValueUsers() argument 99 addNonConstUser(GVtoClusterMap, GV, UU); in addAllGlobalValueUsers() 104 static const GlobalObject *getGVPartitioningRoot(const GlobalValue *GV) { in getGVPartitioningRoot() argument 105 const GlobalObject *GO = GV->getAliaseeObject(); in getGVPartitioningRoot() 125 auto recordGVSet = [&GVtoClusterMap, &ComdatMembers](GlobalValue &GV) { in findPartitions() argument 126 if (GV.isDeclaration()) in findPartitions() 129 if (!GV.hasName()) in findPartitions() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/XCore/ |
H A D | XCoreLowerThreadLocal.cpp | 49 bool lowerGlobal(GlobalVariable *GV); 113 static bool rewriteNonInstructionUses(GlobalVariable *GV, Pass *P) { in rewriteNonInstructionUses() argument 115 for (User *U : GV->users()) in rewriteNonInstructionUses() 132 bool XCoreLowerThreadLocal::lowerGlobal(GlobalVariable *GV) { in lowerGlobal() argument 133 Module *M = GV->getParent(); in lowerGlobal() 134 if (!GV->isThreadLocal()) in lowerGlobal() 138 if (!rewriteNonInstructionUses(GV, this) || in lowerGlobal() 139 !GV->getType()->isSized() || isZeroLengthArray(GV->getType())) in lowerGlobal() 143 ArrayType *NewType = createLoweredType(GV->getValueType()); in lowerGlobal() 145 if (GV->hasInitializer()) in lowerGlobal() [all …]
|
H A D | XCoreAsmPrinter.cpp | 74 void emitArrayBound(MCSymbol *Sym, const GlobalVariable *GV); 75 void emitGlobalVariable(const GlobalVariable *GV) override; 88 void XCoreAsmPrinter::emitArrayBound(MCSymbol *Sym, const GlobalVariable *GV) { in emitArrayBound() argument 89 assert( ( GV->hasExternalLinkage() || GV->hasWeakLinkage() || in emitArrayBound() 90 GV->hasLinkOnceLinkage() || GV->hasCommonLinkage() ) && in emitArrayBound() 92 if (ArrayType *ATy = dyn_cast<ArrayType>(GV->getValueType())) { in emitArrayBound() 100 if (GV->hasWeakLinkage() || GV->hasLinkOnceLinkage() || in emitArrayBound() 101 GV->hasCommonLinkage()) { in emitArrayBound() 107 void XCoreAsmPrinter::emitGlobalVariable(const GlobalVariable *GV) { in emitGlobalVariable() argument 109 if (!GV->hasInitializer() || emitSpecialLLVMGlobal(GV)) in emitGlobalVariable() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/ |
H A D | X86Subtarget.cpp | 67 X86Subtarget::classifyGlobalReference(const GlobalValue *GV) const { in classifyGlobalReference() 68 return classifyGlobalReference(GV, *GV->getParent()); in classifyGlobalReference() 72 X86Subtarget::classifyLocalReference(const GlobalValue *GV) const { in classifyLocalReference() 77 if (AllowTaggedGlobals && CM != CodeModel::Large && GV && !isa<Function>(GV)) in classifyLocalReference() 94 if (GV) in classifyLocalReference() 95 return TM.isLargeGlobalValue(GV) ? X86II::MO_GOTOFF : X86II::MO_NO_FLAG; in classifyLocalReference() 116 if (GV && (GV->isDeclarationForLinker() || GV->hasCommonLinkage())) in classifyLocalReference() 125 unsigned char X86Subtarget::classifyGlobalReference(const GlobalValue *GV, in classifyGlobalReference() argument 132 if (GV) { in classifyGlobalReference() 133 if (std::optional<ConstantRange> CR = GV->getAbsoluteSymbolRange()) { in classifyGlobalReference() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/IR/ |
H A D | Mangler.cpp | 121 void Mangler::getNameWithPrefix(raw_ostream &OS, const GlobalValue *GV, in getNameWithPrefix() argument 124 assert(GV != nullptr && "Invalid Global Value"); in getNameWithPrefix() 125 if (GV->hasPrivateLinkage()) { in getNameWithPrefix() 132 const DataLayout &DL = GV->getDataLayout(); in getNameWithPrefix() 133 if (!GV->hasName()) { in getNameWithPrefix() 136 unsigned &ID = AnonGlobalIDs[GV]; in getNameWithPrefix() 145 StringRef Name = GV->getName(); in getNameWithPrefix() 150 const Function *MSFunc = dyn_cast_or_null<Function>(GV->getAliaseeObject()); in getNameWithPrefix() 189 const GlobalValue *GV, in getNameWithPrefix() argument 192 getNameWithPrefix(OS, GV, CannotUsePrivateLabel); in getNameWithPrefix() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Linker/ |
H A D | LinkModules.cpp | 51 void addLazyFor(GlobalValue &GV, const IRMover::ValueAdder &Add); 104 void dropReplacedComdat(GlobalValue &GV, 107 bool linkIfNeeded(GlobalValue &GV, SmallVectorImpl<GlobalValue *> &GVToClone); 328 bool ModuleLinker::linkIfNeeded(GlobalValue &GV, in linkIfNeeded() argument 330 GlobalValue *DGV = getLinkedToGlobal(&GV); in linkIfNeeded() 334 if (!GV.hasAppendingLinkage()) { in linkIfNeeded() 345 if (DGV && !GV.hasLocalLinkage() && !GV.hasAppendingLinkage()) { in linkIfNeeded() 347 auto *SGVar = dyn_cast<GlobalVariable>(&GV); in linkIfNeeded() 367 getMinVisibility(DGV->getVisibility(), GV.getVisibility()); in linkIfNeeded() 369 GV.setVisibility(Visibility); in linkIfNeeded() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
H A D | AMDGPULowerModuleLDSPass.cpp | 324 for (GlobalVariable *GV : Variables) { in getAddressesOfVariablesInKernel() 325 auto ConstantGepIt = LDSVarsToConstantGEP.find(GV); in getAddressesOfVariablesInKernel() 376 GlobalVariable *GV, Use &U, in replaceUseWithTableLookup() argument 400 LookupTable->getValueType(), LookupTable, GEPIdx, GV->getName()); in replaceUseWithTableLookup() 405 Builder.CreateIntToPtr(loaded, GV->getType(), GV->getName()); in replaceUseWithTableLookup() 419 auto *GV = ModuleScopeVariables[Index]; in replaceUsesInInstructionsWithTableLookup() local 421 for (Use &U : make_early_inc_range(GV->uses())) { in replaceUsesInInstructionsWithTableLookup() 426 replaceUseWithTableLookup(M, Builder, LookupTable, GV, U, in replaceUsesInInstructionsWithTableLookup() 444 for (GlobalVariable *GV : LDSUsesInfo.indirect_access[&Func]) { in kernelsThatIndirectlyAccessAnyOfPassedVariables() 445 if (VariableSet.contains(GV)) { in kernelsThatIndirectlyAccessAnyOfPassedVariables() [all …]
|
H A D | AMDGPUMachineFunction.cpp | 94 const GlobalVariable &GV, in allocateLDSGlobal() argument 96 auto Entry = LocalMemoryObjects.insert(std::pair(&GV, 0)); in allocateLDSGlobal() 101 DL.getValueOrABITypeAlignment(GV.getAlign(), GV.getValueType()); in allocateLDSGlobal() 104 if (GV.getAddressSpace() == AMDGPUAS::LOCAL_ADDRESS) { in allocateLDSGlobal() 106 std::optional<uint32_t> MaybeAbs = getLDSAbsoluteAddress(GV); in allocateLDSGlobal() 130 ObjectStart + DL.getTypeAllocSize(GV.getValueType()); in allocateLDSGlobal() 146 StaticLDSSize += DL.getTypeAllocSize(GV.getValueType()); in allocateLDSGlobal() 151 assert(GV.getAddressSpace() == AMDGPUAS::REGION_ADDRESS && in allocateLDSGlobal() 155 StaticGDSSize += DL.getTypeAllocSize(GV.getValueType()); in allocateLDSGlobal() 182 AMDGPUMachineFunction::getLDSAbsoluteAddress(const GlobalValue &GV) { in getLDSAbsoluteAddress() argument [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/Utils/ |
H A D | AMDGPUMemoryUtils.cpp | 30 Align getAlign(const DataLayout &DL, const GlobalVariable *GV) { in getAlign() argument 31 return DL.getValueOrABITypeAlignment(GV->getPointerAlignment(DL), in getAlign() 32 GV->getValueType()); in getAlign() 35 bool isDynamicLDS(const GlobalVariable &GV) { in isDynamicLDS() argument 37 const Module *M = GV.getParent(); in isDynamicLDS() 39 if (GV.getType()->getPointerAddressSpace() != AMDGPUAS::LOCAL_ADDRESS) in isDynamicLDS() 41 return DL.getTypeAllocSize(GV.getValueType()) == 0; in isDynamicLDS() 44 bool isLDSVariableToLower(const GlobalVariable &GV) { in isLDSVariableToLower() argument 45 if (GV.getType()->getPointerAddressSpace() != AMDGPUAS::LOCAL_ADDRESS) { in isLDSVariableToLower() 48 if (isDynamicLDS(GV)) { in isLDSVariableToLower() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/DirectX/ |
H A D | DirectXAsmPrinter.cpp | 37 void emitGlobalVariable(const GlobalVariable *GV) override; 42 void DXILAsmPrinter::emitGlobalVariable(const GlobalVariable *GV) { in emitGlobalVariable() argument 44 if (!GV->hasInitializer() || GV->hasImplicitSection() || !GV->hasSection()) in emitGlobalVariable() 47 if (GV->getSection() == "llvm.metadata") in emitGlobalVariable() 49 SectionKind GVKind = TargetLoweringObjectFile::getKindForGlobal(GV, TM); in emitGlobalVariable() 50 MCSection *TheSection = getObjFileLowering().SectionForGlobal(GV, GVKind, TM); in emitGlobalVariable() 52 emitGlobalConstant(GV->getDataLayout(), GV->getInitializer()); in emitGlobalVariable()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/NVPTX/ |
H A D | NVPTXGenericToNVVM.cpp | 62 for (GlobalVariable &GV : llvm::make_early_inc_range(M.globals())) { in runOnModule() 63 if (GV.getType()->getAddressSpace() == llvm::ADDRESS_SPACE_GENERIC && in runOnModule() 64 !llvm::isTexture(GV) && !llvm::isSurface(GV) && !llvm::isSampler(GV) && in runOnModule() 65 !GV.getName().starts_with("llvm.")) { in runOnModule() 67 M, GV.getValueType(), GV.isConstant(), GV.getLinkage(), in runOnModule() 68 GV.hasInitializer() ? GV.getInitializer() : nullptr, "", &GV, in runOnModule() 69 GV.getThreadLocalMode(), llvm::ADDRESS_SPACE_GLOBAL); in runOnModule() 70 NewGV->copyAttributesFrom(&GV); in runOnModule() 71 NewGV->copyMetadata(&GV, /*Offset=*/0); in runOnModule() 72 GVMap[&GV] = NewGV; in runOnModule() [all …]
|
H A D | NVPTXCtorDtorLowering.cpp | 52 static void addKernelMetadata(Module &M, GlobalValue *GV) { in addKernelMetadata() argument 59 llvm::ConstantAsMetadata::get(GV), llvm::MDString::get(Ctx, "kernel"), in addKernelMetadata() 65 llvm::ConstantAsMetadata::get(GV), llvm::MDString::get(Ctx, "maxntidx"), in addKernelMetadata() 69 llvm::ConstantAsMetadata::get(GV), llvm::MDString::get(Ctx, "maxntidy"), in addKernelMetadata() 73 llvm::ConstantAsMetadata::get(GV), llvm::MDString::get(Ctx, "maxntidz"), in addKernelMetadata() 78 llvm::ConstantAsMetadata::get(GV), in addKernelMetadata() 140 auto *GV = new GlobalVariable( in createInitOrFiniCalls() local 147 GV->setVisibility(GlobalVariable::ProtectedVisibility); in createInitOrFiniCalls() 148 return GV; in createInitOrFiniCalls() 153 auto *GV = new GlobalVariable( in createInitOrFiniCalls() local [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Object/ |
H A D | ModuleSymbolTable.cpp | 60 for (GlobalValue &GV : M->global_values()) in addModule() 61 SymTab.push_back(&GV); in addModule() 209 auto *GV = cast<GlobalValue *>(S); in printSymbolName() local 210 if (GV->hasDLLImportStorageClass()) in printSymbolName() 213 Mang.getNameWithPrefix(OS, GV, false); in printSymbolName() 220 auto *GV = cast<GlobalValue *>(S); in getSymbolFlags() local 223 if (GV->isDeclarationForLinker()) in getSymbolFlags() 225 else if (GV->hasHiddenVisibility() && !GV->hasLocalLinkage()) in getSymbolFlags() 227 if (const GlobalVariable *GVar = dyn_cast<GlobalVariable>(GV)) { in getSymbolFlags() 231 if (const GlobalObject *GO = GV->getAliaseeObject()) in getSymbolFlags() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
H A D | GlobalsModRef.cpp | 156 ModRefInfo getModRefInfoForGlobal(const GlobalValue &GV) const { in getModRefInfoForGlobal() 160 auto I = P->Map.find(&GV); in getModRefInfoForGlobal() 180 void addModRefInfoForGlobal(const GlobalValue &GV, ModRefInfo NewMRI) { in addModRefInfoForGlobal() argument 186 auto &GlobalMRI = P->Map[&GV]; in addModRefInfoForGlobal() 192 void eraseModRefInfoForGlobal(const GlobalValue &GV) { in eraseModRefInfoForGlobal() argument 194 P->Map.erase(&GV); in eraseModRefInfoForGlobal() 211 if (GlobalValue *GV = dyn_cast<GlobalValue>(V)) { in deleted() local 212 if (GAR->NonAddressTakenGlobals.erase(GV)) { in deleted() 215 if (GAR->IndirectGlobals.erase(GV)) { in deleted() 220 if (I->second == GV) in deleted() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/LTO/ |
H A D | LTOCodeGenerator.cpp | 439 auto mayPreserveGlobal = [&](GlobalValue &GV) { in preserveDiscardableGVs() argument 440 if (!GV.isDiscardableIfUnused() || GV.isDeclaration() || in preserveDiscardableGVs() 441 !mustPreserveGV(GV)) in preserveDiscardableGVs() 443 if (GV.hasAvailableExternallyLinkage()) in preserveDiscardableGVs() 446 GV.getName() + "'").str()); in preserveDiscardableGVs() 447 if (GV.hasInternalLinkage()) in preserveDiscardableGVs() 449 GV.getName() + "'").str()); in preserveDiscardableGVs() 450 Used.push_back(&GV); in preserveDiscardableGVs() 452 for (auto &GV : TheModule) in preserveDiscardableGVs() local 453 mayPreserveGlobal(GV); in preserveDiscardableGVs() [all …]
|
H A D | UpdateCompilerUsed.cpp | 38 for (GlobalVariable &GV : TheModule.globals()) in findInModule() 39 findLibCallsAndAsm(GV); in findInModule() 89 void findLibCallsAndAsm(GlobalValue &GV) { in findLibCallsAndAsm() argument 91 if (GV.isDeclaration()) in findLibCallsAndAsm() 95 if (GV.hasPrivateLinkage()) in findLibCallsAndAsm() 105 if (isa<GlobalAlias>(GV)) { in findLibCallsAndAsm() 106 auto *A = cast<GlobalAlias>(&GV); in findLibCallsAndAsm() 109 if ((isa<Function>(GV) || FuncAliasee) && Libcalls.count(GV.getName())) { in findLibCallsAndAsm() 110 LLVMUsed.push_back(&GV); in findLibCallsAndAsm() 115 TM.getNameWithPrefix(Buffer, &GV, Mangler); in findLibCallsAndAsm() [all …]
|