LLVM  6.0.0svn
Namespaces | Functions
CmpInstAnalysis.h File Reference
#include "llvm/IR/InstrTypes.h"
Include dependency graph for CmpInstAnalysis.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


 Compute iterated dominance frontiers using a linear time algorithm.


unsigned llvm::getICmpCode (const ICmpInst *ICI, bool InvertPred=false)
 Encode a icmp predicate into a three bit mask. More...
Valuellvm::getICmpValue (bool Sign, unsigned Code, Value *LHS, Value *RHS, CmpInst::Predicate &NewICmpPred)
 This is the complement of getICmpCode, which turns an opcode and two operands into either a constant true or false, or the predicate for a new ICmp instruction. More...
bool llvm::PredicatesFoldable (CmpInst::Predicate p1, CmpInst::Predicate p2)
 Return true if both predicates match sign or if at least one of them is an equality comparison (which is signless). More...
bool llvm::decomposeBitTestICmp (Value *LHS, Value *RHS, CmpInst::Predicate &Pred, Value *&X, APInt &Mask, bool LookThroughTrunc=true)
 Decompose an icmp into the form ((X & Mask) pred 0) if possible. More...