LLVM 22.0.0git
AVRMCELFStreamer.h
Go to the documentation of this file.
1//===--------- AVRMCELFStreamer.h - AVR subclass of MCELFStreamer ---------===//
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#ifndef LLVM_LIB_TARGET_AVR_MCTARGETDESC_AVRMCELFSTREAMER_H
10#define LLVM_LIB_TARGET_AVR_MCTARGETDESC_AVRMCELFSTREAMER_H
11
17#include "llvm/MC/MCInstrInfo.h"
19
20namespace llvm {
21
22const int SIZE_LONG = 4;
23const int SIZE_WORD = 2;
24
26 std::unique_ptr<MCInstrInfo> MCII;
27
28public:
29 AVRMCELFStreamer(MCContext &Context, std::unique_ptr<MCAsmBackend> TAB,
30 std::unique_ptr<MCObjectWriter> OW,
31 std::unique_ptr<MCCodeEmitter> Emitter)
32 : MCELFStreamer(Context, std::move(TAB), std::move(OW),
33 std::move(Emitter)),
34 MCII(createAVRMCInstrInfo()) {}
35
36 AVRMCELFStreamer(MCContext &Context, std::unique_ptr<MCAsmBackend> TAB,
37 std::unique_ptr<MCObjectWriter> OW,
38 std::unique_ptr<MCCodeEmitter> Emitter,
39 MCAssembler *Assembler)
40 : MCELFStreamer(Context, std::move(TAB), std::move(OW),
41 std::move(Emitter)),
42 MCII(createAVRMCInstrInfo()) {}
43
44 void
45 emitValueForModiferKind(const MCSymbol *Sym, unsigned SizeInBytes,
46 SMLoc Loc = SMLoc(),
48};
49
50MCStreamer *createAVRELFStreamer(Triple const &TT, MCContext &Context,
51 std::unique_ptr<MCAsmBackend> MAB,
52 std::unique_ptr<MCObjectWriter> OW,
53 std::unique_ptr<MCCodeEmitter> CE);
54
55} // end namespace llvm
56
57#endif // LLVM_LIB_TARGET_AVR_MCTARGETDESC_AVRMCELFSTREAMER_H
dxil DXContainer Global Emitter
AVRMCELFStreamer(MCContext &Context, std::unique_ptr< MCAsmBackend > TAB, std::unique_ptr< MCObjectWriter > OW, std::unique_ptr< MCCodeEmitter > Emitter)
void emitValueForModiferKind(const MCSymbol *Sym, unsigned SizeInBytes, SMLoc Loc=SMLoc(), AVRMCExpr::Specifier ModifierKind=AVR::S_AVR_NONE)
AVRMCELFStreamer(MCContext &Context, std::unique_ptr< MCAsmBackend > TAB, std::unique_ptr< MCObjectWriter > OW, std::unique_ptr< MCCodeEmitter > Emitter, MCAssembler *Assembler)
Context object for machine code objects.
Definition MCContext.h:83
MCELFStreamer(MCContext &Context, std::unique_ptr< MCAsmBackend > TAB, std::unique_ptr< MCObjectWriter > OW, std::unique_ptr< MCCodeEmitter > Emitter)
MCSymbol - Instances of this class represent a symbol name in the MC file, and MCSymbols are created ...
Definition MCSymbol.h:42
Represents a location in source code.
Definition SMLoc.h:23
This is an optimization pass for GlobalISel generic memory operations.
MCInstrInfo * createAVRMCInstrInfo()
MCStreamer * createAVRELFStreamer(Triple const &TT, MCContext &Context, std::unique_ptr< MCAsmBackend > MAB, std::unique_ptr< MCObjectWriter > OW, std::unique_ptr< MCCodeEmitter > CE)
const int SIZE_WORD
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:1849
const int SIZE_LONG
Implement std::hash so that hash_code can be used in STL containers.
Definition BitVector.h:851