LLVM
15.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
class
MCInst;
26
class
raw_ostream;
27
28
class
MCDXContainerStreamer
:
public
MCObjectStreamer
{
29
public
:
30
MCDXContainerStreamer
(
MCContext
&Context, std::unique_ptr<MCAsmBackend> TAB,
31
std::unique_ptr<MCObjectWriter> OW,
32
std::unique_ptr<MCCodeEmitter> Emitter)
33
:
MCObjectStreamer
(
Context
,
std
::
move
(TAB),
std
::
move
(OW),
34
std
::
move
(Emitter)) {}
35
36
bool
emitSymbolAttribute
(
MCSymbol
*,
MCSymbolAttr
)
override
{
return
false
; }
37
void
emitCommonSymbol
(
MCSymbol
*,
uint64_t
,
unsigned
)
override
{}
38
void
emitZerofill
(
MCSection
*,
MCSymbol
*
Symbol
=
nullptr
,
uint64_t
Size = 0,
39
unsigned
ByteAlignment
= 0,
SMLoc
Loc =
SMLoc
())
override
{}
40
41
private
:
42
void
emitInstToData(
const
MCInst
&,
const
MCSubtargetInfo
&)
override
;
43
};
44
45
}
// end namespace llvm
46
47
#endif // LLVM_MC_MCDXCONTAINERSTREAMER_H
llvm
This is an optimization pass for GlobalISel generic memory operations.
Definition:
AddressRanges.h:17
llvm::MCSymbol
MCSymbol - Instances of this class represent a symbol name in the MC file, and MCSymbols are created ...
Definition:
MCSymbol.h:41
llvm::MCContext
Context object for machine code objects.
Definition:
MCContext.h:76
MCCodeEmitter.h
llvm::MCInst
Instances of this class represent a single low-level machine instruction.
Definition:
MCInst.h:184
llvm::MCSymbolAttr
MCSymbolAttr
Definition:
MCDirectives.h:18
Context
LLVMContext & Context
Definition:
NVVMIntrRange.cpp:66
MCObjectStreamer.h
MCAsmBackend.h
llvm::SMLoc
Represents a location in source code.
Definition:
SMLoc.h:23
llvm::MCObjectStreamer
Streaming object file generation interface.
Definition:
MCObjectStreamer.h:42
llvm::MCDXContainerStreamer::emitSymbolAttribute
bool emitSymbolAttribute(MCSymbol *, MCSymbolAttr) override
Add the given Attribute to Symbol.
Definition:
MCDXContainerStreamer.h:36
uint64_t
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:1675
llvm::MCSection
Instances of this class represent a uniqued identifier for a section in the current translation unit.
Definition:
MCSection.h:39
llvm::MCDXContainerStreamer::emitZerofill
void emitZerofill(MCSection *, MCSymbol *Symbol=nullptr, uint64_t Size=0, unsigned ByteAlignment=0, SMLoc Loc=SMLoc()) override
Emit the zerofill section and an optional symbol.
Definition:
MCDXContainerStreamer.h:38
MCObjectWriter.h
std
Definition:
BitVector.h:851
llvm::MCDXContainerStreamer
Definition:
MCDXContainerStreamer.h:28
llvm::LCOMM::ByteAlignment
@ ByteAlignment
Definition:
MCAsmInfo.h:50
llvm::ARMBuildAttrs::Symbol
@ Symbol
Definition:
ARMBuildAttributes.h:83
llvm::MCDXContainerStreamer::emitCommonSymbol
void emitCommonSymbol(MCSymbol *, uint64_t, unsigned) override
Emit a common symbol.
Definition:
MCDXContainerStreamer.h:37
llvm::MCDXContainerStreamer::MCDXContainerStreamer
MCDXContainerStreamer(MCContext &Context, std::unique_ptr< MCAsmBackend > TAB, std::unique_ptr< MCObjectWriter > OW, std::unique_ptr< MCCodeEmitter > Emitter)
Definition:
MCDXContainerStreamer.h:30
llvm::MCSubtargetInfo
Generic base class for all target subtargets.
Definition:
MCSubtargetInfo.h:76
Generated on Wed Jul 20 2022 15:39:35 for LLVM by
1.8.17