xref: /freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/PPCTargetStreamer.h (revision e6bfd18d21b225af6a0ed67ceeaf1293b7b9eba5)
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/MCExpr.h"
14 #include "llvm/MC/MCStreamer.h"
15 
16 namespace llvm {
17 
18 class MCExpr;
19 class MCSymbol;
20 class MCSymbolELF;
21 
22 class PPCTargetStreamer : public MCTargetStreamer {
23 public:
24   PPCTargetStreamer(MCStreamer &S);
25   ~PPCTargetStreamer() override;
26 
27   virtual void emitTCEntry(const MCSymbol &S,
28                            MCSymbolRefExpr::VariantKind Kind) = 0;
29   virtual void emitMachine(StringRef CPU) = 0;
30   virtual void emitAbiVersion(int AbiVersion) = 0;
31   virtual void emitLocalEntry(MCSymbolELF *S, const MCExpr *LocalOffset) = 0;
32 };
33 
34 } // end namespace llvm
35 
36 #endif // LLVM_LIB_TARGET_POWERPC_PPCTARGETSTREAMER_H
37