LLVM  9.0.0svn
Macros | Functions
WebAssemblyEHRestoreStackPointer.cpp File Reference

After the stack is unwound due to a thrown exception, the __stack_pointer global can point to an invalid address. More...

#include "MCTargetDesc/WebAssemblyMCTargetDesc.h"
#include "WebAssembly.h"
#include "WebAssemblySubtarget.h"
#include "WebAssemblyUtilities.h"
#include "llvm/CodeGen/MachineFrameInfo.h"
#include "llvm/MC/MCAsmInfo.h"
Include dependency graph for WebAssemblyEHRestoreStackPointer.cpp:

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "wasm-eh-restore-stack-pointer"
 

Functions

 INITIALIZE_PASS (WebAssemblyEHRestoreStackPointer, DEBUG_TYPE, "Restore Stack Pointer for Exception Handling", true, false) FunctionPass *llvm
 

Detailed Description

After the stack is unwound due to a thrown exception, the __stack_pointer global can point to an invalid address.

This inserts instructions that restore __stack_pointer global.

Definition in file WebAssemblyEHRestoreStackPointer.cpp.

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "wasm-eh-restore-stack-pointer"

Definition at line 24 of file WebAssemblyEHRestoreStackPointer.cpp.

Function Documentation

◆ INITIALIZE_PASS()

INITIALIZE_PASS ( WebAssemblyEHRestoreStackPointer  ,
DEBUG_TYPE  ,
"Restore Stack Pointer for Exception Handling"  ,
true  ,
false   
)