Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/lld/MachO/
H A DConfig.h67 enum class ICFLevel { enum
200 ICFLevel icfLevel = ICFLevel::none;
H A DICF.cpp411 if (config->icfLevel == ICFLevel::safe_thunks) in run()
436 if (config->icfLevel == ICFLevel::safe_thunks) in run()
445 bool useSafeThunks = config->icfLevel == ICFLevel::safe_thunks; in run()
578 ((config->icfLevel == ICFLevel::safe_thunks) && isCodeSec); in foldIdenticalSections()
H A DDriver.cpp840 static ICFLevel getICFLevel(const ArgList &args) { in getICFLevel()
842 auto icfLevel = StringSwitch<ICFLevel>(icfLevelStr) in getICFLevel()
843 .Cases("none", "", ICFLevel::none) in getICFLevel()
844 .Case("safe", ICFLevel::safe) in getICFLevel()
845 .Case("safe_thunks", ICFLevel::safe_thunks) in getICFLevel()
846 .Case("all", ICFLevel::all) in getICFLevel()
847 .Default(ICFLevel::unknown); in getICFLevel()
849 if ((icfLevel == ICFLevel::safe_thunks) && (config->arch() != AK_arm64)) { in getICFLevel()
853 if (icfLevel == ICFLevel::unknown) { in getICFLevel()
856 icfLevel = ICFLevel::none; in getICFLevel()
[all …]
H A DLTO.cpp42 c.Options.EmitAddrsig = config->icfLevel == ICFLevel::safe; in createConfig()
H A DInputFiles.cpp307 if (config->icfLevel == ICFLevel::none) in getRecordSize()
H A DSyntheticSections.cpp823 if (config->icfLevel == ICFLevel::none) in initialize()
/freebsd/contrib/llvm-project/lld/COFF/
H A DConfig.h100 enum class ICFLevel { enum
129 ICFLevel doICF = ICFLevel::None;
H A DDriver.cpp1931 std::optional<ICFLevel> icfLevel; in linkerMain()
1933 icfLevel = ICFLevel::None; in linkerMain()
1946 icfLevel = ICFLevel::All; in linkerMain()
1948 icfLevel = ICFLevel::Safe; in linkerMain()
1950 icfLevel = ICFLevel::None; in linkerMain()
1981 icfLevel = doGC ? ICFLevel::All : ICFLevel::None; in linkerMain()
1985 (tailMerge == 1 && config->doICF != ICFLevel::None) || tailMerge == 2; in linkerMain()
2143 !config->doGC && config->doICF == ICFLevel::None && in linkerMain()
2186 if (config->incremental && config->doICF != ICFLevel::None) { in linkerMain()
2809 if (config->doICF != ICFLevel::None) { in linkerMain()
H A DICF.cpp83 if ((ctx.config.doICF == ICFLevel::All) && in isEligible()
/freebsd/contrib/llvm-project/lld/ELF/
H A DConfig.h100 enum class ICFLevel { None, Safe, All }; enum
429 ICFLevel icf;
H A DDriver.cpp463 if (ctx.arg.icf != ICFLevel::None) in checkOptions()
870 static ICFLevel getICF(opt::InputArgList &args) { in getICF()
873 return ICFLevel::None; in getICF()
875 return ICFLevel::Safe; in getICF()
876 return ICFLevel::All; in getICF()
2564 if (ctx.arg.icf == ICFLevel::All && ctx.arg.ignoreDataAddressEquality) in findKeepUniqueSections()
2569 bool icfSafe = ctx.arg.icf == ICFLevel::Safe; in findKeepUniqueSections()
3484 if (ctx.arg.icf != ICFLevel::None) { in link()
H A DInputFiles.cpp767 else if (ctx.arg.icf == ICFLevel::Safe) in initializeSections()