LLVM 20.0.0git
Macros | Functions
X86WinEHState.cpp File Reference
#include "X86.h"
#include "llvm/ADT/PostOrderIterator.h"
#include "llvm/Analysis/CFG.h"
#include "llvm/CodeGen/MachineModuleInfo.h"
#include "llvm/CodeGen/WinEHFuncInfo.h"
#include "llvm/IR/CFG.h"
#include "llvm/IR/EHPersonalities.h"
#include "llvm/IR/Function.h"
#include "llvm/IR/IRBuilder.h"
#include "llvm/IR/Instructions.h"
#include "llvm/IR/IntrinsicInst.h"
#include "llvm/IR/Intrinsics.h"
#include "llvm/IR/IntrinsicsX86.h"
#include "llvm/IR/Module.h"
#include "llvm/Pass.h"
#include "llvm/Support/Debug.h"
#include <deque>

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "winehstate"
 

Functions

 INITIALIZE_PASS (WinEHStatePass, "x86-winehstate", "Insert stores for EH state numbers", false, false) bool WinEHStatePass
 
static bool isIntrinsic (const CallBase &Call, Intrinsic::ID ID)
 
static bool isSehScopeEnd (const CallBase &Call)
 
static bool isSehScopeBegin (const CallBase &Call)
 
static int getPredState (DenseMap< BasicBlock *, int > &FinalStates, Function &F, int ParentBaseState, BasicBlock *BB)
 
static int getSuccState (DenseMap< BasicBlock *, int > &InitialStates, Function &F, int ParentBaseState, BasicBlock *BB)
 

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "winehstate"

Definition at line 36 of file X86WinEHState.cpp.

Function Documentation

◆ getPredState()

static int getPredState ( DenseMap< BasicBlock *, int > &  FinalStates,
Function F,
int  ParentBaseState,
BasicBlock BB 
)
static

◆ getSuccState()

static int getSuccState ( DenseMap< BasicBlock *, int > &  InitialStates,
Function F,
int  ParentBaseState,
BasicBlock BB 
)
static

◆ INITIALIZE_PASS()

INITIALIZE_PASS ( WinEHStatePass  ,
"x86-winehstate"  ,
"Insert stores for EH state numbers"  ,
false  ,
false   
)

Definition at line 124 of file X86WinEHState.cpp.

◆ isIntrinsic()

static bool isIntrinsic ( const CallBase Call,
Intrinsic::ID  ID 
)
static

◆ isSehScopeBegin()

static bool isSehScopeBegin ( const CallBase Call)
static

Definition at line 534 of file X86WinEHState.cpp.

References isIntrinsic().

◆ isSehScopeEnd()

static bool isSehScopeEnd ( const CallBase Call)
static

Definition at line 530 of file X86WinEHState.cpp.

References isIntrinsic().