diff options
Diffstat (limited to 'llvm/lib/Target/WebAssembly/WebAssemblyFrameLowering.h')
| -rw-r--r-- | llvm/lib/Target/WebAssembly/WebAssemblyFrameLowering.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyFrameLowering.h b/llvm/lib/Target/WebAssembly/WebAssemblyFrameLowering.h index e16f639ff22b..d30a3fa52d73 100644 --- a/llvm/lib/Target/WebAssembly/WebAssemblyFrameLowering.h +++ b/llvm/lib/Target/WebAssembly/WebAssemblyFrameLowering.h @@ -43,6 +43,7 @@ public: bool hasFP(const MachineFunction &MF) const override; bool hasReservedCallFrame(const MachineFunction &MF) const override; + bool isSupportedStackID(TargetStackID::Value ID) const override; DwarfFrameBase getDwarfFrameBase(const MachineFunction &MF) const override; bool needsPrologForEH(const MachineFunction &MF) const; @@ -53,6 +54,11 @@ public: MachineBasicBlock::iterator &InsertStore, const DebugLoc &DL) const; + // Returns the index of the WebAssembly local to which the stack object + // FrameIndex in MF should be allocated, or None. + static Optional<unsigned> getLocalForStackObject(MachineFunction &MF, + int FrameIndex); + static unsigned getSPReg(const MachineFunction &MF); static unsigned getFPReg(const MachineFunction &MF); static unsigned getOpcConst(const MachineFunction &MF); |
