Home
last modified time | relevance | path

Searched refs:ICFLevel (Results 1 – 11 of 11) sorted by relevance

/llvm-project-15.0.7/lld/COFF/
H A DICF.cpp42 ICF(COFFLinkerContext &c, ICFLevel icfLevel) : icfLevel(icfLevel), ctx(c){}; in ICF()
65 ICFLevel icfLevel = ICFLevel::All;
88 if ((icfLevel == ICFLevel::All) && in isEligible()
321 void doICF(COFFLinkerContext &ctx, ICFLevel icfLevel) { in doICF()
H A DConfig.h89 enum class ICFLevel { enum
111 ICFLevel doICF = ICFLevel::None;
H A DICF.h22 void doICF(COFFLinkerContext &ctx, ICFLevel);
H A DDriver.cpp1728 Optional<ICFLevel> icfLevel = None; in linkerMain()
1730 icfLevel = ICFLevel::None; in linkerMain()
1743 icfLevel = ICFLevel::All; in linkerMain()
1745 icfLevel = ICFLevel::Safe; in linkerMain()
1747 icfLevel = ICFLevel::None; in linkerMain()
1778 icfLevel = doGC ? ICFLevel::All : ICFLevel::None; in linkerMain()
1782 (tailMerge == 1 && config->doICF != ICFLevel::None) || tailMerge == 2; in linkerMain()
1891 !config->doGC && config->doICF == ICFLevel::None && in linkerMain()
1944 if (config->incremental && config->doICF != ICFLevel::None) { in linkerMain()
2421 if (config->doICF != ICFLevel::None) { in linkerMain()
/llvm-project-15.0.7/lld/MachO/
H A DConfig.h63 enum class ICFLevel { enum
166 ICFLevel icfLevel = ICFLevel::none;
H A DDriver.cpp769 static ICFLevel getICFLevel(const ArgList &args) { in getICFLevel()
771 auto icfLevel = StringSwitch<ICFLevel>(icfLevelStr) in getICFLevel()
772 .Cases("none", "", ICFLevel::none) in getICFLevel()
773 .Case("safe", ICFLevel::safe) in getICFLevel()
774 .Case("all", ICFLevel::all) in getICFLevel()
775 .Default(ICFLevel::unknown); in getICFLevel()
776 if (icfLevel == ICFLevel::unknown) { in getICFLevel()
779 icfLevel = ICFLevel::none; in getICFLevel()
1346 config->icfLevel != ICFLevel::none; in link()
1678 if (config->icfLevel != ICFLevel::none) { in link()
[all …]
H A DLTO.cpp37 c.Options.EmitAddrsig = config->icfLevel == ICFLevel::safe; in createConfig()
H A DInputFiles.cpp272 if (config->icfLevel == ICFLevel::none) in getRecordSize()
/llvm-project-15.0.7/lld/ELF/
H A DConfig.h59 enum class ICFLevel { None, Safe, All }; enum
269 ICFLevel icf;
H A DDriver.cpp349 if (config->icf != ICFLevel::None) in checkOptions()
731 static ICFLevel getICF(opt::InputArgList &args) { in getICF()
734 return ICFLevel::None; in getICF()
736 return ICFLevel::Safe; in getICF()
737 return ICFLevel::All; in getICF()
2021 if (config->icf == ICFLevel::Safe || !(d->section->flags & SHF_EXECINSTR)) in markAddrsig()
2042 if (config->icf == ICFLevel::All && config->ignoreDataAddressEquality) in findKeepUniqueSections()
2788 if (config->icf != ICFLevel::None) { in link()
H A DInputFiles.cpp540 else if (config->icf == ICFLevel::Safe) in initializeSections()