LLVM 20.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
13#include "llvm/MC/MCStreamer.h"
15
16namespace llvm {
18 virtual void anchor();
19
20public:
22 /// Emit ".register <reg>, #ignore".
23 virtual void emitVERegisterIgnore(unsigned reg){};
24 /// Emit ".register <reg>, #scratch".
25 virtual void emitVERegisterScratch(unsigned reg){};
26};
27
28// This part is for ascii assembly output
31
32public:
34 void emitVERegisterIgnore(unsigned reg) override;
35 void emitVERegisterScratch(unsigned reg) override;
36};
37
38// This part is for ELF object output
40public:
43 void emitVERegisterIgnore(unsigned reg) override {}
44 void emitVERegisterScratch(unsigned reg) override {}
45};
46} // namespace llvm
47
48#endif
raw_pwrite_stream & OS
Streaming machine code generation interface.
Definition: MCStreamer.h:213
Target specific streamer interface.
Definition: MCStreamer.h:94
void emitVERegisterIgnore(unsigned reg) override
Emit ".register <reg>, #ignore".
void emitVERegisterScratch(unsigned reg) override
Emit ".register <reg>, #scratch".
MCELFStreamer & getStreamer()
void emitVERegisterScratch(unsigned reg) override
Emit ".register <reg>, #scratch".
void emitVERegisterIgnore(unsigned reg) override
Emit ".register <reg>, #ignore".
virtual void emitVERegisterScratch(unsigned reg)
Emit ".register <reg>, #scratch".
virtual void emitVERegisterIgnore(unsigned reg)
Emit ".register <reg>, #ignore".
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