LLVM 20.0.0git
|
#include "llvm/CodeGen/FaultMaps.h"
Public Types | |
enum | FaultKind { FaultingLoad = 1 , FaultingLoadStore , FaultingStore , FaultKindMax } |
Public Member Functions | |
FaultMaps (AsmPrinter &AP) | |
void | recordFaultingOp (FaultKind FaultTy, const MCSymbol *FaultingLabel, const MCSymbol *HandlerLabel) |
void | serializeToFaultMapSection () |
void | reset () |
Static Public Member Functions | |
static const char * | faultTypeToString (FaultKind) |
Definition at line 21 of file FaultMaps.h.
Enumerator | |
---|---|
FaultingLoad | |
FaultingLoadStore | |
FaultingStore | |
FaultKindMax |
Definition at line 23 of file FaultMaps.h.
|
explicit |
Definition at line 26 of file FaultMaps.cpp.
|
static |
Definition at line 103 of file FaultMaps.cpp.
References FaultingLoad, FaultingLoadStore, FaultingStore, and llvm_unreachable.
void FaultMaps::recordFaultingOp | ( | FaultKind | FaultTy, |
const MCSymbol * | FaultingLabel, | ||
const MCSymbol * | HandlerLabel | ||
) |
Definition at line 28 of file FaultMaps.cpp.
References llvm::MCSymbolRefExpr::create(), llvm::MCBinaryExpr::createSub(), llvm::AsmPrinter::CurrentFnSym, llvm::AsmPrinter::CurrentFnSymForSize, and llvm::AsmPrinter::OutStreamer.
|
inline |
Definition at line 37 of file FaultMaps.h.
Referenced by llvm::X86AsmPrinter::doInitialization().
void FaultMaps::serializeToFaultMapSection | ( | ) |
Definition at line 45 of file FaultMaps.cpp.
References llvm::dbgs(), FaultMapVersion, llvm::MCObjectFileInfo::getFaultMapSection(), llvm::MCContext::getObjectFileInfo(), llvm::MCContext::getOrCreateSymbol(), LLVM_DEBUG, OS, and llvm::AsmPrinter::OutStreamer.
Referenced by llvm::X86AsmPrinter::emitEndOfAsmFile().