LLVM  10.0.0
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"
16 
17 using namespace llvm;
18 
19 // pin vtable to this file
21 
22 void VETargetStreamer::anchor() {}
23 
26  : VETargetStreamer(S), OS(OS) {}
27 
29  OS << "\t.register "
31  << ", #ignore\n";
32 }
33 
35  OS << "\t.register "
37  << ", #scratch\n";
38 }
39 
41 
43  return static_cast<MCELFStreamer &>(Streamer);
44 }
This class represents lattice values for constants.
Definition: AllocatorList.h:23
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:91
MCELFStreamer & getStreamer()
void emitVERegisterIgnore(unsigned reg) override
Emit ".register <reg>, #ignore".
VETargetELFStreamer(MCStreamer &S)
Streaming machine code generation interface.
Definition: MCStreamer.h:197
VETargetStreamer(MCStreamer &S)
VETargetAsmStreamer(MCStreamer &S, formatted_raw_ostream &OS)
MCStreamer & Streamer
Definition: MCStreamer.h:93
LLVM_NODISCARD std::string lower() const
Definition: StringRef.cpp:108
StringRef - Represent a constant reference to a string, i.e.
Definition: StringRef.h:54
void emitVERegisterScratch(unsigned reg) override
Emit ".register <reg>, #scratch".
static const char * getRegisterName(unsigned RegNo)