|
| 1 | +//===- lib/Target/AMDGPU/AMDGPUCodeGenPassBuilder.cpp ---------------------===// |
| 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 "AMDGPUCodeGenPassBuilder.h" |
| 10 | +#include "AMDGPUTargetMachine.h" |
| 11 | + |
| 12 | +using namespace llvm; |
| 13 | + |
| 14 | +AMDGPUCodeGenPassBuilder::AMDGPUCodeGenPassBuilder( |
| 15 | + AMDGPUTargetMachine &TM, const CGPassBuilderOption &Opts, |
| 16 | + PassInstrumentationCallbacks *PIC) |
| 17 | + : CodeGenPassBuilder(TM, Opts, PIC) { |
| 18 | + Opt.RequiresCodeGenSCCOrder = true; |
| 19 | + // Exceptions and StackMaps are not supported, so these passes will never do |
| 20 | + // anything. |
| 21 | + // Garbage collection is not supported. |
| 22 | + disablePass<StackMapLivenessPass, FuncletLayoutPass, |
| 23 | + ShadowStackGCLoweringPass>(); |
| 24 | +} |
| 25 | + |
| 26 | +void AMDGPUCodeGenPassBuilder::addPreISel(AddIRPass &addPass) const { |
| 27 | + // TODO: Add passes pre instruction selection. |
| 28 | +} |
| 29 | + |
| 30 | +void AMDGPUCodeGenPassBuilder::addAsmPrinter(AddMachinePass &addPass, |
| 31 | + CreateMCStreamer) const { |
| 32 | + // TODO: Add AsmPrinter. |
| 33 | +} |
| 34 | + |
| 35 | +Error AMDGPUCodeGenPassBuilder::addInstSelector(AddMachinePass &) const { |
| 36 | + // TODO: Add instruction selector. |
| 37 | + return Error::success(); |
| 38 | +} |
0 commit comments