LLVM 23.0.0git
LoongArchTargetStreamer.h
Go to the documentation of this file.
1//===-- LoongArchTargetStreamer.h - LoongArch 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_LOONGARCH_MCTARGETDESC_LOONGARCHTARGETSTREAMER_H
10#define LLVM_LIB_TARGET_LOONGARCH_MCTARGETDESC_LOONGARCHTARGETSTREAMER_H
11
12#include "LoongArch.h"
13#include "llvm/MC/MCStreamer.h"
16
17namespace llvm {
20
21public:
24 LoongArchABI::ABI getTargetABI() const { return TargetABI; }
25
26 virtual void emitDirectiveOptionPush();
27 virtual void emitDirectiveOptionPop();
28 virtual void emitDirectiveOptionRelax();
29 virtual void emitDirectiveOptionNoRelax();
30 virtual void emitDTPRel32Value(const MCExpr *);
31 virtual void emitDTPRel64Value(const MCExpr *);
32};
33
34// This part is for ascii assembly output.
37
38public:
40
41 void emitDirectiveOptionPush() override;
42 void emitDirectiveOptionPop() override;
43 void emitDirectiveOptionRelax() override;
44 void emitDirectiveOptionNoRelax() override;
45 void emitDTPRel32Value(const MCExpr *) override;
46 void emitDTPRel64Value(const MCExpr *) override;
47};
48
49} // end namespace llvm
50#endif
void emitDTPRel64Value(const MCExpr *) override
void emitDTPRel32Value(const MCExpr *) override
LoongArchTargetAsmStreamer(MCStreamer &S, formatted_raw_ostream &OS)
LoongArchABI::ABI getTargetABI() const
void setTargetABI(LoongArchABI::ABI ABI)
virtual void emitDTPRel64Value(const MCExpr *)
virtual void emitDTPRel32Value(const MCExpr *)
Base class for the full range of assembler expressions which are needed for parsing.
Definition MCExpr.h:34
Streaming machine code generation interface.
Definition MCStreamer.h:222
MCTargetStreamer(MCStreamer &S)
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.