LLVM 19.0.0git
SparcTargetStreamer.h
Go to the documentation of this file.
1//===-- SparcTargetStreamer.h - Sparc 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_SPARC_MCTARGETDESC_SPARCTARGETSTREAMER_H
10#define LLVM_LIB_TARGET_SPARC_MCTARGETDESC_SPARCTARGETSTREAMER_H
11
13#include "llvm/MC/MCStreamer.h"
14
15namespace llvm {
16
17class formatted_raw_ostream;
18
20 virtual void anchor();
21
22public:
24 /// Emit ".register <reg>, #ignore".
25 virtual void emitSparcRegisterIgnore(unsigned reg){};
26 /// Emit ".register <reg>, #scratch".
27 virtual void emitSparcRegisterScratch(unsigned reg){};
28};
29
30// This part is for ascii assembly output
33
34public:
36 void emitSparcRegisterIgnore(unsigned reg) override;
37 void emitSparcRegisterScratch(unsigned reg) override;
38};
39
40// This part is for ELF object output
42public:
45 void emitSparcRegisterIgnore(unsigned reg) override {}
46 void emitSparcRegisterScratch(unsigned reg) override {}
47};
48} // end namespace llvm
49
50#endif
raw_pwrite_stream & OS
Streaming machine code generation interface.
Definition: MCStreamer.h:212
Target specific streamer interface.
Definition: MCStreamer.h:93
void emitSparcRegisterIgnore(unsigned reg) override
Emit ".register <reg>, #ignore".
void emitSparcRegisterScratch(unsigned reg) override
Emit ".register <reg>, #scratch".
void emitSparcRegisterIgnore(unsigned reg) override
Emit ".register <reg>, #ignore".
void emitSparcRegisterScratch(unsigned reg) override
Emit ".register <reg>, #scratch".
virtual void emitSparcRegisterIgnore(unsigned reg)
Emit ".register <reg>, #ignore".
virtual void emitSparcRegisterScratch(unsigned reg)
Emit ".register <reg>, #scratch".
formatted_raw_ostream - A raw_ostream that wraps another one and keeps track of line and column posit...
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18