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 (AArch64ConditionOptimizerLegacy, "aarch64-condopt", "AArch64 CondOpt Pass", false, false) INITIALIZE_PASS_END(AArch64ConditionOptimizerLegacy
static bool isCmpInstruction (unsigned Opc)
static bool isCSINCInstruction (unsigned Opc)
static int getComplementOpc (int Opc)
static AArch64CC::CondCode getAdjustedCmp (AArch64CC::CondCode Cmp)
static AArch64CC::CondCode parseCondCode (ArrayRef< MachineOperand > Cond)
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 94 of file AArch64ConditionOptimizer.cpp.

Function Documentation

◆ getAdjustedCmp()

◆ getComplementOpc()

int getComplementOpc ( int Opc)
static

Definition at line 291 of file AArch64ConditionOptimizer.cpp.

References llvm_unreachable, and Opc.

◆ INITIALIZE_PASS_BEGIN()

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

◆ isCmpInstruction()

bool isCmpInstruction ( unsigned Opc)
static

Definition at line 217 of file AArch64ConditionOptimizer.cpp.

References Opc.

◆ isCSINCInstruction()

bool isCSINCInstruction ( unsigned Opc)
static

Definition at line 231 of file AArch64ConditionOptimizer.cpp.

References Opc.

◆ isGreaterThan()

bool isGreaterThan ( AArch64CC::CondCode Cmp)
static

Definition at line 431 of file AArch64ConditionOptimizer.cpp.

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

◆ isLessThan()

bool isLessThan ( AArch64CC::CondCode Cmp)
static

Definition at line 435 of file AArch64ConditionOptimizer.cpp.

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

◆ parseCondCode()

AArch64CC::CondCode parseCondCode ( ArrayRef< MachineOperand > Cond)
static

◆ STATISTIC()

STATISTIC ( NumConditionsAdjusted ,
"Number of conditions adjusted"  )

References Opc.

Variable Documentation

◆ condopt

aarch64 condopt

Definition at line 153 of file AArch64ConditionOptimizer.cpp.

◆ false

aarch64 AArch64 CondOpt false

Definition at line 154 of file AArch64ConditionOptimizer.cpp.

◆ Pass

aarch64 AArch64 CondOpt Pass

Definition at line 154 of file AArch64ConditionOptimizer.cpp.