LLVM
8.0.1
|
#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 *HandlerLabel) |
void | serializeToFaultMapSection () |
void | reset () |
Static Public Member Functions | |
static const char * | faultTypeToString (FaultKind) |
Definition at line 27 of file FaultMaps.h.
Enumerator | |
---|---|
FaultingLoad | |
FaultingLoadStore | |
FaultingStore | |
FaultKindMax |
Definition at line 29 of file FaultMaps.h.
|
explicit |
Definition at line 29 of file FaultMaps.cpp.
|
static |
Definition at line 108 of file FaultMaps.cpp.
References FaultingLoad, FaultingLoadStore, FaultingStore, llvm_unreachable, and llvm::operator<<().
Referenced by llvm::operator<<(), and serializeToFaultMapSection().
Definition at line 31 of file FaultMaps.cpp.
References llvm::MCSymbolRefExpr::create(), llvm::MCBinaryExpr::createSub(), llvm::MCContext::createTempSymbol(), llvm::AsmPrinter::CurrentFnSym, llvm::AsmPrinter::CurrentFnSymForSize, and llvm::AsmPrinter::OutStreamer.
Referenced by EmitNops().
|
inline |
Definition at line 42 of file FaultMaps.h.
References FaultKindMax, llvm::MCSymbol::getName(), and Kind.
Referenced by llvm::X86AsmPrinter::doInitialization().
void FaultMaps::serializeToFaultMapSection | ( | ) |
Definition at line 50 of file FaultMaps.cpp.
References llvm::dbgs(), llvm::MCStreamer::EmitIntValue(), llvm::MCStreamer::EmitLabel(), llvm::MCStreamer::EmitSymbolValue(), llvm::MCStreamer::EmitValue(), llvm::Fault, FaultMapVersion, faultTypeToString(), llvm::MCObjectFileInfo::getFaultMapSection(), llvm::MCContext::getObjectFileInfo(), llvm::MCContext::getOrCreateSymbol(), LLVM_DEBUG, llvm::AsmPrinter::OutStreamer, and llvm::MCStreamer::SwitchSection().
Referenced by llvm::X86AsmPrinter::EmitEndOfAsmFile().