Home
last modified time | relevance | path

Searched refs:getPredicate (Results 1 – 25 of 128) sorted by relevance

123456

/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/InstCombine/
H A DInstCombineCompares.cpp197 Constant *C = ConstantFoldCompareInstOperands(ICI.getPredicate(), Elt, in foldCmpLoadFromIndexedGlobal()
1061 ConstantInt::get(CmpTy, !CmpInst::isTrueWhenEqual(ICI.getPredicate()))); in foldAllocaCmp()
1121 if (I.getPredicate() == I.ICMP_NE) in foldICmpShrConstConst()
1168 auto *TorF = ConstantInt::get(I.getType(), I.getPredicate() == I.ICMP_NE); in foldICmpShrConstConst()
1180 if (I.getPredicate() == I.ICMP_NE) in foldICmpShlConstConst()
1207 auto *TorF = ConstantInt::get(I.getType(), I.getPredicate() == I.ICMP_NE); in foldICmpShlConstConst()
1357 CmpInst::Predicate Pred = Cmp.getPredicate(); in foldICmpWithZero()
1409 CmpInst::Predicate Pred = Cmp.getPredicate(); in foldICmpWithConstant()
1468 CmpInst::Predicate Pred = Cmp.getPredicate(); in foldICmpWithDominatingICmp()
1522 ICmpInst::Predicate Pred = Cmp.getPredicate(); in foldICmpTruncConstant()
[all …]
H A DInstCombineAndOrXor.cpp554 ICmpInst::Predicate PredL = LHS->getPredicate(), PredR = RHS->getPredicate(); in foldLogOpOfMaskedICmps()
700 Cmp0->getPredicate()); in simplifyRangeCheck()
708 Cmp1->getPredicate()); in simplifyRangeCheck()
756 ICmpInst::Predicate Pred = LHS->getPredicate(); in foldAndOrOfEqualityCmpsWithConstants()
757 if (Pred != RHS->getPredicate()) in foldAndOrOfEqualityCmpsWithConstants()
805 if (LHS->getPredicate() != Pred || RHS->getPredicate() != Pred) in foldAndOrOfICmpsOfAndWithPow2()
903 CmpInst::Predicate Pred = ICmp->getPredicate(); in foldSignedTruncationCheck()
965 if (JoinedByAnd && Cmp1->getPredicate() == ICmpInst::ICMP_NE) in foldIsPowerOf2()
967 else if (!JoinedByAnd && Cmp1->getPredicate() == ICmpInst::ICMP_EQ) in foldIsPowerOf2()
1122 if (Cmp0->getPredicate() != Pred || Cmp1->getPredicate() != Pred) in foldEqOfParts()
[all …]
H A DInstCombineSelect.cpp140 ICmpInst::Predicate Pred = Cmp->getPredicate(); in foldSelectICmpAnd()
514 Cmp->getPredicate() == ICmpInst::ICMP_EQ && in foldSelectICmpAndAnd()
551 ICmpInst::Predicate Pred = IC->getPredicate(); in foldSelectICmpLshrAshr()
622 IsEqualZero = IC->getPredicate() == ICmpInst::ICMP_EQ; in foldSelectICmpAndOr()
623 } else if (IC->getPredicate() == ICmpInst::ICMP_SLT || in foldSelectICmpAndOr()
624 IC->getPredicate() == ICmpInst::ICMP_SGT) { in foldSelectICmpAndOr()
627 IsEqualZero = IC->getPredicate() == ICmpInst::ICMP_SGT; in foldSelectICmpAndOr()
725 ICmpInst::Predicate Pred = ICI->getPredicate(); in canonicalizeSaturatedSubtract()
784 ICmpInst::Predicate Pred = Cmp->getPredicate(); in canonicalizeSaturatedAdd()
861 if (ICI->getPredicate() == ICmpInst::ICMP_NE) in foldSelectCtlzToCttz()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/IR/
H A DInstrTypes.h799 Predicate getPredicate() const { return getSubclassData<PredicateField>(); }
816 bool isFPPredicate() const { return isFPPredicate(getPredicate()); }
817 bool isIntPredicate() const { return isIntPredicate(getPredicate()); }
824 return getInversePredicate(getPredicate());
840 return getSwappedPredicate(getPredicate());
855 bool isStrictPredicate() const { return isStrictPredicate(getPredicate()); }
865 return isNonStrictPredicate(getPredicate());
871 return getStrictPredicate(getPredicate());
884 return getNonStrictPredicate(getPredicate());
906 return getFlippedStrictnessPredicate(getPredicate());
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Vectorize/
H A DVPlanPredicator.cpp58 VPValue *BP = PredBB->getPredicate(); in getOrCreateNotPredicate()
138 VPValue *RegionBP = Region->getPredicate(); in createOrPropagatePredicates()
166 IncomingPredicate = PredBlock->getPredicate(); in createOrPropagatePredicates()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Analysis/
H A DIRSimilarityIdentifier.cpp34 if (Predicate != C->getPredicate()) in IRInstructionData()
53 switch (CI->getPredicate()) { in predicateForConsistency()
64 return CI->getPredicate(); in predicateForConsistency()
68 CmpInst::Predicate IRInstructionData::getPredicate() const { in getPredicate() function in IRInstructionData
75 return cast<CmpInst>(Inst)->getPredicate(); in getPredicate()
98 if (A.getPredicate() != B.getPredicate()) in isClose()
H A DBranchProbabilityInfo.cpp480 bool isProb = CI->getPredicate() == ICmpInst::ICMP_NE; in calcPointerHeuristics()
582 Constant *Result = ConstantExpr::getCompare(CI->getPredicate(), in computeUnlikelySuccessors()
966 switch (CI->getPredicate()) { in calcZeroHeuristics()
977 switch (CI->getPredicate()) { in calcZeroHeuristics()
997 } else if (CV->isOne() && CI->getPredicate() == CmpInst::ICMP_SLT) { in calcZeroHeuristics()
1002 switch (CI->getPredicate()) { in calcZeroHeuristics()
1052 } else if (FCmp->getPredicate() == FCmpInst::FCMP_ORD) { in calcFloatingPointHeuristics()
1057 } else if (FCmp->getPredicate() == FCmpInst::FCMP_UNO) { in calcFloatingPointHeuristics()
H A DCmpInstAnalysis.cpp23 : ICI->getPredicate(); in getICmpCode()
/netbsd-src/external/apache2/llvm/dist/llvm/utils/TableGen/GlobalISel/
H A DGIMatchTree.cpp104 unsigned ID = PredicateIDs.lookup(Dep.value()->getPredicate()); in GIMatchTreeBuilderLeafInfo()
303 TreeLeaf.addUntestedPredicate(BuilderLeaf.getPredicate(PredicateIdx)); in runStep()
414 const auto &P = Leaf.value().getPredicate(PIdx); in repartition()
422 PDep->getRequiredMO() == nullptr && PDep->getPredicate() == P) { in repartition()
445 PDep->getRequiredMO() == nullptr && PDep->getPredicate() == P) { in repartition()
550 << " " << *Leaf.getPredicate(PredIdx) << "\n"); in applyForPartition()
H A DGIMatchDagPredicateDependencyEdge.cpp23 OS << " ==> " << getPredicate()->getName() << "[" in print()
H A DGIMatchDagPredicateDependencyEdge.h46 const GIMatchDagPredicate *getPredicate() const { return Predicate; } in getPredicate() function
H A DGIMatchDag.cpp94 auto To = format(ToFmt, E->getPredicate(), E->getPredicateOp()->getIdx()); in writeDOTGraph()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/BPF/
H A DBPFAdjustOpt.cpp186 auto Cond2Op = Cond->getPredicate(); in serializeICMPCrossBB()
196 auto Cond1Op = Cond->getPredicate(); in serializeICMPCrossBB()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/PowerPC/MCTargetDesc/
H A DPPCPredicates.h87 inline Predicate getPredicate(unsigned Condition, unsigned Hint) { in getPredicate() function
/netbsd-src/external/apache2/llvm/dist/llvm/tools/llvm-diff/
H A DDifferenceEngine.cpp255 if (cast<CmpInst>(L)->getPredicate() in diff()
256 != cast<CmpInst>(R)->getPredicate()) { in diff()
435 if (L->getPredicate() != R->getPredicate()) in equivalentAsOperands()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/SystemZ/
H A DSystemZTDC.cpp133 auto Pred = I.getPredicate(); in convertFCmp()
243 auto Pred = I.getPredicate(); in convertICmp()
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Analysis/
H A DIRSimilarityIdentifier.h139 CmpInst::Predicate getPredicate() const;
184 llvm::hash_value(ID.getPredicate()), in hash_value()
/netbsd-src/external/apache2/llvm/dist/llvm/utils/TableGen/
H A DDAGISelMatcher.cpp100 TreePredicateFn CheckPredicateMatcher::getPredicate() const { in getPredicate() function in CheckPredicateMatcher
164 OS.indent(indent) << "CheckPredicate " << getPredicate().getFnName() << '\n'; in printImpl()
H A DFastISelEmitter.cpp71 const TreePredicateFn &getPredicate(unsigned i) { in getPredicate() function in __anon2f99e1bb0211::ImmPredicateSet
122 OS << "_" << ImmPredicates.getPredicate(Code-1).getFnName(); in printManglingSuffix()
169 TreePredicateFn PredFn = ImmPredicates.getPredicate(Code-1); in emitImmediatePredicate()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Utils/
H A DCodeMoverUtils.cpp215 if (Cmp1->getPredicate() == Cmp2->getInversePredicate() && in isInverse()
220 if (Cmp1->getPredicate() == in isInverse()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Scalar/
H A DGuardWidening.cpp596 (IC->getPredicate() != ICmpInst::ICMP_ULT && in parseRangeChecks()
597 IC->getPredicate() != ICmpInst::ICMP_UGT)) in parseRangeChecks()
601 if (IC->getPredicate() == ICmpInst::ICMP_UGT) in parseRangeChecks()
H A DFloat2Int.cpp139 if (mapFCmpPred(cast<CmpInst>(&I)->getPredicate()) != in findRoots()
475 CmpInst::Predicate P = mapFCmpPred(cast<CmpInst>(I)->getPredicate()); in convert()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/AArch64/GISel/
H A DAArch64PostLegalizerLowering.cpp621 auto Pred = static_cast<CmpInst::Predicate>(MI.getOperand(1).getPredicate()); in matchAdjustICmpImmAndPred()
821 auto Pred = static_cast<CmpInst::Predicate>(MI.getOperand(1).getPredicate()); in trySwapICmpOperands()
840 auto Pred = static_cast<CmpInst::Predicate>(MI.getOperand(1).getPredicate()); in applySwapICmpOperands()
919 static_cast<CmpInst::Predicate>(MI.getOperand(1).getPredicate()); in lowerVectorFCMP()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/
H A DMachineOperand.cpp343 return getPredicate() == Other.getPredicate(); in isIdenticalTo()
393 return hash_combine(MO.getType(), MO.getTargetFlags(), MO.getPredicate()); in hash_value()
938 auto Pred = static_cast<CmpInst::Predicate>(getPredicate()); in print()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/IR/
H A DConstantsContext.h553 SubclassData(CE->isCompare() ? CE->getPredicate() : 0), Ops(Operands),
561 SubclassData(CE->isCompare() ? CE->getPredicate() : 0),
584 if (SubclassData != (CE->isCompare() ? CE->getPredicate() : 0))

123456