2016-03-11 09:00:27 +01:00
|
|
|
//===-------- AMDGPUELFStreamer.h - ELF Object Output -----------*- C++ -*-===//
|
2015-09-25 23:41:28 +02:00
|
|
|
//
|
2019-01-19 09:50:56 +01:00
|
|
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
|
|
// See https://llvm.org/LICENSE.txt for license information.
|
|
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
2015-09-25 23:41:28 +02:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// This is a custom MCELFStreamer which allows us to insert some hooks before
|
|
|
|
// emitting data into an actual object file.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#ifndef LLVM_LIB_TARGET_AMDGPU_MCTARGETDESC_AMDGPUELFSTREAMER_H
|
|
|
|
#define LLVM_LIB_TARGET_AMDGPU_MCTARGETDESC_AMDGPUELFSTREAMER_H
|
|
|
|
|
|
|
|
#include "llvm/MC/MCELFStreamer.h"
|
|
|
|
|
|
|
|
namespace llvm {
|
|
|
|
class MCAsmBackend;
|
|
|
|
class MCCodeEmitter;
|
|
|
|
class MCContext;
|
|
|
|
class MCSubtargetInfo;
|
|
|
|
|
2017-10-05 18:19:18 +02:00
|
|
|
MCELFStreamer *createAMDGPUELFStreamer(const Triple &T, MCContext &Context,
|
2017-10-11 03:57:21 +02:00
|
|
|
std::unique_ptr<MCAsmBackend> MAB,
|
2018-05-18 20:26:45 +02:00
|
|
|
std::unique_ptr<MCObjectWriter> OW,
|
2017-10-12 01:34:47 +02:00
|
|
|
std::unique_ptr<MCCodeEmitter> Emitter,
|
|
|
|
bool RelaxAll);
|
2015-09-25 23:41:28 +02:00
|
|
|
} // namespace llvm.
|
|
|
|
|
|
|
|
#endif
|