LLVM 23.0.0git
AArch64ConditionOptimizer.cpp File Reference

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "aarch64-condopt"

Functions

 STATISTIC (NumConditionsAdjusted, "Number of conditions adjusted")
 INITIALIZE_PASS_BEGIN (AArch64ConditionOptimizer, "aarch64-condopt", "AArch64 CondOpt Pass", false, false) INITIALIZE_PASS_END(AArch64ConditionOptimizer
static bool isCmpInstruction (unsigned Opc)
static bool isCSINCInstruction (unsigned Opc)
static int getComplementOpc (int Opc)
static AArch64CC::CondCode getAdjustedCmp (AArch64CC::CondCode Cmp)
static bool parseCond (ArrayRef< MachineOperand > Cond, AArch64CC::CondCode &CC)
static bool isGreaterThan (AArch64CC::CondCode Cmp)
static bool isLessThan (AArch64CC::CondCode Cmp)

Variables

aarch64 condopt
aarch64 AArch64 CondOpt Pass
aarch64 AArch64 CondOpt false

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "aarch64-condopt"

Definition at line 96 of file AArch64ConditionOptimizer.cpp.

Function Documentation

◆ getAdjustedCmp()

◆ getComplementOpc()

int getComplementOpc ( int Opc)
static

Definition at line 265 of file AArch64ConditionOptimizer.cpp.

References llvm_unreachable, and Opc.

◆ INITIALIZE_PASS_BEGIN()

INITIALIZE_PASS_BEGIN ( AArch64ConditionOptimizer ,
"aarch64-condopt" ,
"AArch64 CondOpt Pass" ,
false ,
false  )

◆ isCmpInstruction()

bool isCmpInstruction ( unsigned Opc)
static

Definition at line 206 of file AArch64ConditionOptimizer.cpp.

References Opc.

◆ isCSINCInstruction()

bool isCSINCInstruction ( unsigned Opc)
static

Definition at line 220 of file AArch64ConditionOptimizer.cpp.

References Opc.

◆ isGreaterThan()

bool isGreaterThan ( AArch64CC::CondCode Cmp)
static

Definition at line 416 of file AArch64ConditionOptimizer.cpp.

References llvm::AArch64CC::GT, and llvm::AArch64CC::HI.

◆ isLessThan()

bool isLessThan ( AArch64CC::CondCode Cmp)
static

Definition at line 420 of file AArch64ConditionOptimizer.cpp.

References llvm::AArch64CC::LO, and llvm::AArch64CC::LT.

◆ parseCond()

bool parseCond ( ArrayRef< MachineOperand > Cond,
AArch64CC::CondCode & CC )
static

Definition at line 375 of file AArch64ConditionOptimizer.cpp.

References assert(), Cond, and llvm::getImm().

◆ STATISTIC()

STATISTIC ( NumConditionsAdjusted ,
"Number of conditions adjusted"  )

References MRI, TII, and TRI.

Variable Documentation

◆ condopt

aarch64 condopt

Definition at line 143 of file AArch64ConditionOptimizer.cpp.

◆ false

aarch64 AArch64 CondOpt false

Definition at line 144 of file AArch64ConditionOptimizer.cpp.

◆ Pass

aarch64 AArch64 CondOpt Pass

Definition at line 144 of file AArch64ConditionOptimizer.cpp.