LLVM  14.0.0git
VETargetStreamer.cpp
Go to the documentation of this file.
1 //===-- VETargetStreamer.cpp - VE Target Streamer Methods -----------------===//
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 // This file provides VE specific target streamer methods.
10 //
11 //===----------------------------------------------------------------------===//
12 
13 #include "VETargetStreamer.h"
14 #include "VEInstPrinter.h"
15 
16 using namespace llvm;
17 
18 // pin vtable to this file
20 
21 void VETargetStreamer::anchor() {}
22 
25  : VETargetStreamer(S), OS(OS) {}
26 
28  OS << "\t.register "
30  << ", #ignore\n";
31 }
32 
34  OS << "\t.register "
36  << ", #scratch\n";
37 }
38 
40 
42  return static_cast<MCELFStreamer &>(Streamer);
43 }
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::VEInstPrinter::getRegisterName
static const char * getRegisterName(unsigned RegNo, unsigned AltIdx=VE::NoRegAltName)
VEInstPrinter.h
llvm::MCStreamer
Streaming machine code generation interface.
Definition: MCStreamer.h:199
llvm::MCELFStreamer
Definition: MCELFStreamer.h:24
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::MCTargetStreamer::Streamer
MCStreamer & Streamer
Definition: MCStreamer.h:93
llvm::StringRef::lower
LLVM_NODISCARD std::string lower() const
Definition: StringRef.cpp:105
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
VETargetStreamer.h
llvm::StringRef
StringRef - Represent a constant reference to a string, i.e.
Definition: StringRef.h:58
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::VETargetAsmStreamer::VETargetAsmStreamer
VETargetAsmStreamer(MCStreamer &S, formatted_raw_ostream &OS)
Definition: VETargetStreamer.cpp:23
llvm::VETargetStreamer::VETargetStreamer
VETargetStreamer(MCStreamer &S)
Definition: VETargetStreamer.cpp:19