Home | History | Annotate | Download | only in MCTargetDesc
      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 
     17 class AArch64TargetStreamer : public MCTargetStreamer {
     18 public:
     19   AArch64TargetStreamer(MCStreamer &S);
     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, SMLoc Loc);
     28 
     29   /// Callback used to implemnt the .ltorg directive.
     30   /// Emit contents of constant pool for the current section.
     31   void emitCurrentConstantPool();
     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
     43