LLVM 19.0.0git
Macros | Functions
WebAssemblyCleanCodeAfterTrap.cpp File Reference

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
 

Detailed Description

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.

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "wasm-clean-code-after-trap"

Definition at line 26 of file WebAssemblyCleanCodeAfterTrap.cpp.

Function Documentation

◆ INITIALIZE_PASS()

INITIALIZE_PASS ( WebAssemblyCleanCodeAfterTrap  ,
DEBUG_TYPE  ,
"WebAssembly Clean Code After Trap"  ,
false  ,
false   
)

Definition at line 43 of file WebAssemblyCleanCodeAfterTrap.cpp.