LLVM 19.0.0git
XtensaTargetStreamer.h
Go to the documentation of this file.
1//===-- XtensaTargetStreamer.h - Xtensa 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_XTENSA_XTENSATARGETSTREAMER_H
10#define LLVM_LIB_TARGET_XTENSA_XTENSATARGETSTREAMER_H
11
13#include "llvm/MC/MCStreamer.h"
14#include "llvm/Support/SMLoc.h"
15
16namespace llvm {
17class formatted_raw_ostream;
18
20public:
22
23 // Emit literal label and literal Value to the literal section. If literal
24 // section is not switched yet (SwitchLiteralSection is true) then switch to
25 // literal section.
26 virtual void emitLiteral(MCSymbol *LblSym, const MCExpr *Value,
27 bool SwitchLiteralSection, SMLoc L = SMLoc()) = 0;
28
29 virtual void emitLiteralPosition() = 0;
30
31 // Switch to the literal section. The BaseSection name is used to construct
32 // literal section name.
33 virtual void startLiteralSection(MCSection *BaseSection) = 0;
34};
35
38
39public:
41 void emitLiteral(MCSymbol *LblSym, const MCExpr *Value,
42 bool SwitchLiteralSection, SMLoc L) override;
43 void emitLiteralPosition() override;
44 void startLiteralSection(MCSection *Section) override;
45};
46
48public:
51 void emitLiteral(MCSymbol *LblSym, const MCExpr *Value,
52 bool SwitchLiteralSection, SMLoc L) override;
53 void emitLiteralPosition() override {}
54 void startLiteralSection(MCSection *Section) override;
55};
56} // end namespace llvm
57
58#endif // LLVM_LIB_TARGET_XTENSA_XTENSATARGETSTREAMER_H
raw_pwrite_stream & OS
Base class for the full range of assembler expressions which are needed for parsing.
Definition: MCExpr.h:35
Instances of this class represent a uniqued identifier for a section in the current translation unit.
Definition: MCSection.h:39
Streaming machine code generation interface.
Definition: MCStreamer.h:212
MCSymbol - Instances of this class represent a symbol name in the MC file, and MCSymbols are created ...
Definition: MCSymbol.h:40
Target specific streamer interface.
Definition: MCStreamer.h:93
Represents a location in source code.
Definition: SMLoc.h:23
LLVM Value Representation.
Definition: Value.h:74
void emitLiteral(MCSymbol *LblSym, const MCExpr *Value, bool SwitchLiteralSection, SMLoc L) override
void startLiteralSection(MCSection *Section) override
void emitLiteral(MCSymbol *LblSym, const MCExpr *Value, bool SwitchLiteralSection, SMLoc L) override
void startLiteralSection(MCSection *Section) override
virtual void startLiteralSection(MCSection *BaseSection)=0
virtual void emitLiteralPosition()=0
virtual void emitLiteral(MCSymbol *LblSym, const MCExpr *Value, bool SwitchLiteralSection, SMLoc L=SMLoc())=0
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