Lines Matching +full:ext +full:- +full:gen
1 //===- NewPMDriver.cpp - Driver for opt with new PM -----------------------===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
13 //===----------------------------------------------------------------------===//
22 #include "llvm/Config/llvm-config.h"
47 "debugify-each",
48 cl::desc("Start each pass with debugify and end it with check-debugify"));
51 DebugifyExport("debugify-export",
52 cl::desc("Export per-pass debugify statistics to this file"),
56 "verify-each-debuginfo-preserve",
61 VerifyDIPreserveExport("verify-di-preserve-export",
72 "debug-pass-manager", cl::Hidden, cl::ValueOptional,
87 AAPipeline("aa-pipeline",
95 "passes-ep-peephole",
100 "passes-ep-late-loop-optimizations",
106 "passes-ep-loop-optimizer-end",
111 "passes-ep-scalar-optimizer-late",
116 "passes-ep-cgscc-optimizer-late",
121 "passes-ep-vectorizer-start",
126 "passes-ep-pipeline-start",
131 "passes-ep-pipeline-early-simplification",
136 "passes-ep-optimizer-early",
141 "passes-ep-optimizer-last",
146 "passes-ep-full-link-time-optimization-early",
152 "passes-ep-full-link-time-optimization-last",
160 "disable-pipeline-verification",
161 cl::desc("Only has an effect when specified with -print-pipeline-passes. "
163 "-print-pipeline-passes can be used to create a pipeline."),
168 PGOKindFlag("pgo-kind", cl::init(NoPGO), cl::Hidden,
171 clEnumValN(InstrGen, "pgo-instr-gen-pipeline",
173 clEnumValN(InstrUse, "pgo-instr-use-pipeline",
175 clEnumValN(SampleUse, "pgo-sample-use-pipeline",
177 static cl::opt<std::string> ProfileFile("profile-file",
180 MemoryProfileFile("memory-profile-file",
184 "cspgo-kind", cl::init(NoCSPGO), cl::Hidden,
189 CSInstrGen, "cspgo-instr-gen-pipeline",
192 CSInstrUse, "cspgo-instr-use-pipeline",
196 "cs-profilegen-file",
201 ProfileRemappingFile("profile-remapping-file",
206 "pgo-cold-func-opt", cl::init(PGOOptions::ColdFuncOpt::Default), cl::Hidden,
219 "debug-info-for-profiling", cl::init(false), cl::Hidden,
223 "pseudo-probe-for-profiling", cl::init(false), cl::Hidden,
227 "disable-loop-unrolling",
243 errs() << "Could not parse -" << PipelineOpt.ArgStr in tryParsePipelineText()
336 #define HANDLE_EXTENSION(Ext) \ argument
337 llvm::PassPluginLibraryInfo get##Ext##PluginInfo();
379 if (P && (P->Action == PGOOptions::IRInstr || in runPassPipeline()
380 P->Action == PGOOptions::SampleUse)) { in runPassPipeline()
390 P->CSAction = PGOOptions::CSIRInstr; in runPassPipeline()
391 P->CSProfileGenFile = CSProfileGenFile; in runPassPipeline()
401 P->CSAction = PGOOptions::CSIRUse; in runPassPipeline()
405 TM->setPGOOption(P); in runPassPipeline()
451 #define HANDLE_EXTENSION(Ext) \ in runPassPipeline() argument
452 get##Ext##PluginInfo().RegisterPassBuilderCallbacks(PB); in runPassPipeline()
482 // Add passes according to the -passes options. in runPassPipeline()
505 Out->os(), "", ShouldPreserveAssemblyUseListOrder, EmitSummaryIndex)); in runPassPipeline()
508 MPM.addPass(BitcodeWriterPass(Out->os(), ShouldPreserveBitcodeUseListOrder, in runPassPipeline()
513 Out->os(), ThinLTOLinkOut ? &ThinLTOLinkOut->os() : nullptr)); in runPassPipeline()
520 // Print a textual, '-passes=' compatible, representation of pipeline if in runPassPipeline()
551 Out->keep(); in runPassPipeline()
553 ThinLTOLinkOut->keep(); in runPassPipeline()
557 OptRemarkFile->keep(); in runPassPipeline()