HomeSort by relevance Sort by last modified time
    Searched refs:CmpInst (Results 1 - 25 of 75) sorted by null

1 2 3

  /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 243 CmpInst *CI = dyn_cast<CmpInst>(BI->getCondition());
244 CmpInst::Predicate Predicate = CI->getPredicate();
246 if ((Predicate == CmpInst::ICMP_NE) || (Predicate == CmpInst::FCMP_ONE)) {
GlobalStatus.cpp 136 } else if (isa<CmpInst>(I)) {
LowerExpectIntrinsic.cpp 112 if (CmpI->getPredicate() != CmpInst::ICMP_NE)
  /external/llvm/lib/Target/X86/
X86FastISel.cpp 167 static CmpInst::Predicate optimizeCmpPredicate(const CmpInst *CI) {
169 CmpInst::Predicate Predicate = CI->getPredicate();
175 case CmpInst::FCMP_FALSE: Predicate = CmpInst::FCMP_FALSE; break;
176 case CmpInst::FCMP_OEQ: Predicate = CmpInst::FCMP_ORD; break;
177 case CmpInst::FCMP_OGT: Predicate = CmpInst::FCMP_FALSE; break;
178 case CmpInst::FCMP_OGE: Predicate = CmpInst::FCMP_ORD; 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 &&
358 static Value *ThreadCmpOverSelect(CmpInst::Predicate Pred, Value *LHS,
368 Pred = CmpInst::getSwappedPredicate(Pred);
483 static Value *ThreadCmpOverPHI(CmpInst::Predicate Pred, Value *LHS, Value *RHS,
492 Pred = CmpInst::getSwappedPredicate(Pred);
    [all...]
BranchProbabilityInfo.cpp 383 case CmpInst::ICMP_EQ:
387 case CmpInst::ICMP_NE:
391 case CmpInst::ICMP_SLT:
395 case CmpInst::ICMP_SGT:
402 } else if (CV->isOne() && CI->getPredicate() == CmpInst::ICMP_SLT) {
408 case CmpInst::ICMP_EQ:
412 case CmpInst::ICMP_NE:
416 case CmpInst::ICMP_SGT:
DependenceAnalysis.cpp 441 if (isKnownPredicate(CmpInst::ICMP_EQ, X->getD(), Y->getD()))
443 if (isKnownPredicate(CmpInst::ICMP_NE, X->getD(), Y->getD())) {
470 if (isKnownPredicate(CmpInst::ICMP_EQ, Prod1, Prod2)) {
475 if (isKnownPredicate(CmpInst::ICMP_EQ, Prod1, Prod2))
477 if (isKnownPredicate(CmpInst::ICMP_NE, Prod1, Prod2)) {
484 if (isKnownPredicate(CmpInst::ICMP_NE, Prod1, Prod2)) {
556 if (isKnownPredicate(CmpInst::ICMP_EQ, Sum, Y->getC()))
558 if (isKnownPredicate(CmpInst::ICMP_NE, Sum, Y->getC())) {
881 if (Pred == CmpInst::ICMP_EQ ||
882 Pred == CmpInst::ICMP_NE)
    [all...]
  /external/lldb/source/Expression/
IRInterpreter.cpp 491 case CmpInst::ICMP_EQ:
492 case CmpInst::ICMP_NE:
493 case CmpInst::ICMP_UGT:
494 case CmpInst::ICMP_UGE:
495 case CmpInst::ICMP_ULT:
496 case CmpInst::ICMP_ULE:
497 case CmpInst::ICMP_SGT:
498 case CmpInst::ICMP_SGE:
499 case CmpInst::ICMP_SLT:
500 case CmpInst::ICMP_SLE
    [all...]
  /external/llvm/lib/Transforms/Scalar/
IndVarSimplify.cpp 310 CmpInst::Predicate NewPred = CmpInst::BAD_ICMP_PREDICATE;
313 case CmpInst::FCMP_OEQ:
314 case CmpInst::FCMP_UEQ: NewPred = CmpInst::ICMP_EQ; break;
315 case CmpInst::FCMP_ONE:
316 case CmpInst::FCMP_UNE: NewPred = CmpInst::ICMP_NE; break;
317 case CmpInst::FCMP_OGT:
318 case CmpInst::FCMP_UGT: NewPred = CmpInst::ICMP_SGT; break
    [all...]
EarlyCSE.cpp 67 isa<GetElementPtrInst>(Inst) || isa<CmpInst>(Inst) ||
108 if (CmpInst *CI = dyn_cast<CmpInst>(Inst)) {
111 CmpInst::Predicate Pred = CI->getPredicate();
173 if (CmpInst *LHSCmp = dyn_cast<CmpInst>(LHSI)) {
174 assert(isa<CmpInst>(RHSI)
176 CmpInst *RHSCmp = cast<CmpInst>(RHSI);
CorrelatedValuePropagation.cpp 43 bool processCmp(CmpInst *C);
163 bool CorrelatedValuePropagation::processCmp(CmpInst *C) {
231 LazyValueInfo::Tristate Value = LVI->getPredicateOnEdge(CmpInst::ICMP_EQ,
305 BBChanged |= processCmp(cast<CmpInst>(II));
  /external/llvm/include/llvm/IR/
InstrTypes.h 633 // CmpInst Class
638 class CmpInst : public Instruction {
640 CmpInst() LLVM_DELETED_FUNCTION;
642 CmpInst(Type *ty, Instruction::OtherOps op, unsigned short pred,
646 CmpInst(Type *ty, Instruction::OtherOps op, unsigned short pred,
652 /// This enumeration lists the possible predicates for CmpInst subclasses.
700 /// @brief Create a CmpInst
701 static CmpInst *Create(OtherOps Op,
709 /// @brief Create a CmpInst
710 static CmpInst *Create(OtherOps Op, unsigned short predicate, Value *S1
    [all...]
PatternMatch.h 657 // Matchers for CmpInst classes
975 return Pred == CmpInst::ICMP_SGT || Pred == CmpInst::ICMP_SGE;
982 return Pred == CmpInst::ICMP_SLT || Pred == CmpInst::ICMP_SLE;
989 return Pred == CmpInst::ICMP_UGT || Pred == CmpInst::ICMP_UGE;
996 return Pred == CmpInst::ICMP_ULT || Pred == CmpInst::ICMP_ULE;
1003 return Pred == CmpInst::FCMP_OGT || Pred == CmpInst::FCMP_OGE
    [all...]
InstVisitor.h 172 RetTy visitICmpInst(ICmpInst &I) { DELEGATE(CmpInst);}
173 RetTy visitFCmpInst(FCmpInst &I) { DELEGATE(CmpInst);}
233 RetTy visitCmpInst(CmpInst &I) { DELEGATE(Instruction);}
  /external/llvm/lib/Transforms/InstCombine/
InstCombinePHI.cpp 28 assert(isa<BinaryOperator>(FirstInst) || isa<CmpInst>(FirstInst));
55 // If they are CmpInst instructions, check their predicates
56 if (CmpInst *CI = dyn_cast<CmpInst>(I))
57 if (CI->getPredicate() != cast<CmpInst>(FirstInst)->getPredicate())
115 if (CmpInst *CIOp = dyn_cast<CmpInst>(FirstInst)) {
116 CmpInst *NewCI = CmpInst::Create(CIOp->getOpcode(), CIOp->getPredicate(),
416 } else if (isa<BinaryOperator>(FirstInst) || isa<CmpInst>(FirstInst))
    [all...]
  /external/llvm/lib/Target/AArch64/
AArch64FastISel.cpp 714 static AArch64CC::CondCode getCompareCC(CmpInst::Predicate Pred) {
716 case CmpInst::FCMP_ONE:
717 case CmpInst::FCMP_UEQ:
721 case CmpInst::ICMP_EQ:
722 case CmpInst::FCMP_OEQ:
724 case CmpInst::ICMP_SGT:
725 case CmpInst::FCMP_OGT:
727 case CmpInst::ICMP_SGE:
728 case CmpInst::FCMP_OGE:
730 case CmpInst::ICMP_UGT
    [all...]
  /external/llvm/lib/Target/PowerPC/
PPCFastISel.cpp 202 static Optional<PPC::Predicate> getComparePred(CmpInst::Predicate Pred) {
205 case CmpInst::FCMP_FALSE:
206 case CmpInst::FCMP_UEQ:
207 case CmpInst::FCMP_UGT:
208 case CmpInst::FCMP_UGE:
209 case CmpInst::FCMP_ULT:
210 case CmpInst::FCMP_ULE:
211 case CmpInst::FCMP_UNE:
212 case CmpInst::FCMP_TRUE:
216 case CmpInst::FCMP_OEQ
    [all...]
  /external/llvm/lib/IR/
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...]
Instructions.cpp     [all...]
Constants.cpp     [all...]
Instruction.cpp 284 if (const CmpInst *CI = dyn_cast<CmpInst>(I1))
285 return CI->getPredicate() == cast<CmpInst>(I2)->getPredicate();
  /external/llvm/lib/Target/ARM/
ARMFastISel.cpp     [all...]
  /external/llvm/tools/llvm-stress/
llvm-stress.cpp 598 (CmpInst::LAST_FCMP_PREDICATE - CmpInst::FIRST_FCMP_PREDICATE) +
599 CmpInst::FIRST_FCMP_PREDICATE;
602 (CmpInst::LAST_ICMP_PREDICATE - CmpInst::FIRST_ICMP_PREDICATE) +
603 CmpInst::FIRST_ICMP_PREDICATE;
606 Value *V = CmpInst::Create(fp ? Instruction::FCmp : Instruction::ICmp,

Completed in 822 milliseconds

1 2 3