#include "X86ISelDAGToDAG.h"
#include "X86TargetMachine.h"
#include "llvm/MC/MCStreamer.h"
#include "llvm/Passes/CodeGenPassBuilder.h"
#include "llvm/Passes/PassBuilder.h"
usingnamespacellvm;
namespace {
class X86CodeGenPassBuilder
: public CodeGenPassBuilder<X86CodeGenPassBuilder, X86TargetMachine> { … };
void X86CodeGenPassBuilder::addPreISel(AddIRPass &addPass) const { … }
void X86CodeGenPassBuilder::addAsmPrinter(AddMachinePass &addPass,
CreateMCStreamer) const { … }
Error X86CodeGenPassBuilder::addInstSelector(AddMachinePass &addPass) const { … }
}
void X86TargetMachine::registerPassBuilderCallbacks(PassBuilder &PB) { … }
Error X86TargetMachine::buildCodeGenPipeline(
ModulePassManager &MPM, raw_pwrite_stream &Out, raw_pwrite_stream *DwoOut,
CodeGenFileType FileType, const CGPassBuilderOption &Opt,
PassInstrumentationCallbacks *PIC) { … }