HomeSort by relevance Sort by last modified time
    Searched refs:CmpInst (Results 1 - 25 of 59) 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));
LowerExpectIntrinsic.cpp 107 if (!CmpI || CmpI->getPredicate() != CmpInst::ICMP_NE)
  /external/llvm/lib/Target/X86/
X86FastISel.cpp 909 const CmpInst *CI = cast<CmpInst>(I);
919 case CmpInst::FCMP_OEQ: {
933 case CmpInst::FCMP_UNE: {
946 case CmpInst::FCMP_OGT: SwapArgs = false; SetCCOpc = X86::SETAr; break;
947 case CmpInst::FCMP_OGE: SwapArgs = false; SetCCOpc = X86::SETAEr; break;
948 case CmpInst::FCMP_OLT: SwapArgs = true; SetCCOpc = X86::SETAr; break;
949 case CmpInst::FCMP_OLE: SwapArgs = true; SetCCOpc = X86::SETAEr; break;
950 case CmpInst::FCMP_ONE: SwapArgs = false; SetCCOpc = X86::SETNEr; break;
951 case CmpInst::FCMP_ORD: SwapArgs = false; SetCCOpc = X86::SETNPr; 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 294 case CmpInst::ICMP_EQ:
298 case CmpInst::ICMP_NE:
302 case CmpInst::ICMP_SLT:
306 case CmpInst::ICMP_SGT:
313 } else if (CV->isOne() && CI->getPredicate() == CmpInst::ICMP_SLT) {
317 } else if (CV->isAllOnesValue() && CI->getPredicate() == CmpInst::ICMP_SGT) {
CodeMetrics.cpp 92 if (isa<CmpInst>(CI->getOperand(0)))
  /external/llvm/lib/Transforms/Scalar/
CorrelatedValuePropagation.cpp 40 bool processCmp(CmpInst *C);
143 bool CorrelatedValuePropagation::processCmp(CmpInst *C) {
211 LazyValueInfo::Tristate Value = LVI->getPredicateOnEdge(CmpInst::ICMP_EQ,
277 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 65 isa<GetElementPtrInst>(Inst) || isa<CmpInst>(Inst) ||
101 else if (CmpInst *CI = dyn_cast<CmpInst>(Inst))
  /external/llvm/include/llvm/
InstrTypes.h 624 // CmpInst Class
629 class CmpInst : public Instruction {
631 CmpInst(); // do not implement
633 CmpInst(Type *ty, Instruction::OtherOps op, unsigned short pred,
637 CmpInst(Type *ty, Instruction::OtherOps op, unsigned short pred,
643 /// This enumeration lists the possible predicates for CmpInst subclasses.
691 /// @brief Create a CmpInst
692 static CmpInst *Create(OtherOps Op,
700 /// @brief Create a CmpInst
701 static CmpInst *Create(OtherOps Op, unsigned short predicate, Value *S1
    [all...]
  /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/lib/VMCore/
Instruction.cpp 204 if (const CmpInst *CI = dyn_cast<CmpInst>(this))
205 return CI->getPredicate() == cast<CmpInst>(I)->getPredicate();
259 if (const CmpInst *CI = dyn_cast<CmpInst>(this))
260 return CI->getPredicate() == cast<CmpInst>(I)->getPredicate();
Instructions.cpp     [all...]
Constants.cpp     [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...]
InstCombineAndOrXor.cpp 45 if (CmpInst *CI = dyn_cast<CmpInst>(V))
111 CmpInst::Predicate Pred;
    [all...]
  /external/llvm/include/llvm/Support/
InstVisitor.h 167 RetTy visitICmpInst(ICmpInst &I) { DELEGATE(CmpInst);}
168 RetTy visitFCmpInst(FCmpInst &I) { DELEGATE(CmpInst);}
213 RetTy visitCmpInst(CmpInst &I) { DELEGATE(Instruction);}
PatternMatch.h 486 // Matchers for CmpInst classes
772 return Pred == CmpInst::ICMP_SGT || Pred == CmpInst::ICMP_SGE;
779 return Pred == CmpInst::ICMP_SLT || Pred == CmpInst::ICMP_SLE;
786 return Pred == CmpInst::ICMP_UGT || Pred == CmpInst::ICMP_UGE;
793 return Pred == CmpInst::ICMP_ULT || Pred == CmpInst::ICMP_ULE;
ConstantFolder.h 194 Constant *CreateICmp(CmpInst::Predicate P, Constant *LHS,
198 Constant *CreateFCmp(CmpInst::Predicate P, Constant *LHS,
NoFolder.h 241 Instruction *CreateICmp(CmpInst::Predicate P,
245 Instruction *CreateFCmp(CmpInst::Predicate P,
  /external/llvm/lib/Target/ARM/
ARMFastISel.cpp     [all...]
  /external/llvm/lib/AsmParser/
LLParser.cpp     [all...]
  /external/llvm/tools/llvm-stress/
llvm-stress.cpp 588 (CmpInst::LAST_FCMP_PREDICATE - CmpInst::FIRST_FCMP_PREDICATE) +
589 CmpInst::FIRST_FCMP_PREDICATE;
592 (CmpInst::LAST_ICMP_PREDICATE - CmpInst::FIRST_ICMP_PREDICATE) +
593 CmpInst::FIRST_ICMP_PREDICATE;
596 Value *V = CmpInst::Create(fp ? Instruction::FCmp : Instruction::ICmp,
  /external/llvm/lib/CodeGen/
StackProtector.cpp 230 ICmpInst *Cmp = new ICmpInst(*BB, CmpInst::ICMP_EQ, LI1, LI2, "");

Completed in 267 milliseconds

1 2 3