LLVM 22.0.0git
X86DomainReassignment.cpp File Reference

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "x86-domain-reassignment"
#define GET_EGPR_IF_ENABLED(OPC)

Functions

 STATISTIC (NumClosuresConverted, "Number of closures converted by the pass")
static bool usedAsAddr (const MachineInstr &MI, Register Reg, const TargetInstrInfo *TII)
 INITIALIZE_PASS (X86DomainReassignment, "x86-domain-reassignment", "X86 Domain Reassignment Pass", false, false) FunctionPass *llvm
 Returns an instance of the Domain Reassignment pass.

Variables

static cl::opt< boolDisableX86DomainReassignment ("disable-x86-domain-reassignment", cl::Hidden, cl::desc("X86: Disable Virtual Register Reassignment."), cl::init(false))

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "x86-domain-reassignment"

Definition at line 32 of file X86DomainReassignment.cpp.

◆ GET_EGPR_IF_ENABLED

#define GET_EGPR_IF_ENABLED ( OPC)
Value:
STI->hasEGPR() ? OPC##_EVEX : OPC

Referenced by llvm::X86TargetLowering::EmitInstrWithCustomInserter(), and getLoadStoreRegOpcode().

Function Documentation

◆ INITIALIZE_PASS()

INITIALIZE_PASS ( X86DomainReassignment ,
"x86-domain-reassignment" ,
"X86 Domain Reassignment Pass" ,
false ,
false  )

Returns an instance of the Domain Reassignment pass.

Definition at line 838 of file X86DomainReassignment.cpp.

References llvm::createX86DomainReassignmentPass().

◆ STATISTIC()

STATISTIC ( NumClosuresConverted ,
"Number of closures converted by the pass"  )

◆ usedAsAddr()

bool usedAsAddr ( const MachineInstr & MI,
Register Reg,
const TargetInstrInfo * TII )
static
Returns
true when Reg is used as part of an address calculation in MI.

Definition at line 524 of file X86DomainReassignment.cpp.

References llvm::X86::AddrNumOperands, llvm::X86II::getMemoryOperandNo(), llvm::X86II::getOperandBias(), MI, Reg, and TII.

Variable Documentation

◆ DisableX86DomainReassignment

cl::opt< bool > DisableX86DomainReassignment("disable-x86-domain-reassignment", cl::Hidden, cl::desc("X86: Disable Virtual Register Reassignment."), cl::init(false)) ( "disable-x86-domain-reassignment" ,
cl::Hidden ,
cl::desc("X86: Disable Virtual Register Reassignment.") ,
cl::init(false)  )
static