LLVM  3.7.0
AArch64TargetStreamer.h
Go to the documentation of this file.
1 //===-- AArch64TargetStreamer.h - AArch64 Target Streamer ------*- 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 #ifndef LLVM_LIB_TARGET_AARCH64_MCTARGETDESC_AARCH64TARGETSTREAMER_H
11 #define LLVM_LIB_TARGET_AARCH64_MCTARGETDESC_AARCH64TARGETSTREAMER_H
12 
13 #include "llvm/MC/MCStreamer.h"
14 
15 namespace llvm {
16 
18 public:
20  ~AArch64TargetStreamer() override;
21 
22  void finish() override;
23 
24  /// Callback used to implement the ldr= pseudo.
25  /// Add a new entry to the constant pool for the current section and return an
26  /// MCExpr that can be used to refer to the constant pool location.
27  const MCExpr *addConstantPoolEntry(const MCExpr *, unsigned Size);
28 
29  /// Callback used to implemnt the .ltorg directive.
30  /// Emit contents of constant pool for the current section.
32 
33  /// Callback used to implement the .inst directive.
34  virtual void emitInst(uint32_t Inst);
35 
36 private:
37  std::unique_ptr<AssemblerConstantPools> ConstantPools;
38 };
39 
40 } // end namespace llvm
41 
42 #endif
Target specific streamer interface.
Definition: MCStreamer.h:73
virtual void emitInst(uint32_t Inst)
Callback used to implement the .inst directive.
Base class for the full range of assembler expressions which are needed for parsing.
Definition: MCExpr.h:33
Streaming machine code generation interface.
Definition: MCStreamer.h:157
const MCExpr * addConstantPoolEntry(const MCExpr *, unsigned Size)
Callback used to implement the ldr= pseudo.
void emitCurrentConstantPool()
Callback used to implemnt the .ltorg directive.