LLVM
8.0.1
|
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"
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 | |
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.
#define DEBUG_TYPE "wasm-eh-restore-stack-pointer" |
Definition at line 25 of file WebAssemblyEHRestoreStackPointer.cpp.
INITIALIZE_PASS | ( | WebAssemblyEHRestoreStackPointer | , |
DEBUG_TYPE | , | ||
"Restore Stack Pointer for Exception Handling" | , | ||
true | , | ||
false | |||
) |
Definition at line 47 of file WebAssemblyEHRestoreStackPointer.cpp.
References llvm::dbgs(), llvm::TargetSubtargetInfo::getFrameLowering(), llvm::MachineFunction::getName(), llvm::MachineFunction::getSubtarget(), llvm::WebAssembly::isCatch(), and LLVM_DEBUG.