LLVM 23.0.0git
X86WinEHUnwindV2.cpp File Reference

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "x86-wineh-unwindv2"

Functions

 STATISTIC (MeetsUnwindV2Criteria, "Number of functions that meet Unwind v2 criteria")
 STATISTIC (FailsUnwindV2Criteria, "Number of functions that fail Unwind v2 criteria")
 INITIALIZE_PASS (X86WinEHUnwindV2, "x86-wineh-unwindv2", "Analyze and emit instructions for Win64 Unwind v2", false, false) FunctionPass *llvm
DebugLoc findDebugLoc (const MachineBasicBlock &MBB)

Variables

static cl::opt< unsignedUnwindCodeThreshold ("x86-wineh-unwindv2-unwind-codes-threshold", cl::Hidden, cl::desc("Maximum number of unwind codes before " "splitting into a new unwind info."), cl::init(UINT8_MAX))
static cl::opt< unsignedForceMode ("x86-wineh-unwindv2-force-mode", cl::Hidden, cl::desc("Overwrites the Unwind v2 mode for testing purposes."))
static cl::opt< unsignedInstructionCountThreshold ("x86-wineh-unwindv2-instruction-count-threshold", cl::Hidden, cl::desc("Maximum number of (approximate) instructions before splitting " "into a new unwind info."), cl::init(600))

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "x86-wineh-unwindv2"

Definition at line 29 of file X86WinEHUnwindV2.cpp.

Function Documentation

◆ findDebugLoc()

DebugLoc findDebugLoc ( const MachineBasicBlock & MBB)

Definition at line 110 of file X86WinEHUnwindV2.cpp.

References llvm::DebugLoc::getUnknown(), MBB, and MI.

◆ INITIALIZE_PASS()

INITIALIZE_PASS ( X86WinEHUnwindV2 ,
"x86-wineh-unwindv2" ,
"Analyze and emit instructions for Win64 Unwind v2" ,
false ,
false  )

Definition at line 102 of file X86WinEHUnwindV2.cpp.

References llvm::createX86WinEHUnwindV2Pass().

◆ STATISTIC() [1/2]

STATISTIC ( FailsUnwindV2Criteria ,
"Number of functions that fail Unwind v2 criteria"  )

◆ STATISTIC() [2/2]

STATISTIC ( MeetsUnwindV2Criteria ,
"Number of functions that meet Unwind v2 criteria"  )

Variable Documentation

◆ ForceMode

cl::opt< unsigned > ForceMode("x86-wineh-unwindv2-force-mode", cl::Hidden, cl::desc("Overwrites the Unwind v2 mode for testing purposes.")) ( "x86-wineh-unwindv2-force-mode" ,
cl::Hidden ,
cl::desc("Overwrites the Unwind v2 mode for testing purposes.")  )
static

◆ InstructionCountThreshold

cl::opt< unsigned > InstructionCountThreshold("x86-wineh-unwindv2-instruction-count-threshold", cl::Hidden, cl::desc("Maximum number of (approximate) instructions before splitting " "into a new unwind info."), cl::init(600)) ( "x86-wineh-unwindv2-instruction-count-threshold" ,
cl::Hidden ,
cl::desc("Maximum number of (approximate) instructions before splitting " "into a new unwind info.") ,
cl::init(600)  )
static

◆ UnwindCodeThreshold

cl::opt< unsigned > UnwindCodeThreshold("x86-wineh-unwindv2-unwind-codes-threshold", cl::Hidden, cl::desc("Maximum number of unwind codes before " "splitting into a new unwind info."), cl::init(UINT8_MAX)) ( "x86-wineh-unwindv2-unwind-codes-threshold" ,
cl::Hidden ,
cl::desc("Maximum number of unwind codes before " "splitting into a new unwind info.") ,
cl::init(UINT8_MAX)  )
static