Home
last modified time | relevance | path

Searched refs:OptimizationLevel (Results 1 – 25 of 41) sorted by relevance

12

/freebsd/contrib/llvm-project/llvm/lib/Passes/
H A DOptimizationLevel.cpp13 const OptimizationLevel OptimizationLevel::O0 = {
16 const OptimizationLevel OptimizationLevel::O1 = {
19 const OptimizationLevel OptimizationLevel::O2 = {
22 const OptimizationLevel OptimizationLevel::O3 = {
25 const OptimizationLevel OptimizationLevel::Os = {
28 const OptimizationLevel OptimizationLevel::Oz = {
H A DPassBuilderPipelines.cpp332 OptimizationLevel Level) { in invokePeepholeEPCallbacks()
337 LoopPassManager &LPM, OptimizationLevel Level) { in invokeLateLoopOptimizationsEPCallbacks()
342 OptimizationLevel Level) { in invokeLoopOptimizerEndEPCallbacks()
347 FunctionPassManager &FPM, OptimizationLevel Level) { in invokeScalarOptimizerLateEPCallbacks()
352 OptimizationLevel Level) { in invokeCGSCCOptimizerLateEPCallbacks()
357 OptimizationLevel Level) { in invokeVectorizerStartEPCallbacks()
362 OptimizationLevel Level) { in invokeOptimizerEarlyEPCallbacks()
367 OptimizationLevel Level) { in invokeOptimizerLastEPCallbacks()
372 ModulePassManager &MPM, OptimizationLevel Level) { in invokeFullLinkTimeOptimizationEarlyEPCallbacks()
377 ModulePassManager &MPM, OptimizationLevel Level) { in invokeFullLinkTimeOptimizationLastEPCallbacks()
[all …]
H A DPassBuilder.cpp556 static std::optional<OptimizationLevel> parseOptLevel(StringRef S) { in parseOptLevel()
557 return StringSwitch<std::optional<OptimizationLevel>>(S) in parseOptLevel()
558 .Case("O0", OptimizationLevel::O0) in parseOptLevel()
559 .Case("O1", OptimizationLevel::O1) in parseOptLevel()
560 .Case("O2", OptimizationLevel::O2) in parseOptLevel()
561 .Case("O3", OptimizationLevel::O3) in parseOptLevel()
562 .Case("Os", OptimizationLevel::Os) in parseOptLevel()
563 .Case("Oz", OptimizationLevel::Oz) in parseOptLevel()
637 std::optional<OptimizationLevel> OptLevel = parseOptLevel(ParamName); in parseLoopUnrollOptions()
1084 Expected<OptimizationLevel>
[all …]
H A DPassRegistry.def131 buildInlinerPipeline(OptimizationLevel::Oz,
502 [this](OptimizationLevel OL) {
/freebsd/contrib/llvm-project/llvm/include/llvm/Passes/
H A DPassBuilder.h195 buildFunctionSimplificationPipeline(OptimizationLevel Level,
213 ModulePassManager buildModuleSimplificationPipeline(OptimizationLevel Level,
218 ModuleInlinerWrapperPass buildInlinerPipeline(OptimizationLevel Level,
223 ModulePassManager buildModuleInlinerPipeline(OptimizationLevel Level,
240 buildModuleOptimizationPipeline(OptimizationLevel Level,
249 ModulePassManager buildPerModuleDefaultPipeline(OptimizationLevel Level,
257 ModulePassManager buildFatLTODefaultPipeline(OptimizationLevel Level,
267 ModulePassManager buildThinLTOPreLinkDefaultPipeline(OptimizationLevel Level);
276 buildThinLTODefaultPipeline(OptimizationLevel Level,
286 ModulePassManager buildLTOPreLinkDefaultPipeline(OptimizationLevel Level);
[all …]
H A DOptimizationLevel.h22 class OptimizationLevel final {
25 OptimizationLevel(unsigned SpeedLevel, unsigned SizeLevel) in OptimizationLevel() function
37 OptimizationLevel() = default;
41 static const OptimizationLevel O0;
57 static const OptimizationLevel O1;
74 static const OptimizationLevel O2;
89 static const OptimizationLevel O3;
100 static const OptimizationLevel Os;
108 static const OptimizationLevel Oz;
114 bool operator==(const OptimizationLevel &Other) const {
[all …]
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DBackendUtil.cpp565 CodeGenOpt::getLevel(CodeGenOpts.OptimizationLevel); in CreateTargetMachine()
594 if (CodeGenOpts.OptimizationLevel > 0) in AddEmitPasses()
606 static OptimizationLevel mapToLevel(const CodeGenOptions &Opts) { in mapToLevel()
607 switch (Opts.OptimizationLevel) { in mapToLevel()
612 return OptimizationLevel::O0; in mapToLevel()
615 return OptimizationLevel::O1; in mapToLevel()
623 return OptimizationLevel::O2; in mapToLevel()
626 return OptimizationLevel::Os; in mapToLevel()
629 return OptimizationLevel::Oz; in mapToLevel()
633 return OptimizationLevel::O3; in mapToLevel()
[all …]
H A DCodeGenTBAA.cpp280 if (CodeGenOpts.OptimizationLevel == 0 || CodeGenOpts.RelaxedAliasing) in getTypeInfo()
409 if (CodeGenOpts.OptimizationLevel == 0 || CodeGenOpts.RelaxedAliasing) in getTBAAStructInfo()
H A DCGVTables.cpp497 return CGM.getCodeGenOpts().OptimizationLevel && !IsUnprototyped; in shouldEmitVTableThunk()
1070 return CGM.getCodeGenOpts().OptimizationLevel > 0 && in shouldEmitAvailableExternallyVTable()
1108 (IsInNamedModule || def || CodeGenOpts.OptimizationLevel > 0 || in getVTableLinkage()
1112 if (IsExternalDefinition && CodeGenOpts.OptimizationLevel > 0) in getVTableLinkage()
H A DCGCXX.cpp40 if (getCodeGenOpts().OptimizationLevel == 0) in TryEmitBaseDestructorAsAlias()
H A DCGStmt.cpp863 CGM.getCodeGenOpts().OptimizationLevel) in EmitIfStmt()
1041 if (!Weights && CGM.getCodeGenOpts().OptimizationLevel) in EmitWhileStmt()
1256 if (!Weights && CGM.getCodeGenOpts().OptimizationLevel) in EmitForStmt()
1359 if (!Weights && CGM.getCodeGenOpts().OptimizationLevel) in EmitCXXForRangeStmt()
1742 CGM.getCodeGenOpts().OptimizationLevel > 0 && in EmitCaseStmt()
2204 } else if (CGM.getCodeGenOpts().OptimizationLevel) { in EmitSwitchStmt()
2256 if (Call && CGM.getCodeGenOpts().OptimizationLevel != 0) { in EmitSwitchStmt()
H A DCGClass.cpp1310 CGM.getCodeGenOpts().OptimizationLevel > 0 && in EmitCtorPrologue()
1327 CGM.getCodeGenOpts().OptimizationLevel > 0 && in EmitCtorPrologue()
1524 CGM.getCodeGenOpts().OptimizationLevel > 0) in EmitDestructorBody()
2264 if (CGM.getCodeGenOpts().OptimizationLevel > 0 && in EmitCXXConstructorCall()
2600 if (CGM.getCodeGenOpts().OptimizationLevel > 0 && in InitializeVTablePointer()
2719 if (CGM.getCodeGenOpts().OptimizationLevel > 0 && in GetVTablePtr()
H A DCGBlocks.cpp980 CGM.getCodeGenOpts().OptimizationLevel != 0) { in EmitBlockLiteral()
1047 CGM.getCodeGenOpts().OptimizationLevel != 0) { in EmitBlockLiteral()
1503 if (CGM.getCodeGenOpts().OptimizationLevel == 0) { in GenerateBlockFunction()
1961 if (CGM.getCodeGenOpts().OptimizationLevel == 0) { in GenerateCopyHelperFunction()
2208 if (CGF.CGM.getCodeGenOpts().OptimizationLevel == 0) { in emitCopy()
H A DCGHLSLRuntime.cpp173 if (CGM.getCodeGenOpts().OptimizationLevel == 0) in finishCodeGen()
H A DCodeGenFunction.cpp74 return CGOpts.OptimizationLevel != 0; in shouldEmitLifetimeMarkers()
1581 if (CGM.getCodeGenOpts().OptimizationLevel == 0) in GenerateCode()
2039 if (Call && CGM.getCodeGenOpts().OptimizationLevel != 0) { in EmitBranchOnBoolExpr()
3039 if (CGM.getCodeGenOpts().OptimizationLevel == 0) in emitCondLikelihoodViaExpectIntrinsic()
/freebsd/contrib/llvm-project/llvm/tools/opt/
H A DNewPMDriver.cpp256 [&PB](FunctionPassManager &PM, OptimizationLevel Level) { in registerEPCallbacks()
263 [&PB](LoopPassManager &PM, OptimizationLevel Level) { in registerEPCallbacks()
269 [&PB](LoopPassManager &PM, OptimizationLevel Level) { in registerEPCallbacks()
276 [&PB](FunctionPassManager &PM, OptimizationLevel Level) { in registerEPCallbacks()
282 [&PB](CGSCCPassManager &PM, OptimizationLevel Level) { in registerEPCallbacks()
288 [&PB](FunctionPassManager &PM, OptimizationLevel Level) { in registerEPCallbacks()
294 [&PB](ModulePassManager &PM, OptimizationLevel) { in registerEPCallbacks() argument
301 [&PB](ModulePassManager &PM, OptimizationLevel) { in registerEPCallbacks() argument
307 [&PB](ModulePassManager &PM, OptimizationLevel) { in registerEPCallbacks() argument
313 [&PB](ModulePassManager &PM, OptimizationLevel) { in registerEPCallbacks() argument
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/BPF/
H A DBPFTargetMachine.cpp121 [=](ModulePassManager &MPM, OptimizationLevel) { in registerPassBuilderCallbacks() argument
130 OptimizationLevel Level) { in registerPassBuilderCallbacks()
135 [=](FunctionPassManager &FPM, OptimizationLevel Level) { in registerPassBuilderCallbacks()
141 [=](ModulePassManager &MPM, OptimizationLevel) { in registerPassBuilderCallbacks() argument
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUTargetMachine.cpp670 [](ModulePassManager &PM, OptimizationLevel Level) { in registerPassBuilderCallbacks()
678 [](ModulePassManager &PM, OptimizationLevel Level) { in registerPassBuilderCallbacks()
681 if (Level == OptimizationLevel::O0) in registerPassBuilderCallbacks()
696 [](FunctionPassManager &FPM, OptimizationLevel Level) { in registerPassBuilderCallbacks()
697 if (Level == OptimizationLevel::O0) in registerPassBuilderCallbacks()
706 [this](CGSCCPassManager &PM, OptimizationLevel Level) { in registerPassBuilderCallbacks()
707 if (Level == OptimizationLevel::O0) in registerPassBuilderCallbacks()
715 if (Level.getSpeedupLevel() > OptimizationLevel::O1.getSpeedupLevel() && in registerPassBuilderCallbacks()
727 if (Level != OptimizationLevel::O0) { in registerPassBuilderCallbacks()
739 [this](ModulePassManager &MPM, OptimizationLevel Level) { in registerPassBuilderCallbacks()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/IPO/
H A DExpandVariadics.h17 class OptimizationLevel; variable
/freebsd/contrib/llvm-project/llvm/lib/LTO/
H A DLTOBackend.cpp304 OptimizationLevel OL; in runNewPMPasses()
310 OL = OptimizationLevel::O0; in runNewPMPasses()
313 OL = OptimizationLevel::O1; in runNewPMPasses()
316 OL = OptimizationLevel::O2; in runNewPMPasses()
319 OL = OptimizationLevel::O3; in runNewPMPasses()
H A DThinLTOCodeGenerator.cpp272 OptimizationLevel OL; in optimizeModule()
278 OL = OptimizationLevel::O0; in optimizeModule()
281 OL = OptimizationLevel::O1; in optimizeModule()
284 OL = OptimizationLevel::O2; in optimizeModule()
287 OL = OptimizationLevel::O3; in optimizeModule()
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonTargetMachine.cpp320 [=](LoopPassManager &LPM, OptimizationLevel Level) { in registerPassBuilderCallbacks()
324 [=](LoopPassManager &LPM, OptimizationLevel Level) { in registerPassBuilderCallbacks()
/freebsd/contrib/llvm-project/clang/lib/Frontend/
H A DCompilerInvocation.cpp1530 if (Opts.OptimizationLevel == 0) in GenerateCodeGenArgs()
1533 GenerateArg(Consumer, OPT_O, Twine(Opts.OptimizationLevel)); in GenerateCodeGenArgs()
1540 if (Opts.OptimizationLevel > 0) { in GenerateCodeGenArgs()
1605 if (Opts.UnrollLoops && Opts.OptimizationLevel <= 1) in GenerateCodeGenArgs()
1607 else if (!Opts.UnrollLoops && Opts.OptimizationLevel > 1) in GenerateCodeGenArgs()
1777 unsigned OptimizationLevel = getOptimizationLevel(Args, IK, Diags); in ParseCodeGenArgs() local
1780 if (OptimizationLevel > MaxOptLevel) { in ParseCodeGenArgs()
1785 OptimizationLevel = MaxOptLevel; in ParseCodeGenArgs()
1787 Opts.OptimizationLevel = OptimizationLevel; in ParseCodeGenArgs()
1803 if (Opts.OptimizationLevel == 0) { in ParseCodeGenArgs()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/NVPTX/
H A DNVPTXTargetMachine.cpp233 [this](ModulePassManager &PM, OptimizationLevel Level) { in registerPassBuilderCallbacks()
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVTargetMachine.cpp581 OptimizationLevel Level) { in registerPassBuilderCallbacks()

12