LLVM  14.0.0git
PPCTargetStreamer.h
Go to the documentation of this file.
1 //===- PPCTargetStreamer.h - PPC 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_POWERPC_PPCTARGETSTREAMER_H
10 #define LLVM_LIB_TARGET_POWERPC_PPCTARGETSTREAMER_H
11 
12 #include "llvm/ADT/StringRef.h"
13 #include "llvm/MC/MCStreamer.h"
14 
15 namespace llvm {
16 
17 class MCExpr;
18 class MCSymbol;
19 class MCSymbolELF;
20 
22 public:
24  ~PPCTargetStreamer() override;
25 
26  virtual void emitTCEntry(const MCSymbol &S,
28  virtual void emitMachine(StringRef CPU) = 0;
29  virtual void emitAbiVersion(int AbiVersion) = 0;
30  virtual void emitLocalEntry(MCSymbolELF *S, const MCExpr *LocalOffset) = 0;
31 };
32 
33 } // end namespace llvm
34 
35 #endif // LLVM_LIB_TARGET_POWERPC_PPCTARGETSTREAMER_H
llvm
This file implements support for optimizing divisions by a constant.
Definition: AllocatorList.h:23
llvm::MCSymbol
MCSymbol - Instances of this class represent a symbol name in the MC file, and MCSymbols are created ...
Definition: MCSymbol.h:41
StringRef.h
llvm::PPCTargetStreamer::~PPCTargetStreamer
~PPCTargetStreamer() override
llvm::MCSymbolELF
Definition: MCSymbolELF.h:14
llvm::MCStreamer
Streaming machine code generation interface.
Definition: MCStreamer.h:199
llvm::MCTargetStreamer
Target specific streamer interface.
Definition: MCStreamer.h:91
llvm::lltok::Kind
Kind
Definition: LLToken.h:18
llvm::MCSymbolRefExpr::VariantKind
VariantKind
Definition: MCExpr.h:194
llvm::PPCTargetStreamer::emitTCEntry
virtual void emitTCEntry(const MCSymbol &S, MCSymbolRefExpr::VariantKind Kind)=0
llvm::PPCTargetStreamer::emitLocalEntry
virtual void emitLocalEntry(MCSymbolELF *S, const MCExpr *LocalOffset)=0
llvm::StringRef
StringRef - Represent a constant reference to a string, i.e.
Definition: StringRef.h:58
llvm::PPCTargetStreamer::emitAbiVersion
virtual void emitAbiVersion(int AbiVersion)=0
S
add sub stmia L5 ldr r0 bl L_printf $stub Instead of a and a wouldn t it be better to do three moves *Return an aggregate type is even return S
Definition: README.txt:210
llvm::PPCTargetStreamer::PPCTargetStreamer
PPCTargetStreamer(MCStreamer &S)
Definition: PPCMCTargetDesc.cpp:58
llvm::PPCTargetStreamer::emitMachine
virtual void emitMachine(StringRef CPU)=0
MCStreamer.h
llvm::PPCTargetStreamer
Definition: PPCTargetStreamer.h:21
llvm::MCExpr
Base class for the full range of assembler expressions which are needed for parsing.
Definition: MCExpr.h:35
llvm::ISD::MCSymbol
@ MCSymbol
Definition: ISDOpcodes.h:172