1 //===- X86TargetStreamer.h ------------------------------*- 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 //===----------------------------------------------------------------------===// 9 10 #ifndef LLVM_LIB_TARGET_X86_MCTARGETDESC_X86TARGETSTREAMER_H 11 #define LLVM_LIB_TARGET_X86_MCTARGETDESC_X86TARGETSTREAMER_H 12 13 #include "llvm/MC/MCStreamer.h" 14 15 namespace llvm { 16 17 /// X86 target streamer implementing x86-only assembly directives. 18 class X86TargetStreamer : public MCTargetStreamer { 19 public: X86TargetStreamer(MCStreamer & S)20 X86TargetStreamer(MCStreamer &S) : MCTargetStreamer(S) {} 21 22 virtual bool emitFPOProc(const MCSymbol *ProcSym, unsigned ParamsSize, 23 SMLoc L = {}) = 0; 24 virtual bool emitFPOEndPrologue(SMLoc L = {}) = 0; 25 virtual bool emitFPOEndProc(SMLoc L = {}) = 0; 26 virtual bool emitFPOData(const MCSymbol *ProcSym, SMLoc L = {}) = 0; 27 virtual bool emitFPOPushReg(unsigned Reg, SMLoc L = {}) = 0; 28 virtual bool emitFPOStackAlloc(unsigned StackAlloc, SMLoc L = {}) = 0; 29 virtual bool emitFPOSetFrame(unsigned Reg, SMLoc L = {}) = 0; 30 }; 31 32 } // end namespace llvm 33 34 #endif 35