/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));
|
LowerExpectIntrinsic.cpp | 102 if (!CmpI || CmpI->getPredicate() != CmpInst::ICMP_NE)
|
/external/llvm/lib/Target/X86/ |
X86FastISel.cpp | 931 const CmpInst *CI = cast<CmpInst>(I); 941 case CmpInst::FCMP_OEQ: { 955 case CmpInst::FCMP_UNE: { 968 case CmpInst::FCMP_OGT: SwapArgs = false; SetCCOpc = X86::SETAr; break; 969 case CmpInst::FCMP_OGE: SwapArgs = false; SetCCOpc = X86::SETAEr; break; 970 case CmpInst::FCMP_OLT: SwapArgs = true; SetCCOpc = X86::SETAr; break; 971 case CmpInst::FCMP_OLE: SwapArgs = true; SetCCOpc = X86::SETAEr; break [all...] |
/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...] |
BranchProbabilityInfo.cpp | 303 case CmpInst::ICMP_EQ: 307 case CmpInst::ICMP_NE: 311 case CmpInst::ICMP_SLT: 315 case CmpInst::ICMP_SGT: 322 } else if (CV->isOne() && CI->getPredicate() == CmpInst::ICMP_SLT) { 326 } else if (CV->isAllOnesValue() && CI->getPredicate() == CmpInst::ICMP_SGT) {
|
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...] |
/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 | 59 case CmpInst::ICMP_EQ: 61 case CmpInst::ICMP_NE: 65 case CmpInst::ICMP_ULT: { 71 case CmpInst::ICMP_SLT: { 77 case CmpInst::ICMP_ULE: { 83 case CmpInst::ICMP_SLE: { 89 case CmpInst::ICMP_UGT: { 95 case CmpInst::ICMP_SGT: { 101 case CmpInst::ICMP_UGE: { 107 case CmpInst::ICMP_SGE: [all...] |
/external/llvm/include/llvm/IR/ |
InstrTypes.h | 622 // CmpInst Class 627 class CmpInst : public Instruction { 629 CmpInst() LLVM_DELETED_FUNCTION; 631 CmpInst(Type *ty, Instruction::OtherOps op, unsigned short pred, 635 CmpInst(Type *ty, Instruction::OtherOps op, unsigned short pred, 641 /// This enumeration lists the possible predicates for CmpInst subclasses. 689 /// @brief Create a CmpInst 690 static CmpInst *Create(OtherOps Op, 698 /// @brief Create a CmpInst 699 static CmpInst *Create(OtherOps Op, unsigned short predicate, Value *S1 [all...] |
Instructions.h | [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/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/include/llvm/Support/ |
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,
|
PatternMatch.h | 567 // Matchers for CmpInst classes 872 return Pred == CmpInst::ICMP_SGT || Pred == CmpInst::ICMP_SGE; 879 return Pred == CmpInst::ICMP_SLT || Pred == CmpInst::ICMP_SLE; 886 return Pred == CmpInst::ICMP_UGT || Pred == CmpInst::ICMP_UGE; 893 return Pred == CmpInst::ICMP_ULT || Pred == CmpInst::ICMP_ULE;
|
TargetFolder.h | 218 Constant *CreateICmp(CmpInst::Predicate P, Constant *LHS, 222 Constant *CreateFCmp(CmpInst::Predicate P, Constant *LHS,
|
/external/llvm/lib/AsmParser/ |
LLParser.cpp | [all...] |