| /freebsd/contrib/llvm-project/llvm/lib/Support/ |
| H A D | PGOOptions.cpp | 14 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 D | NewPMDriver.cpp | 212 static cl::opt<PGOOptions::ColdFuncOpt> PGOColdFuncAttr( 213 "pgo-cold-func-opt", cl::init(PGOOptions::ColdFuncOpt::Default), cl::Hidden, 216 cl::values(clEnumValN(PGOOptions::ColdFuncOpt::Default, "default", 218 clEnumValN(PGOOptions::ColdFuncOpt::OptSize, "optsize", 220 clEnumValN(PGOOptions::ColdFuncOpt::MinSize, "minsize", 222 clEnumValN(PGOOptions::ColdFuncOpt::OptNone, "optnone", 361 std::optional<PGOOptions> P; in runPassPipeline() 364 P = PGOOptions(ProfileFile, "", "", MemoryProfileFile, FS, in runPassPipeline() 365 PGOOptions::IRInstr, PGOOptions::NoCSAction, in runPassPipeline() 369 P = PGOOptions(ProfileFile, "", ProfileRemappingFile, MemoryProfileFile, FS, in runPassPipeline() [all …]
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/Support/ |
| H A D | PGOOptions.h | 28 struct PGOOptions { struct 32 LLVM_ABI PGOOptions(std::string ProfileFile, std::string CSProfileGenFile, argument 42 LLVM_ABI PGOOptions(const PGOOptions &); 43 LLVM_ABI ~PGOOptions(); 44 LLVM_ABI PGOOptions &operator=(const PGOOptions &); argument
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/ |
| H A D | PGOForceFunctionAttrs.cpp | 35 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 D | BackendUtil.cpp | 108 static cl::opt<PGOOptions::ColdFuncOpt> ClPGOColdFuncAttr( 109 "pgo-cold-func-opt", cl::init(PGOOptions::ColdFuncOpt::Default), cl::Hidden, 112 cl::values(clEnumValN(PGOOptions::ColdFuncOpt::Default, "default", 114 clEnumValN(PGOOptions::ColdFuncOpt::OptSize, "optsize", 116 clEnumValN(PGOOptions::ColdFuncOpt::MinSize, "minsize", 118 clEnumValN(PGOOptions::ColdFuncOpt::OptNone, "optnone", 833 std::optional<PGOOptions> PGOOpt; in RunOptimizationPipeline() 837 PGOOpt = PGOOptions(getProfileGenName(CodeGenOpts), "", "", in RunOptimizationPipeline() 839 PGOOptions::IRInstr, PGOOptions::NoCSAction, in RunOptimizationPipeline() 845 auto CSAction = CodeGenOpts.hasProfileCSIRUse() ? PGOOptions::CSIRUse in RunOptimizationPipeline() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/LTO/ |
| H A D | LTOBackend.cpp | 244 std::optional<PGOOptions> PGOOpt; in runNewPMPasses() 246 PGOOpt = PGOOptions(Conf.SampleProfile, "", Conf.ProfileRemapping, in runNewPMPasses() 247 /*MemoryProfile=*/"", FS, PGOOptions::SampleUse, in runNewPMPasses() 248 PGOOptions::NoCSAction, in runNewPMPasses() 249 PGOOptions::ColdFuncOpt::Default, true); in runNewPMPasses() 251 PGOOpt = PGOOptions("", Conf.CSIRProfile, Conf.ProfileRemapping, in runNewPMPasses() 252 /*MemoryProfile=*/"", FS, PGOOptions::IRUse, in runNewPMPasses() 253 PGOOptions::CSIRInstr, PGOOptions::ColdFuncOpt::Default, in runNewPMPasses() 256 PGOOpt = PGOOptions(Conf.CSIRProfile, "", Conf.ProfileRemapping, in runNewPMPasses() 257 /*MemoryProfile=*/"", FS, PGOOptions::IRUse, in runNewPMPasses() [all …]
|
| H A D | ThinLTOCodeGenerator.cpp | 236 std::optional<PGOOptions> PGOOpt; in optimizeModule()
|
| /freebsd/contrib/llvm-project/llvm/lib/Passes/ |
| H A D | PassBuilderPipelines.cpp | 510 PGOOpt->Action != PGOOptions::SampleUse) in buildO1FunctionSimplificationPipeline() 624 if (PGOOpt && PGOOpt->Action == PGOOptions::IRUse && in buildFunctionSimplificationPipeline() 699 PGOOpt->Action != PGOOptions::SampleUse) in buildFunctionSimplificationPipeline() 931 if (isLTOPreLink(Phase) && PGOOpt && PGOOpt->Action == PGOOptions::SampleUse) in buildInlinerPipeline() 1028 if (isLTOPreLink(Phase) && PGOOpt && PGOOpt->Action == PGOOptions::SampleUse) in buildModuleInlinerPipeline() 1080 bool HasSampleProfile = PGOOpt && (PGOOpt->Action == PGOOptions::SampleUse); in buildModuleSimplificationPipeline() 1201 IsPGOPreLink && PGOOpt->Action == PGOOptions::IRInstr; in buildModuleSimplificationPipeline() 1203 IsPGOPreLink && PGOOpt->Action == PGOOptions::IRUse; in buildModuleSimplificationPipeline() 1263 if (IsPGOPreLink && PGOOpt->CSAction == PGOOptions::CSIRInstr) in buildModuleSimplificationPipeline() 1270 if (PGOOpt && (PGOOpt->Action == PGOOptions::IRUse || in buildModuleSimplificationPipeline() [all …]
|
| H A D | PassRegistry.def | 113 : PGOOptions::ColdFuncOpt::Default))
|
| H A D | PassBuilder.cpp | 479 std::optional<PGOOptions> PGOOpt, in PassBuilder()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Instrumentation/ |
| H A D | PGOForceFunctionAttrs.h | 19 PGOForceFunctionAttrsPass(PGOOptions::ColdFuncOpt ColdType) in PGOForceFunctionAttrsPass() 24 PGOOptions::ColdFuncOpt ColdType;
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/Target/ |
| H A D | TargetMachine.h | 121 std::optional<PGOOptions> PGOOption; 370 void setPGOOption(std::optional<PGOOptions> PGOOpt) { PGOOption = PGOOpt; } in setPGOOption() 371 const std::optional<PGOOptions> &getPGOOption() const { return PGOOption; } in getPGOOption()
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | TargetPassConfig.cpp | 344 const std::optional<PGOOptions> &PGOOpt = TM->getPGOOption(); in getFSProfileFile() 345 if (PGOOpt == std::nullopt || PGOOpt->Action != PGOOptions::SampleUse) in getFSProfileFile() 355 const std::optional<PGOOptions> &PGOOpt = TM->getPGOOption(); in getFSRemappingFile() 356 if (PGOOpt == std::nullopt || PGOOpt->Action != PGOOptions::SampleUse) in getFSRemappingFile()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/Passes/ |
| H A D | PassBuilder.h | 113 std::optional<PGOOptions> PGOOpt; 133 std::optional<PGOOptions> PGOOpt = std::nullopt,
|
| /freebsd/lib/clang/libllvm/ |
| H A D | Makefile | 1300 SRCS_MIN+= Support/PGOOptions.cpp
|