LLVM  7.0.0
Macros | Functions
WebAssemblyLateEHPrepare.cpp File Reference

Does various transformations for exception handling. More...

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

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "wasm-exception-prepare"
 

Functions

 INITIALIZE_PASS (WebAssemblyLateEHPrepare, DEBUG_TYPE, "WebAssembly Exception Preparation", false, false) FunctionPass *llvm
 
MachineBasicBlock * GetMatchingEHPad (MachineInstr *MI)
 
static void EraseBBAndChildren (MachineBasicBlock *MBB)
 

Detailed Description

Does various transformations for exception handling.

Definition in file WebAssemblyLateEHPrepare.cpp.

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "wasm-exception-prepare"

Definition at line 24 of file WebAssemblyLateEHPrepare.cpp.

Function Documentation

◆ EraseBBAndChildren()

static void EraseBBAndChildren ( MachineBasicBlock *  MBB)
static

Definition at line 88 of file WebAssemblyLateEHPrepare.cpp.

References assert(), llvm::SmallVectorTemplateCommon< T >::begin(), llvm::MachineBasicBlock::begin(), llvm::ISD::BR, llvm::BuildMI(), llvm::Catch, llvm::ISD::CATCHRET, llvm::WebAssembly::ClangCallTerminateFn, llvm::ISD::CLEANUPRET, llvm::WebAssembly::CxaRethrowFn, llvm::SmallVectorBase::empty(), llvm::SmallVectorTemplateCommon< T >::end(), llvm::MachineBasicBlock::end(), llvm::MachineBasicBlock::erase(), llvm::MachineBasicBlock::eraseFromParent(), llvm::MachineInstr::eraseFromParent(), llvm::SmallVectorTemplateCommon< T >::front(), llvm::MachineInstr::getDebugLoc(), llvm::MCAsmInfo::getExceptionHandlingType(), llvm::MachineFunction::getFunction(), llvm::MachineOperand::getGlobal(), GetMatchingEHPad(), llvm::MachineOperand::getMBB(), llvm::TargetMachine::getMCAsmInfo(), llvm::Value::getName(), llvm::MachineInstr::getOpcode(), llvm::MachineInstr::getOperand(), llvm::MachineOperand::getReg(), llvm::MachineFunction::getSubtarget(), llvm::MachineFunction::getTarget(), llvm::MachineFunction::getWasmEHFuncInfo(), llvm::Function::hasPersonalityFn(), llvm::MachineBasicBlock::insert(), llvm::WebAssembly::isCatch(), llvm::WebAssembly::isCatchTerminatePad(), llvm::MachineOperand::isGlobal(), llvm::make_range(), MI, llvm::SmallVectorImpl< T >::pop_back_val(), llvm::MachineBasicBlock::predecessors(), llvm::SmallVectorTemplateBase< T, isPodLike< T >::value >::push_back(), llvm::MachineBasicBlock::removeSuccessor(), llvm::WebAssembly::StdTerminateFn, llvm::MachineBasicBlock::successors(), TII, and llvm::Wasm.

◆ GetMatchingEHPad()

MachineBasicBlock* GetMatchingEHPad ( MachineInstr *  MI)

◆ INITIALIZE_PASS()

INITIALIZE_PASS ( WebAssemblyLateEHPrepare  ,
DEBUG_TYPE  ,
"WebAssembly Exception Preparation"  ,
false  ,
false   
)

Definition at line 49 of file WebAssemblyLateEHPrepare.cpp.