1 //===-- AArch64TargetStreamer.h - AArch64 Target Streamer ------*- C++ -*--===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #ifndef LLVM_LIB_TARGET_AARCH64_MCTARGETDESC_AARCH64TARGETSTREAMER_H
11 #define LLVM_LIB_TARGET_AARCH64_MCTARGETDESC_AARCH64TARGETSTREAMER_H
13 #include "llvm/MC/MCStreamer.h"
17 class AArch64TargetStreamer : public MCTargetStreamer {
19 AArch64TargetStreamer(MCStreamer &S);
20 ~AArch64TargetStreamer() override;
22 void finish() override;
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, SMLoc Loc);
29 /// Callback used to implemnt the .ltorg directive.
30 /// Emit contents of constant pool for the current section.
31 void emitCurrentConstantPool();
33 /// Callback used to implement the .inst directive.
34 virtual void emitInst(uint32_t Inst);
37 std::unique_ptr<AssemblerConstantPools> ConstantPools;
40 } // end namespace llvm