LLVM  8.0.1
SparcTargetStreamer.cpp
Go to the documentation of this file.
1 //===-- SparcTargetStreamer.cpp - Sparc Target Streamer Methods -----------===//
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 // This file provides Sparc specific target streamer methods.
11 //
12 //===----------------------------------------------------------------------===//
13 
14 #include "SparcTargetStreamer.h"
17 
18 using namespace llvm;
19 
20 // pin vtable to this file
22 
23 void SparcTargetStreamer::anchor() {}
24 
27  : SparcTargetStreamer(S), OS(OS) {}
28 
30  OS << "\t.register "
32  << ", #ignore\n";
33 }
34 
36  OS << "\t.register "
38  << ", #scratch\n";
39 }
40 
42  : SparcTargetStreamer(S) {}
43 
45  return static_cast<MCELFStreamer &>(Streamer);
46 }
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".
SparcTargetAsmStreamer(MCStreamer &S, formatted_raw_ostream &OS)
static const char * getRegisterName(unsigned RegNo)
void emitSparcRegisterIgnore(unsigned reg) override
Emit ".register <reg>, #ignore".
Streaming machine code generation interface.
Definition: MCStreamer.h:189
MCStreamer & Streamer
Definition: MCStreamer.h:86
LLVM_NODISCARD std::string lower() const
Definition: StringRef.cpp:108
StringRef - Represent a constant reference to a string, i.e.
Definition: StringRef.h:49