/external/llvm/include/llvm/Transforms/Utils/ |
CmpInstAnalysis.h | 57 CmpInst::Predicate &NewICmpPred); 61 bool PredicatesFoldable(CmpInst::Predicate p1, CmpInst::Predicate p2);
|
/external/llvm/lib/Transforms/Utils/ |
CmpInstAnalysis.cpp | 73 CmpInst::Predicate &NewICmpPred) { 77 return ConstantInt::get(CmpInst::makeCmpResultType(LHS->getType()), 0); 85 return ConstantInt::get(CmpInst::makeCmpResultType(LHS->getType()), 1); 93 return (CmpInst::isSigned(p1) == CmpInst::isSigned(p2)) || 94 (CmpInst::isSigned(p1) && ICmpInst::isEquality(p2)) || 95 (CmpInst::isSigned(p2) && ICmpInst::isEquality(p1));
|
FlattenCFG.cpp | 241 CmpInst *CI = dyn_cast<CmpInst>(BI->getCondition()); 242 CmpInst::Predicate Predicate = CI->getPredicate(); 244 if ((Predicate == CmpInst::ICMP_NE) || (Predicate == CmpInst::FCMP_ONE)) {
|
LowerExpectIntrinsic.cpp | 102 if (!CmpI || CmpI->getPredicate() != CmpInst::ICMP_NE)
|
/external/llvm/lib/Analysis/ |
InstructionSimplify.cpp | 79 static bool isSameCompare(Value *V, CmpInst::Predicate Pred, Value *LHS, 81 CmpInst *Cmp = dyn_cast<CmpInst>(V); 84 CmpInst::Predicate CPred = Cmp->getPredicate(); 88 return CPred == CmpInst::getSwappedPredicate(Pred) && CLHS == RHS && 430 static Value *ThreadCmpOverSelect(CmpInst::Predicate Pred, Value *LHS, 440 Pred = CmpInst::getSwappedPredicate(Pred); 555 static Value *ThreadCmpOverPHI(CmpInst::Predicate Pred, Value *LHS, Value *RHS, 564 Pred = CmpInst::getSwappedPredicate(Pred); [all...] |
DependenceAnalysis.cpp | 436 if (isKnownPredicate(CmpInst::ICMP_EQ, X->getD(), Y->getD())) 438 if (isKnownPredicate(CmpInst::ICMP_NE, X->getD(), Y->getD())) { 465 if (isKnownPredicate(CmpInst::ICMP_EQ, Prod1, Prod2)) { 470 if (isKnownPredicate(CmpInst::ICMP_EQ, Prod1, Prod2)) 472 if (isKnownPredicate(CmpInst::ICMP_NE, Prod1, Prod2)) { 479 if (isKnownPredicate(CmpInst::ICMP_NE, Prod1, Prod2)) { 551 if (isKnownPredicate(CmpInst::ICMP_EQ, Sum, Y->getC())) 553 if (isKnownPredicate(CmpInst::ICMP_NE, Sum, Y->getC())) { 876 if (Pred == CmpInst::ICMP_EQ || 877 Pred == CmpInst::ICMP_NE) [all...] |
BranchProbabilityInfo.cpp | 378 case CmpInst::ICMP_EQ: 382 case CmpInst::ICMP_NE: 386 case CmpInst::ICMP_SLT: 390 case CmpInst::ICMP_SGT: 397 } else if (CV->isOne() && CI->getPredicate() == CmpInst::ICMP_SLT) { 401 } else if (CV->isAllOnesValue() && CI->getPredicate() == CmpInst::ICMP_SGT) {
|
/external/llvm/lib/Transforms/Scalar/ |
CorrelatedValuePropagation.cpp | 42 bool processCmp(CmpInst *C); 162 bool CorrelatedValuePropagation::processCmp(CmpInst *C) { 230 LazyValueInfo::Tristate Value = LVI->getPredicateOnEdge(CmpInst::ICMP_EQ, 301 BBChanged |= processCmp(cast<CmpInst>(II));
|
IndVarSimplify.cpp | 306 CmpInst::Predicate NewPred = CmpInst::BAD_ICMP_PREDICATE; 309 case CmpInst::FCMP_OEQ: 310 case CmpInst::FCMP_UEQ: NewPred = CmpInst::ICMP_EQ; break; 311 case CmpInst::FCMP_ONE: 312 case CmpInst::FCMP_UNE: NewPred = CmpInst::ICMP_NE; break; 313 case CmpInst::FCMP_OGT: 314 case CmpInst::FCMP_UGT: NewPred = CmpInst::ICMP_SGT; break [all...] |
EarlyCSE.cpp | 66 isa<GetElementPtrInst>(Inst) || isa<CmpInst>(Inst) || 112 if (CmpInst *CI = dyn_cast<CmpInst>(Inst)) { 115 CmpInst::Predicate Pred = CI->getPredicate(); 177 if (CmpInst *LHSCmp = dyn_cast<CmpInst>(LHSI)) { 178 assert(isa<CmpInst>(RHSI) 180 CmpInst *RHSCmp = cast<CmpInst>(RHSI);
|
/external/llvm/lib/Support/ |
ConstantRange.cpp | 60 case CmpInst::ICMP_EQ: 62 case CmpInst::ICMP_NE: 66 case CmpInst::ICMP_ULT: { 72 case CmpInst::ICMP_SLT: { 78 case CmpInst::ICMP_ULE: { 84 case CmpInst::ICMP_SLE: { 90 case CmpInst::ICMP_UGT: { 96 case CmpInst::ICMP_SGT: { 102 case CmpInst::ICMP_UGE: { 108 case CmpInst::ICMP_SGE: [all...] |
/external/llvm/include/llvm/IR/ |
InstrTypes.h | 628 // CmpInst Class 633 class CmpInst : public Instruction { 635 CmpInst() LLVM_DELETED_FUNCTION; 637 CmpInst(Type *ty, Instruction::OtherOps op, unsigned short pred, 641 CmpInst(Type *ty, Instruction::OtherOps op, unsigned short pred, 647 /// This enumeration lists the possible predicates for CmpInst subclasses. 695 /// @brief Create a CmpInst 696 static CmpInst *Create(OtherOps Op, 704 /// @brief Create a CmpInst 705 static CmpInst *Create(OtherOps Op, unsigned short predicate, Value *S1 [all...] |
/external/llvm/lib/Target/X86/ |
X86FastISel.cpp | 942 const CmpInst *CI = cast<CmpInst>(I); 952 case CmpInst::FCMP_OEQ: { 966 case CmpInst::FCMP_UNE: { [all...] |
/external/llvm/lib/Transforms/InstCombine/ |
InstCombinePHI.cpp | 26 assert(isa<BinaryOperator>(FirstInst) || isa<CmpInst>(FirstInst)); 53 // If they are CmpInst instructions, check their predicates 54 if (CmpInst *CI = dyn_cast<CmpInst>(I)) 55 if (CI->getPredicate() != cast<CmpInst>(FirstInst)->getPredicate()) 113 if (CmpInst *CIOp = dyn_cast<CmpInst>(FirstInst)) { 114 CmpInst *NewCI = CmpInst::Create(CIOp->getOpcode(), CIOp->getPredicate(), 416 } else if (isa<BinaryOperator>(FirstInst) || isa<CmpInst>(FirstInst)) [all...] |
/external/llvm/include/llvm/Support/ |
PatternMatch.h | 567 // Matchers for CmpInst classes 885 return Pred == CmpInst::ICMP_SGT || Pred == CmpInst::ICMP_SGE; 892 return Pred == CmpInst::ICMP_SLT || Pred == CmpInst::ICMP_SLE; 899 return Pred == CmpInst::ICMP_UGT || Pred == CmpInst::ICMP_UGE; 906 return Pred == CmpInst::ICMP_ULT || Pred == CmpInst::ICMP_ULE; 913 return Pred == CmpInst::FCMP_OGT || Pred == CmpInst::FCMP_OGE [all...] |
ConstantFolder.h | 194 Constant *CreateICmp(CmpInst::Predicate P, Constant *LHS, 198 Constant *CreateFCmp(CmpInst::Predicate P, Constant *LHS,
|
NoFolder.h | 253 Instruction *CreateICmp(CmpInst::Predicate P, 257 Instruction *CreateFCmp(CmpInst::Predicate P,
|
TargetFolder.h | 218 Constant *CreateICmp(CmpInst::Predicate P, Constant *LHS, 222 Constant *CreateFCmp(CmpInst::Predicate P, Constant *LHS,
|
/external/llvm/lib/IR/ |
Instruction.cpp | 294 if (const CmpInst *CI = dyn_cast<CmpInst>(this)) 295 return CI->getPredicate() == cast<CmpInst>(I)->getPredicate(); 367 if (const CmpInst *CI = dyn_cast<CmpInst>(this)) 368 return CI->getPredicate() == cast<CmpInst>(I)->getPredicate();
|
Instructions.cpp | [all...] |
Constants.cpp | [all...] |
/external/llvm/include/llvm/ |
InstVisitor.h | 172 RetTy visitICmpInst(ICmpInst &I) { DELEGATE(CmpInst);} 173 RetTy visitFCmpInst(FCmpInst &I) { DELEGATE(CmpInst);} 232 RetTy visitCmpInst(CmpInst &I) { DELEGATE(Instruction);}
|
/external/llvm/lib/Target/ARM/ |
ARMFastISel.cpp | [all...] |
/external/llvm/tools/llvm-stress/ |
llvm-stress.cpp | 596 (CmpInst::LAST_FCMP_PREDICATE - CmpInst::FIRST_FCMP_PREDICATE) + 597 CmpInst::FIRST_FCMP_PREDICATE; 600 (CmpInst::LAST_ICMP_PREDICATE - CmpInst::FIRST_ICMP_PREDICATE) + 601 CmpInst::FIRST_ICMP_PREDICATE; 604 Value *V = CmpInst::Create(fp ? Instruction::FCmp : Instruction::ICmp,
|
/external/llvm/lib/AsmParser/ |
LLParser.cpp | [all...] |