Home
last modified time | relevance | path

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

123

/external/llvm-project/llvm/include/llvm/Passes/
DPassBuilder.h171 class OptimizationLevel final {
174 OptimizationLevel(unsigned SpeedLevel, unsigned SizeLevel) in OptimizationLevel() function
186 OptimizationLevel() = default;
190 static const OptimizationLevel O0;
206 static const OptimizationLevel O1;
223 static const OptimizationLevel O2;
238 static const OptimizationLevel O3;
249 static const OptimizationLevel Os;
257 static const OptimizationLevel Oz;
265 bool operator==(const OptimizationLevel &Other) const {
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Passes/
DPassBuilder.h146 enum OptimizationLevel { enum
285 buildFunctionSimplificationPipeline(OptimizationLevel Level,
305 buildModuleSimplificationPipeline(OptimizationLevel Level,
322 ModulePassManager buildModuleOptimizationPipeline(OptimizationLevel Level,
337 ModulePassManager buildPerModuleDefaultPipeline(OptimizationLevel Level,
354 buildThinLTOPreLinkDefaultPipeline(OptimizationLevel Level,
369 buildThinLTODefaultPipeline(OptimizationLevel Level, bool DebugLogging,
384 ModulePassManager buildLTOPreLinkDefaultPipeline(OptimizationLevel Level,
398 ModulePassManager buildLTODefaultPipeline(OptimizationLevel Level,
481 const std::function<void(FunctionPassManager &, OptimizationLevel)> &C) { in registerPeepholeEPCallback()
[all …]
/external/llvm-project/llvm/lib/Passes/
DPassBuilder.cpp308 const PassBuilder::OptimizationLevel PassBuilder::OptimizationLevel::O0 = {
311 const PassBuilder::OptimizationLevel PassBuilder::OptimizationLevel::O1 = {
314 const PassBuilder::OptimizationLevel PassBuilder::OptimizationLevel::O2 = {
317 const PassBuilder::OptimizationLevel PassBuilder::OptimizationLevel::O3 = {
320 const PassBuilder::OptimizationLevel PassBuilder::OptimizationLevel::Os = {
323 const PassBuilder::OptimizationLevel PassBuilder::OptimizationLevel::Oz = {
469 FunctionPassManager &FPM, PassBuilder::OptimizationLevel Level) { in invokePeepholeEPCallbacks()
519 PassBuilder::buildO1FunctionSimplificationPipeline(OptimizationLevel Level, in buildO1FunctionSimplificationPipeline()
645 PassBuilder::buildFunctionSimplificationPipeline(OptimizationLevel Level, in buildFunctionSimplificationPipeline()
647 assert(Level != OptimizationLevel::O0 && "Must request optimizations!"); in buildFunctionSimplificationPipeline()
[all …]
DPassRegistry.def102 buildInlinerPipeline(OptimizationLevel::Oz, ThinLTOPhase::None,
106 buildModuleOptimizationPipeline(OptimizationLevel::Oz, /*LTOPreLink*/false))
/external/llvm/include/llvm/Passes/
DPassBuilder.h42 enum OptimizationLevel { enum
173 OptimizationLevel Level,
184 OptimizationLevel Level,
193 void addLTODefaultPipeline(ModulePassManager &MPM, OptimizationLevel Level,
/external/llvm-project/llvm/tools/opt/
DNewPMDriver.cpp160 [&PB](FunctionPassManager &PM, PassBuilder::OptimizationLevel Level) { in registerEPCallbacks()
167 [&PB](LoopPassManager &PM, PassBuilder::OptimizationLevel Level) { in registerEPCallbacks()
173 [&PB](LoopPassManager &PM, PassBuilder::OptimizationLevel Level) { in registerEPCallbacks()
180 [&PB](FunctionPassManager &PM, PassBuilder::OptimizationLevel Level) { in registerEPCallbacks()
186 [&PB](CGSCCPassManager &PM, PassBuilder::OptimizationLevel Level) { in registerEPCallbacks()
192 [&PB](FunctionPassManager &PM, PassBuilder::OptimizationLevel Level) { in registerEPCallbacks()
198 [&PB](ModulePassManager &PM, PassBuilder::OptimizationLevel) { in registerEPCallbacks() argument
205 [&PB](ModulePassManager &PM, PassBuilder::OptimizationLevel) { in registerEPCallbacks() argument
211 [&PB](ModulePassManager &PM, PassBuilder::OptimizationLevel) { in registerEPCallbacks() argument
/external/llvm-project/clang/lib/CodeGen/
DBackendUtil.cpp409 switch (CodeGenOpts.OptimizationLevel) { in getCGOptLevel()
646 if (CodeGenOpts.OptimizationLevel <= 1) { in CreatePasses()
647 bool InsertLifetimeIntrinsics = ((CodeGenOpts.OptimizationLevel != 0 && in CreatePasses()
656 CodeGenOpts.OptimizationLevel, CodeGenOpts.OptimizeSize, in CreatePasses()
661 PMBuilder.OptLevel = CodeGenOpts.OptimizationLevel; in CreatePasses()
896 if (CodeGenOpts.OptimizationLevel > 0) in AddEmitPasses()
1026 static PassBuilder::OptimizationLevel mapToLevel(const CodeGenOptions &Opts) { in mapToLevel()
1027 switch (Opts.OptimizationLevel) { in mapToLevel()
1032 return PassBuilder::OptimizationLevel::O0; in mapToLevel()
1035 return PassBuilder::OptimizationLevel::O1; in mapToLevel()
[all …]
DCGVTables.cpp485 return CGM.getCodeGenOpts().OptimizationLevel && !IsUnprototyped; in shouldEmitVTableThunk()
1000 return CGM.getCodeGenOpts().OptimizationLevel > 0 && in shouldEmitAvailableExternallyVTable()
1025 assert((def || CodeGenOpts.OptimizationLevel > 0 || in getVTableLinkage()
1029 if (!def && CodeGenOpts.OptimizationLevel > 0) in getVTableLinkage()
DCGCXX.cpp40 if (getCodeGenOpts().OptimizationLevel == 0) in TryEmitBaseDestructorAsAlias()
DCGClass.cpp1317 CGM.getCodeGenOpts().OptimizationLevel > 0 && in EmitCtorPrologue()
1334 CGM.getCodeGenOpts().OptimizationLevel > 0 && in EmitCtorPrologue()
1526 CGM.getCodeGenOpts().OptimizationLevel > 0) in EmitDestructorBody()
2198 if (CGM.getCodeGenOpts().OptimizationLevel > 0 && in EmitCXXConstructorCall()
2529 if (CGM.getCodeGenOpts().OptimizationLevel > 0 && in InitializeVTablePointer()
2625 if (CGM.getCodeGenOpts().OptimizationLevel > 0 && in GetVTablePtr()
DCodeGenTBAA.cpp227 if (CodeGenOpts.OptimizationLevel == 0 || CodeGenOpts.RelaxedAliasing) in getTypeInfo()
/external/llvm-project/llvm/lib/Target/BPF/
DBPFTargetMachine.cpp129 [=](ModulePassManager &MPM, PassBuilder::OptimizationLevel) { in registerPassBuilderCallbacks() argument
136 PassBuilder::OptimizationLevel Level) { in registerPassBuilderCallbacks()
140 [=](ModulePassManager &MPM, PassBuilder::OptimizationLevel) { in registerPassBuilderCallbacks() argument
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Passes/
DPassBuilder.cpp247 static bool isOptimizingForSize(PassBuilder::OptimizationLevel Level) { in isOptimizingForSize()
354 FunctionPassManager &FPM, PassBuilder::OptimizationLevel Level) { in invokePeepholeEPCallbacks()
396 PassBuilder::buildFunctionSimplificationPipeline(OptimizationLevel Level, in buildFunctionSimplificationPipeline()
571 PassBuilder::OptimizationLevel Level, in addPGOInstrPasses()
665 getInlineParamsFromOptLevel(PassBuilder::OptimizationLevel Level) { in getInlineParamsFromOptLevel()
673 PassBuilder::buildModuleSimplificationPipeline(OptimizationLevel Level, in buildModuleSimplificationPipeline()
858 OptimizationLevel Level, bool DebugLogging, bool LTOPreLink) { in buildModuleOptimizationPipeline()
1042 PassBuilder::buildPerModuleDefaultPipeline(OptimizationLevel Level, in buildPerModuleDefaultPipeline()
1069 PassBuilder::buildThinLTOPreLinkDefaultPipeline(OptimizationLevel Level, in buildThinLTOPreLinkDefaultPipeline()
1108 OptimizationLevel Level, bool DebugLogging, in buildThinLTODefaultPipeline()
[all …]
/external/llvm/lib/Passes/
DPassBuilder.cpp235 OptimizationLevel Level, in addPerModuleDefaultPipeline()
248 OptimizationLevel Level, in addLTOPreLinkDefaultPipeline()
255 OptimizationLevel Level, in addLTODefaultPipeline()
328 auto L = StringSwitch<OptimizationLevel>(Matches[2]) in parseModulePassName()
/external/llvm-project/llvm/lib/LTO/
DLTOBackend.cpp256 PassBuilder::OptimizationLevel OL; in runNewPMPasses()
262 OL = PassBuilder::OptimizationLevel::O0; in runNewPMPasses()
265 OL = PassBuilder::OptimizationLevel::O1; in runNewPMPasses()
268 OL = PassBuilder::OptimizationLevel::O2; in runNewPMPasses()
271 OL = PassBuilder::OptimizationLevel::O3; in runNewPMPasses()
/external/llvm-project/llvm/examples/Bye/
DBye.cpp58 llvm::PassBuilder::OptimizationLevel Level) { in getByePluginInfo()
/external/swiftshader/third_party/subzero/src/
DIceCfg.h46 OptLevel getOptLevel() const { return OptimizationLevel; } in getOptLevel()
302 OptLevel OptimizationLevel = Opt_m1; variable
/external/llvm-project/llvm/lib/Target/Hexagon/
DHexagonTargetMachine.cpp281 [=](LoopPassManager &LPM, PassBuilder::OptimizationLevel Level) { in registerPassBuilderCallbacks()
285 [=](ModulePassManager &MPM, PassBuilder::OptimizationLevel Level) { in registerPassBuilderCallbacks()
/external/clang/lib/CodeGen/
DCGVTables.cpp492 !CGM.getCodeGenOpts().OptimizationLevel) in maybeEmitThunkForVTable()
719 return CGM.getCodeGenOpts().OptimizationLevel > 0 && in shouldEmitAvailableExternallyVTable()
744 assert((def || CodeGenOpts.OptimizationLevel > 0) && in getVTableLinkage()
747 if (!def && CodeGenOpts.OptimizationLevel > 0) in getVTableLinkage()
DBackendUtil.cpp318 unsigned OptLevel = CodeGenOpts.OptimizationLevel; in CreatePasses()
563 switch (CodeGenOpts.OptimizationLevel) { in CreateTargetMachine()
672 if (CodeGenOpts.OptimizationLevel > 0) in AddEmitPasses()
DCGCXX.cpp40 if (getCodeGenOpts().OptimizationLevel == 0) in TryEmitBaseDestructorAsAlias()
DCodeGenTBAA.cpp94 if (CodeGenOpts.OptimizationLevel == 0 || CodeGenOpts.RelaxedAliasing) in getTBAAInfo()
DCGClass.cpp1377 CGM.getCodeGenOpts().OptimizationLevel > 0 && in EmitCtorPrologue()
1394 CGM.getCodeGenOpts().OptimizationLevel > 0 && in EmitCtorPrologue()
1568 CGM.getCodeGenOpts().OptimizationLevel > 0) in EmitDestructorBody()
2165 if (CGM.getCodeGenOpts().OptimizationLevel > 0 && in EmitCXXConstructorCall()
2475 if (CGM.getCodeGenOpts().OptimizationLevel > 0 && in InitializeVTablePointer()
2570 if (CGM.getCodeGenOpts().OptimizationLevel > 0 && in GetVTablePtr()
/external/clang/lib/Frontend/
DCompilerInvocation.cpp427 unsigned OptimizationLevel = getOptimizationLevel(Args, IK, Diags); in ParseCodeGenArgs() local
430 if (OptimizationLevel > MaxOptLevel) { in ParseCodeGenArgs()
435 OptimizationLevel = MaxOptLevel; in ParseCodeGenArgs()
437 Opts.OptimizationLevel = OptimizationLevel; in ParseCodeGenArgs()
441 (Opts.OptimizationLevel > 1) ? CodeGenOptions::NormalInlining in ParseCodeGenArgs()
527 (Opts.OptimizationLevel > 1)); in ParseCodeGenArgs()
/external/llvm-project/clang/lib/Frontend/
DCompilerInvocation.cpp819 unsigned OptimizationLevel = getOptimizationLevel(Args, IK, Diags); in ParseCodeGenArgs() local
822 if (OptimizationLevel > MaxOptLevel) { in ParseCodeGenArgs()
827 OptimizationLevel = MaxOptLevel; in ParseCodeGenArgs()
829 Opts.OptimizationLevel = OptimizationLevel; in ParseCodeGenArgs()
833 Opts.setInlining((Opts.OptimizationLevel == 0) in ParseCodeGenArgs()
841 if (Opts.OptimizationLevel > 0) { in ParseCodeGenArgs()
944 if (Opts.OptimizationLevel > 0 && Opts.hasReducedDebugInfo() && in ParseCodeGenArgs()
979 (Opts.OptimizationLevel > 1)); in ParseCodeGenArgs()

123