LLVM 20.0.0git
|
This file remove instruction after trap. More...
#include "WebAssembly.h"
#include "WebAssemblyUtilities.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/CodeGen/MachineBlockFrequencyInfo.h"
#include "llvm/CodeGen/Passes.h"
#include "llvm/MC/MCInstrDesc.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/raw_ostream.h"
Go to the source code of this file.
Macros | |
#define | DEBUG_TYPE "wasm-clean-code-after-trap" |
Functions | |
INITIALIZE_PASS (WebAssemblyCleanCodeAfterTrap, DEBUG_TYPE, "WebAssembly Clean Code After Trap", false, false) FunctionPass *llvm | |
This file remove instruction after trap.
llvm.trap
will be convert as unreachable
which is terminator. Instruction after terminator will cause validation failed.
Definition in file WebAssemblyCleanCodeAfterTrap.cpp.
#define DEBUG_TYPE "wasm-clean-code-after-trap" |
Definition at line 26 of file WebAssemblyCleanCodeAfterTrap.cpp.
INITIALIZE_PASS | ( | WebAssemblyCleanCodeAfterTrap | , |
DEBUG_TYPE | , | ||
"WebAssembly Clean Code After Trap" | , | ||
false | , | ||
false | |||
) |
Definition at line 43 of file WebAssemblyCleanCodeAfterTrap.cpp.