LLVM  8.0.1
SparcTargetStreamer.h
Go to the documentation of this file.
1 //===-- SparcTargetStreamer.h - Sparc 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_SPARC_MCTARGETDESC_SPARCTARGETSTREAMER_H
11 #define LLVM_LIB_TARGET_SPARC_MCTARGETDESC_SPARCTARGETSTREAMER_H
12 
13 #include "llvm/MC/MCELFStreamer.h"
14 #include "llvm/MC/MCStreamer.h"
15 
16 namespace llvm {
18  virtual void anchor();
19 
20 public:
22  /// Emit ".register <reg>, #ignore".
23  virtual void emitSparcRegisterIgnore(unsigned reg) = 0;
24  /// Emit ".register <reg>, #scratch".
25  virtual void emitSparcRegisterScratch(unsigned reg) = 0;
26 };
27 
28 // This part is for ascii assembly output
31 
32 public:
34  void emitSparcRegisterIgnore(unsigned reg) override;
35  void emitSparcRegisterScratch(unsigned reg) override;
36 };
37 
38 // This part is for ELF object output
40 public:
43  void emitSparcRegisterIgnore(unsigned reg) override {}
44  void emitSparcRegisterScratch(unsigned reg) override {}
45 };
46 } // end namespace llvm
47 
48 #endif
This class represents lattice values for constants.
Definition: AllocatorList.h:24
formatted_raw_ostream - A raw_ostream that wraps another one and keeps track of line and column posit...
Target specific streamer interface.
Definition: MCStreamer.h:84
void emitSparcRegisterScratch(unsigned reg) override
Emit ".register <reg>, #scratch".
Streaming machine code generation interface.
Definition: MCStreamer.h:189
virtual void emitSparcRegisterScratch(unsigned reg)=0
Emit ".register <reg>, #scratch".
virtual void emitSparcRegisterIgnore(unsigned reg)=0
Emit ".register <reg>, #ignore".
MCStreamer & getStreamer()
Definition: MCStreamer.h:92
void emitSparcRegisterIgnore(unsigned reg) override
Emit ".register <reg>, #ignore".