LLVM: llvm::RISCVCC Namespace Reference (original) (raw)

Enumerations
enum CondCode { COND_EQ, COND_NE, COND_LT, COND_GE, COND_LTU, COND_GEU, COND_INVALID }
Functions
CondCode getInverseBranchCondition (CondCode)
unsigned getBrCond (CondCode CC, unsigned SelectOpc=0)

Enumeration Type Documentation

CondCode

enum llvm::RISCVCC::CondCode

Enumerator
COND_EQ
COND_NE
COND_LT
COND_GE
COND_LTU
COND_GEU
COND_INVALID

Definition at line 56 of file RISCVInstrInfo.h.

Function Documentation

getBrCond()

unsigned llvm::RISCVCC::getBrCond ( RISCVCC::CondCode CC,
unsigned SelectOpc = 0 )

Definition at line 1069 of file RISCVInstrInfo.cpp.

References COND_EQ, COND_GE, COND_GEU, COND_LT, COND_LTU, COND_NE, and llvm_unreachable.

Referenced by EmitLoweredCascadedSelect(), emitSelectPseudo(), and llvm::RISCVInstrInfo::optimizeCondBranch().

getInverseBranchCondition()

RISCVCC::CondCode llvm::RISCVCC::getInverseBranchCondition ( RISCVCC::CondCode CC )

Definition at line 1180 of file RISCVInstrInfo.cpp.

References COND_EQ, COND_GE, COND_GEU, COND_LT, COND_LTU, COND_NE, and llvm_unreachable.

Referenced by llvm::RISCVInstrInfo::commuteInstructionImpl(), and llvm::RISCVInstrInfo::optimizeSelect().