diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2020-07-26 19:36:28 +0000 | 
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2020-07-26 19:36:28 +0000 | 
| commit | cfca06d7963fa0909f90483b42a6d7d194d01e08 (patch) | |
| tree | 209fb2a2d68f8f277793fc8df46c753d31bc853b /llvm/lib/Target/WebAssembly/WebAssemblyFrameLowering.h | |
| parent | 706b4fc47bbc608932d3b491ae19a3b9cde9497b (diff) | |
Notes
Diffstat (limited to 'llvm/lib/Target/WebAssembly/WebAssemblyFrameLowering.h')
| -rw-r--r-- | llvm/lib/Target/WebAssembly/WebAssemblyFrameLowering.h | 11 | 
1 files changed, 10 insertions, 1 deletions
| diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyFrameLowering.h b/llvm/lib/Target/WebAssembly/WebAssemblyFrameLowering.h index fdc0f561dcd9..e16f639ff22b 100644 --- a/llvm/lib/Target/WebAssembly/WebAssemblyFrameLowering.h +++ b/llvm/lib/Target/WebAssembly/WebAssemblyFrameLowering.h @@ -18,7 +18,6 @@  #include "llvm/CodeGen/TargetFrameLowering.h"  namespace llvm { -class MachineFrameInfo;  class WebAssemblyFrameLowering final : public TargetFrameLowering {  public: @@ -44,6 +43,7 @@ public:    bool hasFP(const MachineFunction &MF) const override;    bool hasReservedCallFrame(const MachineFunction &MF) const override; +  DwarfFrameBase getDwarfFrameBase(const MachineFunction &MF) const override;    bool needsPrologForEH(const MachineFunction &MF) const; @@ -53,6 +53,15 @@ public:                         MachineBasicBlock::iterator &InsertStore,                         const DebugLoc &DL) const; +  static unsigned getSPReg(const MachineFunction &MF); +  static unsigned getFPReg(const MachineFunction &MF); +  static unsigned getOpcConst(const MachineFunction &MF); +  static unsigned getOpcAdd(const MachineFunction &MF); +  static unsigned getOpcSub(const MachineFunction &MF); +  static unsigned getOpcAnd(const MachineFunction &MF); +  static unsigned getOpcGlobGet(const MachineFunction &MF); +  static unsigned getOpcGlobSet(const MachineFunction &MF); +  private:    bool hasBP(const MachineFunction &MF) const;    bool needsSPForLocalFrame(const MachineFunction &MF) const; | 
