1 //===-- VETargetStreamer.cpp - VE Target Streamer Methods -----------------===//
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
7 //===----------------------------------------------------------------------===//
9 // This file provides VE specific target streamer methods.
11 //===----------------------------------------------------------------------===//
13 #include "VETargetStreamer.h"
14 #include "VEInstPrinter.h"
15 #include "llvm/MC/MCRegister.h"
19 // pin vtable to this file
20 VETargetStreamer::VETargetStreamer(MCStreamer
&S
) : MCTargetStreamer(S
) {}
22 void VETargetStreamer::anchor() {}
24 VETargetAsmStreamer::VETargetAsmStreamer(MCStreamer
&S
,
25 formatted_raw_ostream
&OS
)
26 : VETargetStreamer(S
), OS(OS
) {}
28 void VETargetAsmStreamer::emitVERegisterIgnore(unsigned reg
) {
30 << "%" << StringRef(VEInstPrinter::getRegisterName(reg
)).lower()
34 void VETargetAsmStreamer::emitVERegisterScratch(unsigned reg
) {
36 << "%" << StringRef(VEInstPrinter::getRegisterName(reg
)).lower()
40 VETargetELFStreamer::VETargetELFStreamer(MCStreamer
&S
) : VETargetStreamer(S
) {}
42 MCELFStreamer
&VETargetELFStreamer::getStreamer() {
43 return static_cast<MCELFStreamer
&>(Streamer
);