LLVM 20.0.0git
R600CodeGenPassBuilder.cpp
Go to the documentation of this file.
1//===-- R600CodeGenPassBuilder.cpp ------ Build R600 CodeGen pipeline -----===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8
10#include "R600TargetMachine.h"
11
12using namespace llvm;
13
17 : CodeGenPassBuilder(TM, Opts, PIC) {
19}
20
21void R600CodeGenPassBuilder::addPreISel(AddIRPass &addPass) const {
22 // TODO: Add passes pre instruction selection.
23}
24
25void R600CodeGenPassBuilder::addAsmPrinter(AddMachinePass &addPass,
26 CreateMCStreamer) const {
27 // TODO: Add AsmPrinter.
28}
29
31 // TODO: Add instruction selector.
32 return Error::success();
33}
const char LLVMTargetMachineRef TM
PassInstrumentationCallbacks PIC
The AMDGPU TargetMachine interface definition for hw codegen targets.
This class provides access to building LLVM's passes.
Lightweight error class with error context and mandatory checking.
Definition: Error.h:160
static ErrorSuccess success()
Create a success value.
Definition: Error.h:337
This class manages callbacks registration, as well as provides a way for PassInstrumentation to pass ...
void addPreISel(AddIRPass &addPass) const
R600CodeGenPassBuilder(R600TargetMachine &TM, const CGPassBuilderOption &Opts, PassInstrumentationCallbacks *PIC)
void addAsmPrinter(AddMachinePass &, CreateMCStreamer) const
Error addInstSelector(AddMachinePass &) const
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18