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
9#include "R600CodeGenPassBuilder.h"
10#include "R600TargetMachine.h"
11
12using namespace llvm;
13
14R600CodeGenPassBuilder::R600CodeGenPassBuilder(
15 R600TargetMachine &TM, const CGPassBuilderOption &Opts,
16 PassInstrumentationCallbacks *PIC)
17 : CodeGenPassBuilder(TM, Opts, PIC) {
18 Opt.RequiresCodeGenSCCOrder = true;
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
30Error R600CodeGenPassBuilder::addInstSelector(AddMachinePass &) const {
31 // TODO: Add instruction selector.
32 return Error::success();
33}
34