|
LLVM 22.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 95 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(), and llvm::MCBinaryExpr::createSub().
|
inline |
Definition at line 37 of file FaultMaps.h.
| void FaultMaps::serializeToFaultMapSection | ( | ) |
Definition at line 45 of file FaultMaps.cpp.
References llvm::dbgs(), llvm::MCStreamer::emitInt16(), llvm::MCStreamer::emitInt32(), llvm::MCStreamer::emitIntValue(), llvm::MCStreamer::emitLabel(), FaultMapVersion, llvm::MCObjectFileInfo::getFaultMapSection(), llvm::MCContext::getObjectFileInfo(), llvm::MCContext::getOrCreateSymbol(), LLVM_DEBUG, and llvm::MCStreamer::switchSection().