LLVM
24.0.0git
include
llvm
MC
MCDXContainerStreamer.h
Go to the documentation of this file.
1
//===- MCDXContainerStreamer.h - MCDXContainerStreamer Interface ---*- C++ ===//
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
// Overrides MCObjectStreamer to disable all unnecessary features with stubs.
10
// The DXContainer format isn't a fully featured object format. It doesn't
11
// support symbols, and initially it will not support instruction data since it
12
// is used as a bitcode container for DXIL.
13
//
14
//===----------------------------------------------------------------------===//
15
16
#ifndef LLVM_MC_MCDXCONTAINERSTREAMER_H
17
#define LLVM_MC_MCDXCONTAINERSTREAMER_H
18
19
#include "
llvm/MC/MCAsmBackend.h
"
20
#include "
llvm/MC/MCCodeEmitter.h
"
21
#include "
llvm/MC/MCObjectStreamer.h
"
22
#include "
llvm/MC/MCObjectWriter.h
"
23
24
namespace
llvm
{
25
26
class
MCDXContainerStreamer
:
public
MCObjectStreamer
{
27
public
:
28
MCDXContainerStreamer
(
MCContext
&Context, std::unique_ptr<MCAsmBackend> TAB,
29
std::unique_ptr<MCObjectWriter> OW,
30
std::unique_ptr<MCCodeEmitter>
Emitter
)
31
:
MCObjectStreamer
(Context,
std
::
move
(TAB),
std
::
move
(OW),
32
std
::
move
(
Emitter
)) {}
33
34
bool
emitSymbolAttribute
(
MCSymbol
*,
MCSymbolAttr
)
override
{
return
false
; }
35
void
emitCommonSymbol
(
MCSymbol
*,
uint64_t
,
Align
)
override
{}
36
};
37
38
}
// end namespace llvm
39
40
#endif
// LLVM_MC_MCDXCONTAINERSTREAMER_H
uint64_t
uint64_t uint64_t
Definition
AMDGPUDisassembler.cpp:568
Emitter
dxil container DXContainer Global Emitter
Definition
DXILContainerGlobals.cpp:496
MCAsmBackend.h
MCCodeEmitter.h
MCObjectStreamer.h
MCObjectWriter.h
llvm::MCContext
Context object for machine code objects.
Definition
MCContext.h:84
llvm::MCDXContainerStreamer::emitCommonSymbol
void emitCommonSymbol(MCSymbol *, uint64_t, Align) override
Emit a common symbol.
Definition
MCDXContainerStreamer.h:35
llvm::MCDXContainerStreamer::MCDXContainerStreamer
MCDXContainerStreamer(MCContext &Context, std::unique_ptr< MCAsmBackend > TAB, std::unique_ptr< MCObjectWriter > OW, std::unique_ptr< MCCodeEmitter > Emitter)
Definition
MCDXContainerStreamer.h:28
llvm::MCDXContainerStreamer::emitSymbolAttribute
bool emitSymbolAttribute(MCSymbol *, MCSymbolAttr) override
Add the given Attribute to Symbol.
Definition
MCDXContainerStreamer.h:34
llvm::MCObjectStreamer::MCObjectStreamer
MCObjectStreamer(MCContext &Context, std::unique_ptr< MCAsmBackend > TAB, std::unique_ptr< MCObjectWriter > OW, std::unique_ptr< MCCodeEmitter > Emitter)
Definition
MCObjectStreamer.cpp:28
llvm::MCSymbol
MCSymbol - Instances of this class represent a symbol name in the MC file, and MCSymbols are created ...
Definition
MCSymbol.h:42
llvm
This is an optimization pass for GlobalISel generic memory operations.
Definition
DefaultTargetInfo.h:21
llvm::move
OutputIt move(R &&Range, OutputIt Out)
Provide wrappers to std::move which take ranges instead of having to pass begin/end explicitly.
Definition
STLExtras.h:1933
llvm::MCSymbolAttr
MCSymbolAttr
Definition
MCDirectives.h:18
std
Implement std::hash so that hash_code can be used in STL containers.
Definition
BitVector.h:879
llvm::Align
This struct is a compact representation of a valid (non-zero power of two) alignment.
Definition
Alignment.h:39
Generated on
for LLVM by
1.14.0