LLVM  8.0.1
AVRMCELFStreamer.h
Go to the documentation of this file.
1 //===--------- AVRMCELFStreamer.h - AVR subclass of MCELFStreamer ---------===//
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 #ifndef LLVM_LIB_TARGET_AVR_MCTARGETDESC_AVRMCELFSTREAMER_H
11 #define LLVM_LIB_TARGET_AVR_MCTARGETDESC_AVRMCELFSTREAMER_H
12 
13 #include "MCTargetDesc/AVRMCExpr.h"
15 #include "llvm/MC/MCAsmBackend.h"
16 #include "llvm/MC/MCCodeEmitter.h"
17 #include "llvm/MC/MCELFStreamer.h"
18 #include "llvm/MC/MCInstrInfo.h"
19 #include "llvm/MC/MCObjectWriter.h"
20 
21 namespace llvm {
22 
23 const int SIZE_LONG = 4;
24 const int SIZE_WORD = 2;
25 
27  std::unique_ptr<MCInstrInfo> MCII;
28 
29 public:
30  AVRMCELFStreamer(MCContext &Context, std::unique_ptr<MCAsmBackend> TAB,
31  std::unique_ptr<MCObjectWriter> OW,
32  std::unique_ptr<MCCodeEmitter> Emitter)
33  : MCELFStreamer(Context, std::move(TAB), std::move(OW),
34  std::move(Emitter)),
35  MCII(createAVRMCInstrInfo()) {}
36 
37  AVRMCELFStreamer(MCContext &Context, std::unique_ptr<MCAsmBackend> TAB,
38  std::unique_ptr<MCObjectWriter> OW,
39  std::unique_ptr<MCCodeEmitter> Emitter,
40  MCAssembler *Assembler)
41  : MCELFStreamer(Context, std::move(TAB), std::move(OW),
42  std::move(Emitter)),
43  MCII(createAVRMCInstrInfo()) {}
44 
46  const MCSymbol *Sym, unsigned SizeInBytes, SMLoc Loc = SMLoc(),
48 };
49 
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
LLVMContext & Context
This class represents lattice values for constants.
Definition: AllocatorList.h:24
MCSymbol - Instances of this class represent a symbol name in the MC file, and MCSymbols are created ...
Definition: MCSymbol.h:42
MCInstrInfo * createAVRMCInstrInfo()
const int SIZE_WORD
const int SIZE_LONG
VariantKind
Specifies the type of an expression.
Definition: AVRMCExpr.h:23
Definition: BitVector.h:938
Context object for machine code objects.
Definition: MCContext.h:63
Streaming machine code generation interface.
Definition: MCStreamer.h:189
Triple - Helper class for working with autoconf configuration names.
Definition: Triple.h:44
AVRMCELFStreamer(MCContext &Context, std::unique_ptr< MCAsmBackend > TAB, std::unique_ptr< MCObjectWriter > OW, std::unique_ptr< MCCodeEmitter > Emitter)
MCStreamer * createAVRELFStreamer(Triple const &TT, MCContext &Context, std::unique_ptr< MCAsmBackend > MAB, std::unique_ptr< MCObjectWriter > OW, std::unique_ptr< MCCodeEmitter > CE)
void EmitValueForModiferKind(const MCSymbol *Sym, unsigned SizeInBytes, SMLoc Loc=SMLoc(), AVRMCExpr::VariantKind ModifierKind=AVRMCExpr::VK_AVR_None)
AVRMCELFStreamer(MCContext &Context, std::unique_ptr< MCAsmBackend > TAB, std::unique_ptr< MCObjectWriter > OW, std::unique_ptr< MCCodeEmitter > Emitter, MCAssembler *Assembler)
Represents a location in source code.
Definition: SMLoc.h:24