9#ifndef LLVM_CODEGEN_FAULTMAPS_H
10#define LLVM_CODEGEN_FAULTMAPS_H
37 FunctionInfos.clear();
41 static const char *WFMP;
45 const MCExpr *FaultingOffsetExpr =
nullptr;
46 const MCExpr *HandlerOffsetExpr =
nullptr;
48 FaultInfo() =
default;
51 const MCExpr *HandlerOffset)
52 : Kind(Kind), FaultingOffsetExpr(FaultingOffset),
53 HandlerOffsetExpr(HandlerOffset) {}
56 using FunctionFaultInfos = std::vector<FaultInfo>;
60 struct MCSymbolComparator {
61 bool operator()(
const MCSymbol *
LHS,
const MCSymbol *
RHS)
const {
62 return LHS->getName() <
RHS->getName();
66 std::map<const MCSymbol *, FunctionFaultInfos, MCSymbolComparator>
70 void emitFunctionInfo(
const MCSymbol *FnLabel,
const FunctionFaultInfos &FFI);
This class is intended to be used as a driving class for all asm writers.
LLVM_ABI void recordFaultingOp(FaultKind FaultTy, const MCSymbol *FaultingLabel, const MCSymbol *HandlerLabel)
LLVM_ABI void serializeToFaultMapSection()
LLVM_ABI FaultMaps(AsmPrinter &AP)
Base class for the full range of assembler expressions which are needed for parsing.
MCSymbol - Instances of this class represent a symbol name in the MC file, and MCSymbols are created ...
This is an optimization pass for GlobalISel generic memory operations.