Home
last modified time | relevance | path

Searched refs:hasSection (Results 1 – 25 of 39) sorted by relevance

12

/llvm-project-15.0.7/llvm/unittests/IR/
H A DFunctionTest.cpp131 EXPECT_TRUE(F->hasSection()); in TEST()
133 EXPECT_FALSE(F->hasSection()); in TEST()
137 EXPECT_TRUE(F->hasSection()); in TEST()
/llvm-project-15.0.7/llvm/include/llvm/IR/
H A DGlobalObject.h103 bool hasSection() const { in hasSection() function
112 return hasSection() ? getSectionImpl() : StringRef(); in getSection()
H A DGlobalValue.h272 bool hasSection() const { return !getSection().empty(); } in hasSection() function
/llvm-project-15.0.7/llvm/lib/Target/Hexagon/
H A DHexagonTargetObjectFile.cpp178 if (GO->hasSection()) { in getExplicitSectionGlobal()
216 if (GVar->hasSection()) { in isGlobalInSmallSection()
399 if (GVar->hasSection() && isSmallDataSection(GVar->getSection())) in selectSmallSectionForGlobal()
456 if (Fn->hasSection()) in selectSectionForLookupTable()
/llvm-project-15.0.7/llvm/unittests/ObjCopy/
H A DObjCopyTest.cpp151 bool hasSection(ObjectFile &File, StringRef SectionName) { in hasSection() function
347 EXPECT_TRUE(hasSection(**Obj, SectionName)); in removeSectionByPatternImpl()
365 hasSection(*static_cast<ObjectFile *>((*Result).get()), SectionName)); in removeSectionByPatternImpl()
/llvm-project-15.0.7/llvm/tools/llvm-reduce/deltas/
H A DReduceGlobalObjects.cpp14 static bool shouldReduceSection(GlobalObject &GO) { return GO.hasSection(); } in shouldReduceSection()
/llvm-project-15.0.7/llvm/lib/Target/
H A DTargetLoweringObjectFile.cpp93 if (GV->hasSection()) in isSuitableForBSS()
245 if (GVar->hasSection()) in getKindForGlobal()
324 if (GO->hasSection()) in SectionForGlobal()
/llvm-project-15.0.7/llvm/lib/Target/AVR/
H A DAVRTargetObjectFile.cpp43 if (AVR::isProgramMemoryAddress(GO) && !GO->hasSection() && in SelectSectionForGlobal()
/llvm-project-15.0.7/llvm/lib/IR/
H A DGlobals.cpp244 assert(hasSection()); in getSectionImpl()
250 if (!hasSection() && S.empty()) in setSection()
288 if (hasSection() && getAlign()) in canIncreaseAlignment()
H A DDataLayout.cpp982 if (GVAlignment && GV->hasSection()) in getPreferredAlign()
/llvm-project-15.0.7/llvm/lib/Target/RISCV/
H A DRISCVTargetObjectFile.cpp46 if (GVA->hasSection()) { in isGlobalInSmallSection()
/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DMachineFunctionSplitter.cpp102 if (MF.getFunction().hasSection() || in runOnMachineFunction()
H A DTargetLoweringObjectFileImpl.cpp913 if (F.hasSection() || F.hasFnAttribute("implicit-section-name")) in getUniqueSectionForFunction()
1952 cast<GlobalVariable>(RHS)->hasInitializer() || RHS->hasSection()) in lowerRelativeReference()
2263 if ((TM.getDataSections() && !GO->hasSection()) || GO->hasCommonLinkage() || in getTargetSymbol()
2275 if (!GO->hasSection()) in getExplicitSectionGlobal()
2533 if (((TM.getFunctionSections() && !Func->hasSection()) || in getFunctionEntryPointSymbol()
/llvm-project-15.0.7/llvm/lib/Target/Mips/
H A DMipsTargetObjectFile.cpp110 if (GVA->hasSection()) { in IsGlobalInSmallSectionImpl()
/llvm-project-15.0.7/llvm/lib/Transforms/IPO/
H A DConstantMerge.cpp97 GV->getType()->getAddressSpace() != 0 || GV->hasSection() || in isUnmergeableGlobal()
H A DHotColdSplitting.cpp372 if (OrigF->hasSection()) in extractColdRegion()
/llvm-project-15.0.7/llvm/lib/Transforms/Utils/
H A DFunctionImportUtils.cpp86 if (GV.hasSection()) in isNonRenamableLocal()
H A DFunctionComparator.cpp843 if (int Res = cmpNumbers(FnL->hasSection(), FnR->hasSection())) in compareSignature()
846 if (FnL->hasSection()) { in compareSignature()
/llvm-project-15.0.7/llvm/lib/ExecutionEngine/Orc/
H A DExecutionUtils.cpp104 if (GV.hasSection() && in isStaticInitGlobal()
/llvm-project-15.0.7/llvm/lib/Transforms/Instrumentation/
H A DMemProfiler.cpp406 if (GV->hasSection()) { in isInterestingMemoryAccess()
H A DThreadSanitizer.cpp367 if (GV->hasSection()) { in shouldInstrumentReadWriteFromAddress()
/llvm-project-15.0.7/llvm/lib/LTO/
H A DLTOModule.cpp359 if (!v->hasSection() /* || !isTargetDarwin */) in addDefinedDataSymbol()
/llvm-project-15.0.7/llvm/lib/Target/BPF/
H A DBTFDebug.cpp1372 if (Global.hasSection()) { in processGlobals()
1543 if (F->hasSection()) { in processFuncPrototypes()
/llvm-project-15.0.7/llvm/lib/Target/DirectX/DXILWriter/
H A DDXILBitcodeWriter.cpp1213 if (GV.hasSection()) { in writeModuleInfo()
1225 if (F.hasSection()) { in writeModuleInfo()
1293 Vals.push_back(GV.hasSection() ? SectionMap[std::string(GV.getSection())] in writeModuleInfo()
1326 Vals.push_back(F.hasSection() ? SectionMap[std::string(F.getSection())] in writeModuleInfo()
/llvm-project-15.0.7/llvm/lib/Analysis/
H A DModuleSummaryAnalysis.cpp136 return GV.hasSection() && GV.hasLocalLinkage(); in isNonRenamableLocal()

12