LLVM
4.0.0
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
llvm.src
lib
Target
AMDGPU
MCTargetDesc
AMDGPUELFStreamer.h
Go to the documentation of this file.
1
//===-------- AMDGPUELFStreamer.h - ELF Object Output -----------*- C++ -*-===//
2
//
3
// The LLVM Compiler Infrastructure
4
//
5
// This file is distributed under the University of Illinois Open Source
6
// License. See LICENSE.TXT for details.
7
//
8
//===----------------------------------------------------------------------===//
9
//
10
// This is a custom MCELFStreamer which allows us to insert some hooks before
11
// emitting data into an actual object file.
12
//
13
//===----------------------------------------------------------------------===//
14
15
#ifndef LLVM_LIB_TARGET_AMDGPU_MCTARGETDESC_AMDGPUELFSTREAMER_H
16
#define LLVM_LIB_TARGET_AMDGPU_MCTARGETDESC_AMDGPUELFSTREAMER_H
17
18
#include "
llvm/MC/MCELFStreamer.h
"
19
20
namespace
llvm {
21
class
MCAsmBackend;
22
class
MCCodeEmitter;
23
class
MCContext;
24
class
MCSubtargetInfo;
25
26
class
AMDGPUELFStreamer
:
public
MCELFStreamer
{
27
public
:
28
AMDGPUELFStreamer
(
MCContext
&Context,
MCAsmBackend
&MAB,
raw_pwrite_stream
&OS,
29
MCCodeEmitter
*Emitter)
30
:
MCELFStreamer
(Context, MAB, OS, Emitter) { }
31
32
};
33
34
MCELFStreamer *
createAMDGPUELFStreamer
(MCContext &
Context
, MCAsmBackend &MAB,
35
raw_pwrite_stream &OS,
36
MCCodeEmitter *Emitter,
bool
RelaxAll
);
37
}
// namespace llvm.
38
39
#endif
llvm::AMDGPUELFStreamer
Definition:
AMDGPUELFStreamer.h:26
Context
LLVMContext & Context
Definition:
NVVMIntrRange.cpp:72
MCELFStreamer.h
llvm::MCContext
Context object for machine code objects.
Definition:
MCContext.h:51
llvm::MCELFStreamer
Definition:
MCELFStreamer.h:27
llvm::MCCodeEmitter
MCCodeEmitter - Generic instruction encoding interface.
Definition:
MCCodeEmitter.h:23
llvm::createAMDGPUELFStreamer
MCELFStreamer * createAMDGPUELFStreamer(MCContext &Context, MCAsmBackend &MAB, raw_pwrite_stream &OS, MCCodeEmitter *Emitter, bool RelaxAll)
Definition:
AMDGPUELFStreamer.cpp:15
llvm::AMDGPUELFStreamer::AMDGPUELFStreamer
AMDGPUELFStreamer(MCContext &Context, MCAsmBackend &MAB, raw_pwrite_stream &OS, MCCodeEmitter *Emitter)
Definition:
AMDGPUELFStreamer.h:28
llvm::raw_pwrite_stream
An abstract base class for streams implementations that also support a pwrite operation.
Definition:
raw_ostream.h:333
RelaxAll
cl::opt< bool > RelaxAll("mc-relax-all", cl::desc("When used with filetype=obj, ""relax all fixups in the emitted object file"))
llvm::MCAsmBackend
Generic interface to target specific assembler backends.
Definition:
MCAsmBackend.h:36
Generated on Wed Mar 8 2017 17:05:34 for LLVM by
1.8.6