LLVM
15.0.0git
|
#include "CodeGen/AsmPrinter/WinException.h"
Public Member Functions | |
WinException (AsmPrinter *A) | |
~WinException () override | |
void | endModule () override |
Emit all exception information that should come after the content. More... | |
void | beginFunction (const MachineFunction *MF) override |
Gather pre-function exception information. More... | |
void | markFunctionEnd () override |
void | endFunction (const MachineFunction *) override |
Gather and emit post-function exception information. More... | |
void | beginFunclet (const MachineBasicBlock &MBB, MCSymbol *Sym) override |
Emit target-specific EH funclet machinery. More... | |
void | endFunclet () override |
![]() | |
EHStreamer (AsmPrinter *A) | |
~EHStreamer () override | |
void | setSymbolSize (const MCSymbol *Sym, uint64_t Size) override |
For symbols that have a size designated (e.g. More... | |
void | beginInstruction (const MachineInstr *MI) override |
Process beginning of an instruction. More... | |
void | endInstruction () override |
Process end of an instruction. More... | |
![]() | |
virtual | ~AsmPrinterHandler () |
Pin vtable to this file. More... | |
virtual void | beginModule (Module *M) |
virtual void | beginFragment (const MachineBasicBlock *MBB, ExceptionSymbolProvider ESP) |
virtual void | endFragment () |
virtual void | beginBasicBlock (const MachineBasicBlock &MBB) |
Process beginning of a basic block during basic block sections. More... | |
virtual void | endBasicBlock (const MachineBasicBlock &MBB) |
Process end of a basic block during basic block sections. More... | |
Additional Inherited Members | |
![]() | |
static bool | callToNoUnwindFunction (const MachineInstr *MI) |
Return ‘true’ if this is a call to a function marked ‘nounwind’. More... | |
![]() | |
using | RangeMapType = DenseMap< MCSymbol *, PadRange > |
![]() | |
void | computeActionsTable (const SmallVectorImpl< const LandingPadInfo * > &LandingPads, SmallVectorImpl< ActionEntry > &Actions, SmallVectorImpl< unsigned > &FirstActions) |
Compute the actions table and gather the first action index for each landing pad site. More... | |
void | computePadMap (const SmallVectorImpl< const LandingPadInfo * > &LandingPads, RangeMapType &PadMap) |
virtual void | computeCallSiteTable (SmallVectorImpl< CallSiteEntry > &CallSites, SmallVectorImpl< CallSiteRange > &CallSiteRanges, const SmallVectorImpl< const LandingPadInfo * > &LandingPads, const SmallVectorImpl< unsigned > &FirstActions) |
Compute the call-site table and the call-site ranges. More... | |
MCSymbol * | emitExceptionTable () |
Emit landing pads and actions. More... | |
virtual void | emitTypeInfos (unsigned TTypeEncoding, MCSymbol *TTBaseLabel) |
![]() | |
static unsigned | sharedTypeIDs (const LandingPadInfo *L, const LandingPadInfo *R) |
How many leading type ids two landing pads have in common. More... | |
static bool | isFilterEHSelector (int Selector) |
static bool | isCleanupEHSelector (int Selector) |
static bool | isCatchEHSelector (int Selector) |
![]() | |
AsmPrinter * | Asm |
Target of directive emission. More... | |
MachineModuleInfo * | MMI |
Collected machine module information. More... | |
Definition at line 26 of file WinException.h.
WinException::WinException | ( | AsmPrinter * | A | ) |
Definition at line 35 of file WinException.cpp.
References llvm::EHStreamer::Asm, llvm::TargetMachine::getTargetTriple(), llvm::Triple::isAArch64(), llvm::Triple::isThumb(), and llvm::AsmPrinter::TM.
|
overridedefault |
|
overridevirtual |
Emit target-specific EH funclet machinery.
Reimplemented from llvm::AsmPrinterHandler.
Definition at line 198 of file WinException.cpp.
References llvm::EHStreamer::Asm, llvm::AsmPrinter::emitAlignment(), F, llvm::MachineBasicBlock::getAlignment(), llvm::MachineFunction::getAlignment(), llvm::TargetLoweringObjectFile::getCFIPersonalitySymbol(), llvm::MachineFunction::getFunction(), getMCSymbolForMBB(), llvm::AsmPrinter::getObjFileLowering(), llvm::COFF::IMAGE_SYM_CLASS_STATIC, llvm::COFF::IMAGE_SYM_DTYPE_FUNCTION, llvm::MachineBasicBlock::isCleanupFuncletEntry(), llvm::max(), MBB, llvm::AsmPrinter::MF, llvm::EHStreamer::MMI, llvm::AsmPrinter::OutStreamer, llvm::COFF::SCT_COMPLEX_TYPE_SHIFT, and llvm::AsmPrinter::TM.
Referenced by beginFunction().
|
overridevirtual |
Gather pre-function exception information.
Assumes being emitted immediately after the function entry point.
Implements llvm::AsmPrinterHandler.
Definition at line 63 of file WinException.cpp.
References llvm::EHStreamer::Asm, beginFunclet(), llvm::classifyEHPersonality(), llvm::AsmPrinter::CurrentFnSym, llvm::GlobalValue::dropLLVMManglingEscape(), llvm::dwarf::DW_EH_PE_omit, F, llvm::MachineFunction::front(), llvm::MachineFunction::getFunction(), llvm::MachineFunction::getLandingPads(), llvm::TargetLoweringObjectFile::getLSDAEncoding(), llvm::Value::getName(), llvm::AsmPrinter::getObjFileLowering(), llvm::TargetLoweringObjectFile::getPersonalityEncoding(), llvm::MachineFunction::getWinEHFuncInfo(), llvm::MachineFunction::hasEHFunclets(), llvm::MachineFunction::hasWinCFI(), llvm::isNoOpWithoutInvoke(), llvm::AsmPrinter::MAI, llvm::MSVC_X86SEH, llvm::AsmPrinter::needsSEHMoves(), llvm::Unknown, and llvm::MCAsmInfo::usesWindowsCFI().
|
overridevirtual |
Reimplemented from llvm::AsmPrinterHandler.
Definition at line 249 of file WinException.cpp.
References llvm::EHStreamer::Asm, and llvm::AsmPrinter::OutStreamer.
|
overridevirtual |
Gather and emit post-function exception information.
endFunction - Gather and emit post-function exception information.
Implements llvm::AsmPrinterHandler.
Definition at line 124 of file WinException.cpp.
References llvm::EHStreamer::Asm, llvm::classifyEHPersonality(), llvm::CoreCLR, llvm::EHStreamer::emitExceptionTable(), F, llvm::MachineFunction::getCatchretTargets(), llvm::MachineFunction::getFunction(), llvm::MachineFunction::hasEHFunclets(), llvm::isFuncletEHPersonality(), llvm::MSVC_CXX, llvm::MSVC_TableSEH, llvm::MSVC_X86SEH, llvm::AsmPrinter::OutStreamer, llvm::MachineFunction::tidyLandingPads(), and llvm::Unknown.
|
overridevirtual |
Emit all exception information that should come after the content.
endModule - Emit all exception information that should come after the content.
Implements llvm::AsmPrinterHandler.
Definition at line 47 of file WinException.cpp.
References llvm::EHStreamer::Asm, F, llvm::MCObjectFileInfo::getGEHContSection(), llvm::MachineModuleInfo::getModule(), llvm::MCContext::getObjectFileInfo(), llvm::AsmPrinter::getSymbol(), M, llvm::EHStreamer::MMI, llvm::AsmPrinter::OutContext, llvm::AsmPrinter::OutStreamer, and S.
|
overridevirtual |
Reimplemented from llvm::AsmPrinterHandler.
Definition at line 116 of file WinException.cpp.
References llvm::EHStreamer::Asm, and llvm::AsmPrinter::OutStreamer.