LLVM 20.0.0git
Namespaces | Enumerations | Functions
PPCPredicates.h File Reference

Go to the source code of this file.

Namespaces

namespace  llvm
 This is an optimization pass for GlobalISel generic memory operations.
 
namespace  llvm::PPC
 Define some predicates that are used for node matching.
 

Enumerations

enum  llvm::PPC::Predicate {
  llvm::PPC::PRED_LT = (0 << 5) | 12 , llvm::PPC::PRED_LE = (1 << 5) | 4 , llvm::PPC::PRED_EQ = (2 << 5) | 12 , llvm::PPC::PRED_GE = (0 << 5) | 4 ,
  llvm::PPC::PRED_GT = (1 << 5) | 12 , llvm::PPC::PRED_NE = (2 << 5) | 4 , llvm::PPC::PRED_UN = (3 << 5) | 12 , llvm::PPC::PRED_NU = (3 << 5) | 4 ,
  llvm::PPC::PRED_LT_MINUS = (0 << 5) | 14 , llvm::PPC::PRED_LE_MINUS = (1 << 5) | 6 , llvm::PPC::PRED_EQ_MINUS = (2 << 5) | 14 , llvm::PPC::PRED_GE_MINUS = (0 << 5) | 6 ,
  llvm::PPC::PRED_GT_MINUS = (1 << 5) | 14 , llvm::PPC::PRED_NE_MINUS = (2 << 5) | 6 , llvm::PPC::PRED_UN_MINUS = (3 << 5) | 14 , llvm::PPC::PRED_NU_MINUS = (3 << 5) | 6 ,
  llvm::PPC::PRED_LT_PLUS = (0 << 5) | 15 , llvm::PPC::PRED_LE_PLUS = (1 << 5) | 7 , llvm::PPC::PRED_EQ_PLUS = (2 << 5) | 15 , llvm::PPC::PRED_GE_PLUS = (0 << 5) | 7 ,
  llvm::PPC::PRED_GT_PLUS = (1 << 5) | 15 , llvm::PPC::PRED_NE_PLUS = (2 << 5) | 7 , llvm::PPC::PRED_UN_PLUS = (3 << 5) | 15 , llvm::PPC::PRED_NU_PLUS = (3 << 5) | 7 ,
  llvm::PPC::PRED_SPE = PRED_GT , llvm::PPC::PRED_BIT_SET = 1024 , llvm::PPC::PRED_BIT_UNSET = 1025
}
 Predicate - These are "(BI << 5) | BO" for various predicates. More...
 
enum  llvm::PPC::BranchHintBit { llvm::PPC::BR_NO_HINT = 0x0 , llvm::PPC::BR_NONTAKEN_HINT = 0x2 , llvm::PPC::BR_TAKEN_HINT = 0x3 , llvm::PPC::BR_HINT_MASK = 0X3 }
 

Functions

Predicate llvm::PPC::InvertPredicate (Predicate Opcode)
 Invert the specified predicate. != -> ==, < -> >=.
 
Predicate llvm::PPC::getSwappedPredicate (Predicate Opcode)
 Assume the condition register is set by MI(a,b), return the predicate if we modify the instructions such that condition register is set by MI(b,a).
 
unsigned llvm::PPC::getPredicateCondition (Predicate Opcode)
 Return the condition without hint bits.
 
unsigned llvm::PPC::getPredicateHint (Predicate Opcode)
 Return the hint bits of the predicate.
 
Predicate llvm::PPC::getPredicate (unsigned Condition, unsigned Hint)
 Return predicate consisting of specified condition and hint bits.