LLVM  14.0.0git
VETargetStreamer.h
Go to the documentation of this file.
1 //===-- VETargetStreamer.h - VE Target Streamer ----------------*- C++ -*--===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 
9 #ifndef LLVM_LIB_TARGET_VE_VETARGETSTREAMER_H
10 #define LLVM_LIB_TARGET_VE_VETARGETSTREAMER_H
11 
12 #include "llvm/MC/MCELFStreamer.h"
13 #include "llvm/MC/MCStreamer.h"
15 
16 namespace llvm {
18  virtual void anchor();
19 
20 public:
22  /// Emit ".register <reg>, #ignore".
23  virtual void emitVERegisterIgnore(unsigned reg) = 0;
24  /// Emit ".register <reg>, #scratch".
25  virtual void emitVERegisterScratch(unsigned reg) = 0;
26 };
27 
28 // This part is for ascii assembly output
31 
32 public:
34  void emitVERegisterIgnore(unsigned reg) override;
35  void emitVERegisterScratch(unsigned reg) override;
36 };
37 
38 // This part is for ELF object output
40 public:
43  void emitVERegisterIgnore(unsigned reg) override {}
44  void emitVERegisterScratch(unsigned reg) override {}
45 };
46 } // namespace llvm
47 
48 #endif
llvm
---------------------— PointerInfo ------------------------------------—
Definition: AllocatorList.h:23
llvm::VETargetStreamer
Definition: VETargetStreamer.h:17
llvm::VETargetAsmStreamer::emitVERegisterIgnore
void emitVERegisterIgnore(unsigned reg) override
Emit ".register <reg>, #ignore".
Definition: VETargetStreamer.cpp:27
llvm::VETargetELFStreamer::emitVERegisterIgnore
void emitVERegisterIgnore(unsigned reg) override
Emit ".register <reg>, #ignore".
Definition: VETargetStreamer.h:43
MCELFStreamer.h
FormattedStream.h
llvm::MCStreamer
Streaming machine code generation interface.
Definition: MCStreamer.h:199
llvm::MCELFStreamer
Definition: MCELFStreamer.h:24
llvm::VETargetELFStreamer
Definition: VETargetStreamer.h:39
llvm::MCTargetStreamer
Target specific streamer interface.
Definition: MCStreamer.h:91
llvm::VETargetAsmStreamer::emitVERegisterScratch
void emitVERegisterScratch(unsigned reg) override
Emit ".register <reg>, #scratch".
Definition: VETargetStreamer.cpp:33
llvm::VETargetAsmStreamer
Definition: VETargetStreamer.h:29
llvm::formatted_raw_ostream
formatted_raw_ostream - A raw_ostream that wraps another one and keeps track of line and column posit...
Definition: FormattedStream.h:30
llvm::VETargetStreamer::emitVERegisterIgnore
virtual void emitVERegisterIgnore(unsigned reg)=0
Emit ".register <reg>, #ignore".
S
add sub stmia L5 ldr r0 bl L_printf $stub Instead of a and a wouldn t it be better to do three moves *Return an aggregate type is even return S
Definition: README.txt:210
llvm::VETargetELFStreamer::VETargetELFStreamer
VETargetELFStreamer(MCStreamer &S)
Definition: VETargetStreamer.cpp:39
llvm::VETargetELFStreamer::getStreamer
MCELFStreamer & getStreamer()
Definition: VETargetStreamer.cpp:41
llvm::VETargetStreamer::emitVERegisterScratch
virtual void emitVERegisterScratch(unsigned reg)=0
Emit ".register <reg>, #scratch".
MCStreamer.h
llvm::VETargetAsmStreamer::VETargetAsmStreamer
VETargetAsmStreamer(MCStreamer &S, formatted_raw_ostream &OS)
Definition: VETargetStreamer.cpp:23
llvm::VETargetELFStreamer::emitVERegisterScratch
void emitVERegisterScratch(unsigned reg) override
Emit ".register <reg>, #scratch".
Definition: VETargetStreamer.h:44
llvm::VETargetStreamer::VETargetStreamer
VETargetStreamer(MCStreamer &S)
Definition: VETargetStreamer.cpp:19