[PowerPC] Convert r+r instructions to r+i (pre and post RA)
[llvm-core.git] / lib / Target / PowerPC / PPCTargetStreamer.h
blob310fea9ef09ff637dc3feb1937aaea32c29982d6
1 //===- PPCTargetStreamer.h - PPC Target Streamer ----------------*- C++ -*-===//
2 //
3 // The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
10 #ifndef LLVM_LIB_TARGET_POWERPC_PPCTARGETSTREAMER_H
11 #define LLVM_LIB_TARGET_POWERPC_PPCTARGETSTREAMER_H
13 #include "llvm/ADT/StringRef.h"
14 #include "llvm/MC/MCStreamer.h"
16 namespace llvm {
18 class MCExpr;
19 class MCSymbol;
20 class MCSymbolELF;
22 class PPCTargetStreamer : public MCTargetStreamer {
23 public:
24 PPCTargetStreamer(MCStreamer &S);
25 ~PPCTargetStreamer() override;
27 virtual void emitTCEntry(const MCSymbol &S) = 0;
28 virtual void emitMachine(StringRef CPU) = 0;
29 virtual void emitAbiVersion(int AbiVersion) = 0;
30 virtual void emitLocalEntry(MCSymbolELF *S, const MCExpr *LocalOffset) = 0;
33 } // end namespace llvm
35 #endif // LLVM_LIB_TARGET_POWERPC_PPCTARGETSTREAMER_H