Home
last modified time | relevance | path

Searched refs:PGOOptions (Results 1 – 15 of 15) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DPGOOptions.cpp14 PGOOptions::PGOOptions(std::string ProfileFile, std::string CSProfileGenFile, in PGOOptions() function in PGOOptions
43 assert(this->MemoryProfile.empty() || this->Action != PGOOptions::IRInstr); in PGOOptions()
56 PGOOptions::PGOOptions(const PGOOptions &) = default;
58 PGOOptions &PGOOptions::operator=(const PGOOptions &O) = default;
60 PGOOptions::~PGOOptions() = default;
/freebsd/contrib/llvm-project/llvm/tools/opt/
H A DNewPMDriver.cpp205 static cl::opt<PGOOptions::ColdFuncOpt> PGOColdFuncAttr(
206 "pgo-cold-func-opt", cl::init(PGOOptions::ColdFuncOpt::Default), cl::Hidden,
209 cl::values(clEnumValN(PGOOptions::ColdFuncOpt::Default, "default",
211 clEnumValN(PGOOptions::ColdFuncOpt::OptSize, "optsize",
213 clEnumValN(PGOOptions::ColdFuncOpt::MinSize, "minsize",
215 clEnumValN(PGOOptions::ColdFuncOpt::OptNone, "optnone",
353 std::optional<PGOOptions> P; in runPassPipeline()
356 P = PGOOptions(ProfileFile, "", "", MemoryProfileFile, FS, in runPassPipeline()
357 PGOOptions::IRInstr, PGOOptions::NoCSAction, in runPassPipeline()
361 P = PGOOptions(ProfileFile, "", ProfileRemappingFile, MemoryProfileFile, FS, in runPassPipeline()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/
H A DPGOOptions.h27 struct PGOOptions { struct
31 PGOOptions(std::string ProfileFile, std::string CSProfileGenFile, argument
39 PGOOptions(const PGOOptions &);
40 ~PGOOptions();
41 PGOOptions &operator=(const PGOOptions &); argument
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DPGOForceFunctionAttrs.cpp35 if (ColdType == PGOOptions::ColdFuncOpt::Default) in run()
45 case PGOOptions::ColdFuncOpt::Default: in run()
48 case PGOOptions::ColdFuncOpt::OptSize: in run()
51 case PGOOptions::ColdFuncOpt::MinSize: in run()
54 case PGOOptions::ColdFuncOpt::OptNone: in run()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DBackendUtil.cpp109 static cl::opt<PGOOptions::ColdFuncOpt> ClPGOColdFuncAttr(
110 "pgo-cold-func-opt", cl::init(PGOOptions::ColdFuncOpt::Default), cl::Hidden,
113 cl::values(clEnumValN(PGOOptions::ColdFuncOpt::Default, "default",
115 clEnumValN(PGOOptions::ColdFuncOpt::OptSize, "optsize",
117 clEnumValN(PGOOptions::ColdFuncOpt::MinSize, "minsize",
119 clEnumValN(PGOOptions::ColdFuncOpt::OptNone, "optnone",
778 std::optional<PGOOptions> PGOOpt; in RunOptimizationPipeline()
782 PGOOpt = PGOOptions( in RunOptimizationPipeline()
785 "", "", CodeGenOpts.MemoryProfileUsePath, nullptr, PGOOptions::IRInstr, in RunOptimizationPipeline()
786 PGOOptions::NoCSAction, ClPGOColdFuncAttr, in RunOptimizationPipeline()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/LTO/
H A DLTOBackend.cpp238 std::optional<PGOOptions> PGOOpt; in runNewPMPasses()
240 PGOOpt = PGOOptions(Conf.SampleProfile, "", Conf.ProfileRemapping, in runNewPMPasses()
241 /*MemoryProfile=*/"", FS, PGOOptions::SampleUse, in runNewPMPasses()
242 PGOOptions::NoCSAction, in runNewPMPasses()
243 PGOOptions::ColdFuncOpt::Default, true); in runNewPMPasses()
245 PGOOpt = PGOOptions("", Conf.CSIRProfile, Conf.ProfileRemapping, in runNewPMPasses()
246 /*MemoryProfile=*/"", FS, PGOOptions::IRUse, in runNewPMPasses()
247 PGOOptions::CSIRInstr, PGOOptions::ColdFuncOpt::Default, in runNewPMPasses()
250 PGOOpt = PGOOptions(Conf.CSIRProfile, "", Conf.ProfileRemapping, in runNewPMPasses()
251 /*MemoryProfile=*/"", FS, PGOOptions::IRUse, in runNewPMPasses()
[all …]
H A DThinLTOCodeGenerator.cpp243 std::optional<PGOOptions> PGOOpt; in optimizeModule()
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Instrumentation/
H A DPGOForceFunctionAttrs.h19 PGOForceFunctionAttrsPass(PGOOptions::ColdFuncOpt ColdType) in PGOForceFunctionAttrsPass()
24 PGOOptions::ColdFuncOpt ColdType;
/freebsd/contrib/llvm-project/llvm/lib/Passes/
H A DPassBuilderPipelines.cpp488 PGOOpt->Action != PGOOptions::SampleUse) in buildO1FunctionSimplificationPipeline()
602 if (PGOOpt && PGOOpt->Action == PGOOptions::IRUse && in buildFunctionSimplificationPipeline()
679 PGOOpt->Action != PGOOptions::SampleUse) in buildFunctionSimplificationPipeline()
909 PGOOpt->Action == PGOOptions::SampleUse) in buildInlinerPipeline()
1003 PGOOpt->Action == PGOOptions::SampleUse) in buildModuleInlinerPipeline()
1046 bool HasSampleProfile = PGOOpt && (PGOOpt->Action == PGOOptions::SampleUse); in buildModuleSimplificationPipeline()
1163 IsPGOPreLink && PGOOpt->Action == PGOOptions::IRInstr; in buildModuleSimplificationPipeline()
1165 IsPGOPreLink && PGOOpt->Action == PGOOptions::IRUse; in buildModuleSimplificationPipeline()
1196 if (IsPGOPreLink && PGOOpt->CSAction == PGOOptions::CSIRInstr) in buildModuleSimplificationPipeline()
1411 if (PGOOpt->CSAction == PGOOptions::CSIRInstr) in buildModuleOptimizationPipeline()
[all …]
H A DPassRegistry.def89 …ction-attrs", PGOForceFunctionAttrsPass(PGOOpt ? PGOOpt->ColdOptType : PGOOptions::ColdFuncOpt::De…
H A DPassBuilder.cpp426 std::optional<PGOOptions> PGOOpt, in PassBuilder()
/freebsd/contrib/llvm-project/llvm/include/llvm/Target/
H A DTargetMachine.h115 std::optional<PGOOptions> PGOOption;
334 void setPGOOption(std::optional<PGOOptions> PGOOpt) { PGOOption = PGOOpt; } in setPGOOption()
335 const std::optional<PGOOptions> &getPGOOption() const { return PGOOption; } in getPGOOption()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DTargetPassConfig.cpp336 const std::optional<PGOOptions> &PGOOpt = TM->getPGOOption(); in getFSProfileFile()
337 if (PGOOpt == std::nullopt || PGOOpt->Action != PGOOptions::SampleUse) in getFSProfileFile()
347 const std::optional<PGOOptions> &PGOOpt = TM->getPGOOption(); in getFSRemappingFile()
348 if (PGOOpt == std::nullopt || PGOOpt->Action != PGOOptions::SampleUse) in getFSRemappingFile()
/freebsd/contrib/llvm-project/llvm/include/llvm/Passes/
H A DPassBuilder.h109 std::optional<PGOOptions> PGOOpt;
128 std::optional<PGOOptions> PGOOpt = std::nullopt,
/freebsd/lib/clang/libllvm/
H A DMakefile1170 SRCS_MIN+= Support/PGOOptions.cpp