/llvm-project/llvm/include/llvm/Transforms/Scalar/ |
H A D | LoopUnrollPass.h | 27 const int OptLevel; variable 40 explicit LoopFullUnrollPass(int OptLevel = 2, bool OnlyWhenForced = false, 42 : OptLevel(OptLevel), OnlyWhenForced(OnlyWhenForced), in OptLevel() function 68 int OptLevel; member 80 LoopUnrollOptions(int OptLevel = 2, bool OnlyWhenForced = false, 82 : OptLevel(OptLevel), OnlyWhenForced(OnlyWhenForced), in OptLevel() function 113 OptLevel = O; in setOptLevel()
|
H A D | LoopUnrollAndJamPass.h | 21 const int OptLevel; variable 24 explicit LoopUnrollAndJamPass(int OptLevel = 2) : OptLevel(OptLevel) {} in OptLevel() argument
|
/llvm-project/llvm/lib/CodeGen/ |
H A D | DwarfEHPrepare.cpp | 57 CodeGenOptLevel OptLevel; 84 : OptLevel(OptLevel_), F(F_), TLI(TLI_), DTU(DTU_), TTI(TTI_), in DwarfEHPrepare() 198 if (OptLevel != CodeGenOptLevel::None) { in InsertUnwindResumeCalls() 320 static bool prepareDwarfEH(CodeGenOptLevel OptLevel, Function &F, in prepareDwarfEH() 326 return DwarfEHPrepare(OptLevel, F, TLI, DT ? &DTU : nullptr, TTI, 335 CodeGenOptLevel OptLevel; in DwarfEHPrepareLegacyPass() 340 DwarfEHPrepareLegacyPass(CodeGenOptLevel OptLevel = CodeGenOptLevel::Default) in runOnFunction() 341 : FunctionPass(ID), OptLevel(OptLevel) {} in runOnFunction() 351 if (OptLevel ! in runOnFunction() 58 CodeGenOptLevel OptLevel; global() member in __anonaed569170111::DwarfEHPrepare 314 prepareDwarfEH(CodeGenOptLevel OptLevel,Function & F,const TargetLowering & TLI,DominatorTree * DT,const TargetTransformInfo * TTI,const Triple & TargetTriple) prepareDwarfEH() argument 329 CodeGenOptLevel OptLevel; global() member in __anonaed569170211::DwarfEHPrepareLegacyPass 334 DwarfEHPrepareLegacyPass(CodeGenOptLevel OptLevel=CodeGenOptLevel::Default) DwarfEHPrepareLegacyPass() argument 375 auto OptLevel = TM->getOptLevel(); run() local [all...] |
/llvm-project/llvm/include/llvm/CodeGen/ |
H A D | SchedulerRegistry.h | 64 CodeGenOptLevel OptLevel); 69 CodeGenOptLevel OptLevel); 88 CodeGenOptLevel OptLevel); 94 CodeGenOptLevel OptLevel); 98 CodeGenOptLevel OptLevel); 103 CodeGenOptLevel OptLevel);
|
/llvm-project/llvm/lib/Target/Xtensa/ |
H A D | XtensaISelDAGToDAG.cpp | 33 explicit XtensaDAGToDAGISel(XtensaTargetMachine &TM, CodeGenOptLevel OptLevel) 34 : SelectionDAGISel(TM, OptLevel) {} 120 XtensaDAGToDAGISelLegacy(XtensaTargetMachine &TM, CodeGenOptLevel OptLevel) 122 ID, std::make_unique<XtensaDAGToDAGISel>(TM, OptLevel)) {} in createXtensaISelDag() argument 133 CodeGenOptLevel OptLevel) { in Select() 134 return new XtensaDAGToDAGISelLegacy(TM, OptLevel); in Select() 31 XtensaDAGToDAGISel(XtensaTargetMachine & TM,CodeGenOptLevel OptLevel) XtensaDAGToDAGISel() argument 109 XtensaDAGToDAGISelLegacy(XtensaTargetMachine & TM,CodeGenOptLevel OptLevel) XtensaDAGToDAGISelLegacy() argument
|
/llvm-project/offload/plugins-nextgen/common/src/ |
H A D | JIT.cpp | 78 OptimizationLevel getOptLevel(unsigned OptLevel) { in getOptLevel() argument 79 switch (OptLevel) { in getOptLevel() 93 createTargetMachine(Module &M, std::string CPU, unsigned OptLevel) { in createTargetMachine() argument 96 CodeGenOpt::getLevel(OptLevel); in createTargetMachine() 149 unsigned OptLevel) { in opt() argument 170 MPM.addPass(PB.buildPerModuleDefaultPipeline(getOptLevel(OptLevel))); in opt() 189 unsigned OptLevel) { in backend() 199 auto TMOrErr = createTargetMachine(M, ComputeUnitKind, OptLevel); in backend() 217 opt(TM.get(), &TLII, M, OptLevel); in backend() 190 backend(Module & M,const std::string & ComputeUnitKind,unsigned OptLevel) backend() argument
|
/llvm-project/llvm/lib/Target/ARC/ |
H A D | ARCISelDAGToDAG.cpp | 46 ARCDAGToDAGISel(ARCTargetMachine &TM, CodeGenOptLevel OptLevel) in ARCDAGToDAGISel() argument 47 : SelectionDAGISel(TM, OptLevel) {} in ARCDAGToDAGISel() 64 explicit ARCDAGToDAGISelLegacy(ARCTargetMachine &TM, CodeGenOptLevel OptLevel) in ARCDAGToDAGISelLegacy() argument 66 ID, std::make_unique<ARCDAGToDAGISel>(TM, OptLevel)) {} in ARCDAGToDAGISelLegacy() 78 CodeGenOptLevel OptLevel) { in INITIALIZE_PASS() 79 return new ARCDAGToDAGISelLegacy(TM, OptLevel); in INITIALIZE_PASS()
|
/llvm-project/llvm/lib/Target/AMDGPU/ |
H A D | R600ISelDAGToDAG.cpp | 35 explicit R600DAGToDAGISel(TargetMachine &TM, CodeGenOptLevel OptLevel) 36 : AMDGPUDAGToDAGISel(TM, OptLevel) {} 57 explicit R600DAGToDAGISelLegacy(TargetMachine &TM, CodeGenOptLevel OptLevel) in R600DAGToDAGISelLegacy() 59 ID, std::make_unique<R600DAGToDAGISel>(TM, OptLevel)) {} 200 CodeGenOptLevel OptLevel) { 201 return new R600DAGToDAGISelLegacy(TM, OptLevel); 33 R600DAGToDAGISel(TargetMachine & TM,CodeGenOptLevel OptLevel) R600DAGToDAGISel() argument 55 R600DAGToDAGISelLegacy(TargetMachine & TM,CodeGenOptLevel OptLevel) R600DAGToDAGISelLegacy() argument 197 createR600ISelDag(TargetMachine & TM,CodeGenOptLevel OptLevel) createR600ISelDag() argument
|
/llvm-project/llvm/lib/CodeGen/GlobalISel/ |
H A D | InstructionSelect.cpp | 67 : MachineFunctionPass(PassID), OptLevel(OL) {} 126 if (OptLevel != CodeGenOptLevel::None) { in runOnMachineFunction() 143 // FIXME: Properly override OptLevel in TargetMachine. See OptLevelChanger in runOnMachineFunction() 144 CodeGenOptLevel OldOptLevel = OptLevel; in runOnMachineFunction() 145 auto RestoreOptLevel = make_scope_exit([=]() { OptLevel = OldOptLevel; }); in runOnMachineFunction() 146 OptLevel = MF.getFunction().hasOptNone() ? CodeGenOptLevel::None in runOnMachineFunction() 150 if (OptLevel != CodeGenOptLevel::None) { in runOnMachineFunction()
|
/llvm-project/llvm/include/llvm/ExecutionEngine/Orc/ |
H A D | JITTargetMachineBuilder.h | 102 JITTargetMachineBuilder &setCodeGenOptLevel(CodeGenOptLevel OptLevel) { in setCodeGenOptLevel() argument 103 this->OptLevel = OptLevel; in setCodeGenOptLevel() 153 CodeGenOptLevel OptLevel = CodeGenOptLevel::Default; variable
|
/llvm-project/llvm/lib/Target/Lanai/ |
H A D | LanaiTargetMachine.cpp | 59 std::optional<CodeModel::Model> CodeModel, CodeGenOptLevel OptLevel, in LanaiTargetMachine() 64 getEffectiveCodeModel(CodeModel, CodeModel::Medium), OptLevel), in LanaiTargetMachine() 66 OptLevel), in LanaiTargetMachine() 61 LanaiTargetMachine(const Target & T,const Triple & TT,StringRef Cpu,StringRef FeatureString,const TargetOptions & Options,std::optional<Reloc::Model> RM,std::optional<CodeModel::Model> CodeModel,CodeGenOptLevel OptLevel,bool JIT) LanaiTargetMachine() argument
|
/llvm-project/llvm/lib/Target/XCore/ |
H A D | XCoreISelDAGToDAG.cpp | 40 XCoreDAGToDAGISel(XCoreTargetMachine &TM, CodeGenOptLevel OptLevel) 41 : SelectionDAGISel(TM, OptLevel) {} 78 CodeGenOptLevel OptLevel) 80 ID, std::make_unique<XCoreDAGToDAGISel>(TM, OptLevel)) {} 92 CodeGenOptLevel OptLevel) { in INITIALIZE_PASS() 93 return new XCoreDAGToDAGISelLegacy(TM, OptLevel); in INITIALIZE_PASS() 46 XCoreDAGToDAGISel(XCoreTargetMachine & TM,CodeGenOptLevel OptLevel) XCoreDAGToDAGISel() argument 84 XCoreDAGToDAGISelLegacy(XCoreTargetMachine & TM,CodeGenOptLevel OptLevel) XCoreDAGToDAGISelLegacy() argument
|
/llvm-project/llvm/lib/Target/MSP430/ |
H A D | MSP430ISelDAGToDAG.cpp | 91 MSP430DAGToDAGISel(MSP430TargetMachine &TM, CodeGenOptLevel OptLevel) 92 : SelectionDAGISel(TM, OptLevel) {} 119 MSP430DAGToDAGISelLegacy(MSP430TargetMachine &TM, CodeGenOptLevel OptLevel) 121 ID, std::make_unique<MSP430DAGToDAGISel>(TM, OptLevel)) {} 133 CodeGenOptLevel OptLevel) { in INITIALIZE_PASS() 134 return new MSP430DAGToDAGISelLegacy(TM, OptLevel); in INITIALIZE_PASS() 357 IsLegalToFold(N1, Op, Op, OptLevel)) { 96 MSP430DAGToDAGISel(MSP430TargetMachine & TM,CodeGenOptLevel OptLevel) MSP430DAGToDAGISel() argument 124 MSP430DAGToDAGISelLegacy(MSP430TargetMachine & TM,CodeGenOptLevel OptLevel) MSP430DAGToDAGISelLegacy() argument
|
/llvm-project/llvm/lib/Target/WebAssembly/ |
H A D | WebAssemblyISelDAGToDAG.cpp | 47 CodeGenOptLevel OptLevel) in WebAssemblyDAGToDAGISel() 48 : SelectionDAGISel(TM, OptLevel), Subtarget(nullptr) {} in WebAssemblyDAGToDAGISel() argument 87 CodeGenOptLevel OptLevel) in WebAssemblyDAGToDAGISelLegacy() 89 ID, std::make_unique<WebAssemblyDAGToDAGISel>(TM, OptLevel)) {} in WebAssemblyDAGToDAGISelLegacy() 434 CodeGenOptLevel OptLevel) { 435 return new WebAssemblyDAGToDAGISelLegacy(TM, OptLevel); 88 WebAssemblyDAGToDAGISelLegacy(WebAssemblyTargetMachine & TM,CodeGenOptLevel OptLevel) WebAssemblyDAGToDAGISelLegacy() argument 419 createWebAssemblyISelDag(WebAssemblyTargetMachine & TM,CodeGenOptLevel OptLevel) createWebAssemblyISelDag() argument
|
/llvm-project/llvm/tools/lto/ |
H A D | lto.cpp | 38 OptLevel("O", 157 if (OptLevel < '0' || OptLevel > '3') in DEFINE_SIMPLE_CONVERSION_FUNCTIONS() 159 CG->setOptLevel(OptLevel - '0'); 531 if (OptLevel.getNumOccurrences()) { in thinlto_create_codegen() 532 if (OptLevel < '0' || OptLevel > '3') in thinlto_create_codegen() 534 CodeGen->setOptLevel(OptLevel - '0'); in thinlto_create_codegen() 536 CodeGenOpt::getLevel(OptLevel - '0'); in thinlto_create_codegen() 37 OptLevel("O", global() variable
|
/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
H A D | SelectionDAGISel.cpp | 247 SavedOptLevel = IS.OptLevel; in OptLevelChanger() 250 IS.OptLevel = NewOptLevel; in OptLevelChanger() 269 if (IS.OptLevel == SavedOptLevel) in ~OptLevelChanger() 273 LLVM_DEBUG(dbgs() << "\tBefore: -O" << static_cast<int>(IS.OptLevel) in ~OptLevelChanger() 275 IS.OptLevel = SavedOptLevel; in ~OptLevelChanger() 285 CodeGenOptLevel OptLevel) { in createDefaultScheduler() 290 if (auto *SchedulerCtor = ST.getDAGScheduler(OptLevel)) { in createDefaultScheduler() 291 return SchedulerCtor(IS, OptLevel); in createDefaultScheduler() 294 if (OptLevel == CodeGenOptLevel::None || in createDefaultScheduler() 297 return createSourceListDAGScheduler(IS, OptLevel); in createDefaultScheduler() 284 createDefaultScheduler(SelectionDAGISel * IS,CodeGenOptLevel OptLevel) createDefaultScheduler() argument 397 CodeGenOptLevel OptLevel = Selector->OptLevel; getAnalysisUsage() local 2346 IsLegalToFold(SDValue N,SDNode * U,SDNode * Root,CodeGenOptLevel OptLevel,bool IgnoreChains) IsLegalToFold() argument [all...] |
/llvm-project/llvm/lib/Target/CSKY/ |
H A D | CSKYISelDAGToDAG.cpp | 31 explicit CSKYDAGToDAGISel(CSKYTargetMachine &TM, CodeGenOptLevel OptLevel) in CSKYDAGToDAGISel() argument 32 : SelectionDAGISel(TM, OptLevel) {} in CSKYDAGToDAGISel() 60 CodeGenOptLevel OptLevel) in CSKYDAGToDAGISelLegacy() argument 62 ID, std::make_unique<CSKYDAGToDAGISel>(TM, OptLevel)) {} in CSKYDAGToDAGISelLegacy() 410 CodeGenOptLevel OptLevel) { in createCSKYISelDag() argument 411 return new CSKYDAGToDAGISelLegacy(TM, OptLevel); in createCSKYISelDag()
|
/llvm-project/llvm/lib/Transforms/Scalar/ |
H A D | LoopUnrollAndJamPass.cpp | 281 OptimizationRemarkEmitter &ORE, int OptLevel) { in tryToUnrollAndJamLoop() 283 L, SE, TTI, nullptr, nullptr, ORE, OptLevel, std::nullopt, std::nullopt, in tryToUnrollAndJamLoop() 427 OptimizationRemarkEmitter &ORE, int OptLevel, in tryToUnrollAndJamLoop() 441 tryToUnrollAndJamLoop(L, DT, &LI, SE, TTI, AC, DI, ORE, OptLevel); in tryToUnrollAndJamLoop() 461 OptLevel, U)) in run() 282 tryToUnrollAndJamLoop(Loop * L,DominatorTree & DT,LoopInfo * LI,ScalarEvolution & SE,const TargetTransformInfo & TTI,AssumptionCache & AC,DependenceInfo & DI,OptimizationRemarkEmitter & ORE,int OptLevel) tryToUnrollAndJamLoop() argument 428 tryToUnrollAndJamLoop(LoopNest & LN,DominatorTree & DT,LoopInfo & LI,ScalarEvolution & SE,const TargetTransformInfo & TTI,AssumptionCache & AC,DependenceInfo & DI,OptimizationRemarkEmitter & ORE,int OptLevel,LPMUpdater & U) tryToUnrollAndJamLoop() argument
|
H A D | LoopUnrollPass.cpp | 192 OptimizationRemarkEmitter &ORE, int OptLevel, in gatherUnrollingPreferences() argument 201 OptLevel > 2 ? UnrollThresholdAggressive : UnrollThresholdDefault; in gatherUnrollingPreferences() 1161 ProfileSummaryInfo *PSI, bool PreserveLCSSA, int OptLevel, in tryToUnrollLoop() 1217 L, SE, TTI, BFI, PSI, ORE, OptLevel, ProvidedThreshold, ProvidedCount, in tryToUnrollLoop() 1397 int OptLevel; 1418 LoopUnroll(int OptLevel = 2, bool OnlyWhenForced = false, in LoopUnroll() 1428 : LoopPass(ID), OptLevel(OptLevel), OnlyWhenForced(OnlyWhenForced), in LoopUnroll() 1457 L, DT, LI, SE, TTI, AC, ORE, nullptr, nullptr, PreserveLCSSA, OptLevel, in runOnLoop() 1490 Pass *llvm::createLoopUnrollPass(int OptLevel, boo in INITIALIZE_PASS_DEPENDENCY() 1159 tryToUnrollLoop(Loop * L,DominatorTree & DT,LoopInfo * LI,ScalarEvolution & SE,const TargetTransformInfo & TTI,AssumptionCache & AC,OptimizationRemarkEmitter & ORE,BlockFrequencyInfo * BFI,ProfileSummaryInfo * PSI,bool PreserveLCSSA,int OptLevel,bool OnlyFullUnroll,bool OnlyWhenForced,bool ForgetAllSCEV,std::optional<unsigned> ProvidedCount,std::optional<unsigned> ProvidedThreshold,std::optional<bool> ProvidedAllowPartial,std::optional<bool> ProvidedRuntime,std::optional<bool> ProvidedUpperBound,std::optional<bool> ProvidedAllowPeeling,std::optional<bool> ProvidedAllowProfileBasedPeeling,std::optional<unsigned> ProvidedFullUnrollMaxCount,AAResults * AA=nullptr) tryToUnrollLoop() argument 1393 int OptLevel; global() member in __anonc63915930a11::LoopUnroll 1414 LoopUnroll(int OptLevel=2,bool OnlyWhenForced=false,bool ForgetAllSCEV=false,std::optional<unsigned> Threshold=std::nullopt,std::optional<unsigned> Count=std::nullopt,std::optional<bool> AllowPartial=std::nullopt,std::optional<bool> Runtime=std::nullopt,std::optional<bool> UpperBound=std::nullopt,std::optional<bool> AllowPeeling=std::nullopt,std::optional<bool> AllowProfileBasedPeeling=std::nullopt,std::optional<unsigned> ProvidedFullUnrollMaxCount=std::nullopt) LoopUnroll() argument [all...] |
/llvm-project/offload/plugins-nextgen/common/include/ |
H A D | JIT.h | 75 backend(Module &M, const std::string &ComputeUnitKind, unsigned OptLevel); 79 unsigned OptLevel);
|
/llvm-project/llvm/lib/Target/Hexagon/ |
H A D | HexagonISelDAGToDAG.h | 37 CodeGenOptLevel OptLevel) in HexagonDAGToDAGISel() argument 38 : SelectionDAGISel(tm, OptLevel), HST(nullptr), HII(nullptr), in HexagonDAGToDAGISel() 169 CodeGenOptLevel OptLevel);
|
/llvm-project/llvm/lib/Target/X86/ |
H A D | X86SpeculativeExecutionSideEffectSuppression.cpp | 91 const auto &OptLevel = MF.getTarget().getOptLevel(); in runOnMachineFunction() local 98 !(Subtarget.useLVILoadHardening() && OptLevel == CodeGenOptLevel::None) && in runOnMachineFunction()
|
/llvm-project/flang/include/flang/Tools/ |
H A D | CLOptions.inc |
|
H A D | CrossToolHelpers.h | 84 OptLevel = level; in MLIRToLLVMPassPipelineConfig() 89 OptLevel = level; in MLIRToLLVMPassPipelineConfig() 107 llvm::OptimizationLevel OptLevel; ///< optimisation level member
|
/llvm-project/llvm/lib/ExecutionEngine/Orc/ |
H A D | JITTargetMachineBuilder.cpp | 52 Options, RM, CM, OptLevel, /*JIT*/ true); in createTargetMachine() 126 switch (JTMB.OptLevel) { in print()
|