LLVM 22.0.0git
SIOptimizeExecMasking.cpp File Reference

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "si-optimize-exec-masking"

Functions

 INITIALIZE_PASS_BEGIN (SIOptimizeExecMaskingLegacy, DEBUG_TYPE, "SI optimize exec mask operations", false, false) INITIALIZE_PASS_END(SIOptimizeExecMaskingLegacy
static Register isLogicalOpOnExec (const MachineInstr &MI)
 If MI is a logical operation on an exec value, return the register copied to.
static unsigned getSaveExecOp (unsigned Opc)
static bool isLiveOut (const MachineBasicBlock &MBB, unsigned Reg)

Variables

 DEBUG_TYPE
SI optimize exec mask operations
SI optimize exec mask false

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "si-optimize-exec-masking"

Definition at line 24 of file SIOptimizeExecMasking.cpp.

Function Documentation

◆ getSaveExecOp()

unsigned getSaveExecOp ( unsigned Opc)
static

Definition at line 197 of file SIOptimizeExecMasking.cpp.

References Opc.

◆ INITIALIZE_PASS_BEGIN()

INITIALIZE_PASS_BEGIN ( SIOptimizeExecMaskingLegacy ,
DEBUG_TYPE ,
"SI optimize exec mask operations" ,
false ,
false  )

◆ isLiveOut()

bool isLiveOut ( const MachineBasicBlock & MBB,
unsigned Reg )
static

Definition at line 344 of file SIOptimizeExecMasking.cpp.

References MBB, and Reg.

Referenced by llvm::MachineBasicBlock::SplitCriticalEdge().

◆ isLogicalOpOnExec()

Register isLogicalOpOnExec ( const MachineInstr & MI)
static

If MI is a logical operation on an exec value, return the register copied to.

Definition at line 158 of file SIOptimizeExecMasking.cpp.

References llvm::MachineOperand::getReg(), llvm::MachineOperand::isReg(), and MI.

Variable Documentation

◆ DEBUG_TYPE

DEBUG_TYPE

Definition at line 113 of file SIOptimizeExecMasking.cpp.

◆ false

SI optimize exec mask false

Definition at line 114 of file SIOptimizeExecMasking.cpp.

◆ operations

SI optimize exec mask operations

Definition at line 114 of file SIOptimizeExecMasking.cpp.