24class X86CodeGenPassBuilder
36void X86CodeGenPassBuilder::addPreISel(AddIRPass &addPass)
const {
40void X86CodeGenPassBuilder::addAsmPrinter(AddMachinePass &addPass,
41 CreateMCStreamer)
const {
45Error X86CodeGenPassBuilder::addInstSelector(AddMachinePass &addPass)
const {
54#define GET_PASS_REGISTRY "X86PassRegistry.def"
62 auto CGPB = X86CodeGenPassBuilder(*
this, Opt,
PIC);
63 return CGPB.buildPipeline(MPM, Out, DwoOut, FileType);
Interfaces for producing common pass manager configurations.
PassInstrumentationCallbacks PIC
PassBuilder PB(Machine, PassOpts->PTO, std::nullopt, &PIC)
This class provides access to building LLVM's passes.
Error addInstSelector(AddMachinePass &) const
addInstSelector - This method should install an instruction selector pass, which converts from LLVM c...
void addPreISel(AddIRPass &) const
{{@ For GlobalISel
void addAsmPrinter(AddMachinePass &, CreateMCStreamer) const
Lightweight error class with error context and mandatory checking.
static ErrorSuccess success()
Create a success value.
This class provides access to building LLVM's passes.
void registerPassBuilderCallbacks(PassBuilder &PB) override
Allow the target to modify the pass pipeline.
Error buildCodeGenPipeline(ModulePassManager &, raw_pwrite_stream &, raw_pwrite_stream *, CodeGenFileType, const CGPassBuilderOption &, PassInstrumentationCallbacks *) override
An abstract base class for streams implementations that also support a pwrite operation.
Interfaces for registering analysis passes, producing common pass manager configurations,...
This is an optimization pass for GlobalISel generic memory operations.
CodeGenFileType
These enums are meant to be passed into addPassesToEmitFile to indicate what type of file to emit,...
This class manages callbacks registration, as well as provides a way for PassInstrumentation to pass ...