Home
last modified time | relevance | path

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

123456

/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineCompares.cpp215 Constant *C = ConstantFoldCompareInstOperands(ICI.getPredicate(), Elt, in foldCmpLoadFromIndexedGlobal()
892 ICmp->getType(), ICmp->getPredicate() == ICmpInst::ICMP_NE); in foldAllocaCmp()
968 if (I.getPredicate() == I.ICMP_NE) in foldICmpShrConstConst()
1015 auto *TorF = ConstantInt::get(I.getType(), I.getPredicate() == I.ICMP_NE); in foldICmpShrConstConst()
1027 if (I.getPredicate() == I.ICMP_NE) in foldICmpShlConstConst()
1054 auto *TorF = ConstantInt::get(I.getType(), I.getPredicate() == I.ICMP_NE); in foldICmpShlConstConst()
1203 CmpInst::Predicate Pred = Cmp.getPredicate(); in foldICmpWithZero()
1296 CmpInst::Predicate Pred = Cmp.getPredicate(); in foldICmpWithConstant()
1342 CmpInst::Predicate Pred = Cmp.getPredicate(); in foldICmpWithDominatingICmp()
1413 ICmpInst::Predicate Pred = Cmp.getPredicate(); in foldICmpTruncConstant()
[all …]
H A DInstCombineAndOrXor.cpp487 ICmpInst::Predicate PredL = LHS->getPredicate(), PredR = RHS->getPredicate(); in foldLogOpOfMaskedICmps()
662 Cmp0->getPredicate()); in simplifyRangeCheck()
670 Cmp1->getPredicate()); in simplifyRangeCheck()
714 if (LHS->getPredicate() != Pred || RHS->getPredicate() != Pred) in foldAndOrOfICmpsWithPow2AndWithZero()
751 if (LHS->getPredicate() != Pred || RHS->getPredicate() != Pred) in foldAndOrOfICmpsOfAndWithPow2()
849 CmpInst::Predicate Pred = ICmp->getPredicate(); in foldSignedTruncationCheck()
935 if (JoinedByAnd && Cmp1->getPredicate() == ICmpInst::ICMP_NE) in foldIsPowerOf2()
937 else if (!JoinedByAnd && Cmp1->getPredicate() == ICmpInst::ICMP_EQ) in foldIsPowerOf2()
1044 ICmpInst::Predicate CmpPred0 = Cmp0->getPredicate(), in foldPowerOf2AndShiftedMask()
1045 CmpPred1 = Cmp1->getPredicate(); in foldPowerOf2AndShiftedMask()
[all …]
H A DInstCombineSelect.cpp137 ICmpInst::Predicate Pred = Cmp->getPredicate(); in foldSelectICmpAnd()
590 Cmp->getPredicate() == ICmpInst::ICMP_EQ && in foldSelectICmpAndAnd()
675 ICmpInst::Predicate Pred = IC->getPredicate(); in foldSelectICmpLshrAshr()
741 CmpInst::Predicate Pred = IC->getPredicate(); in foldSelectICmpAndBinOp()
907 ICmpInst::Predicate Pred = ICI->getPredicate(); in canonicalizeSaturatedSubtract()
978 ICmpInst::Predicate Pred = Cmp->getPredicate(); in canonicalizeSaturatedAdd()
1098 if (ICI->getPredicate() == ICmpInst::ICMP_NE) in foldSelectCtlzToCttz()
1136 ICmpInst::Predicate Pred = ICI->getPredicate(); in foldSelectCttzCtlz()
1294 if (Cmp.getPredicate() == ICmpInst::ICMP_NE) { in foldSelectValueEquivalence()
1403 ICmpInst::Predicate Pred0 = Cmp0.getPredicate(); in canonicalizeClampLike()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DInstrTypes.h847 Predicate getPredicate() const { return getSubclassData<PredicateField>(); }
864 bool isFPPredicate() const { return isFPPredicate(getPredicate()); }
865 bool isIntPredicate() const { return isIntPredicate(getPredicate()); }
872 return getInversePredicate(getPredicate());
883 return getOrderedPredicate(getPredicate());
894 return getUnorderedPredicate(getPredicate());
910 return getSwappedPredicate(getPredicate());
925 bool isStrictPredicate() const { return isStrictPredicate(getPredicate()); }
935 return isNonStrictPredicate(getPredicate());
941 return getStrictPredicate(getPredicate());
[all …]
H A DIntrinsicInst.h683 CmpInst::Predicate getPredicate() const;
730 FCmpInst::Predicate getPredicate() const;
772 static ICmpInst::Predicate getPredicate(Intrinsic::ID ID) { in getPredicate() function
788 ICmpInst::Predicate getPredicate() const { in getPredicate() function
789 return getPredicate(getIntrinsicID()); in getPredicate()
794 return ICmpInst::isSigned(getPredicate(ID)); in isSigned()
/freebsd/contrib/llvm-project/llvm/lib/Target/BPF/
H A DBPFAdjustOpt.cpp116 auto Op = Icmp->getPredicate(); in adjustICmpToBuiltin()
229 auto Cond2Op = Cond->getPredicate(); in serializeICMPCrossBB()
239 auto Cond1Op = Cond->getPredicate(); in serializeICMPCrossBB()
H A DBPFCheckAndAdjustIR.cpp262 ICmpInst::getSwappedPredicate(ICmp->getPredicate())); in sinkMinMaxInBB()
263 MinMaxSinkInfo Second(ICmp, ICmp->getOperand(0), ICmp->getPredicate()); in sinkMinMaxInBB()
/freebsd/contrib/llvm-project/llvm/utils/TableGen/GlobalISel/
H A DGIMatchTree.cpp
H A DGIMatchDagPredicateDependencyEdge.cpp
H A DGIMatchDagPredicateDependencyEdge.h
H A DGIMatchDag.cpp
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/MCTargetDesc/
H A DPPCPredicates.h87 inline Predicate getPredicate(unsigned Condition, unsigned Hint) { in getPredicate() function
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DBranchProbabilityInfo.cpp532 auto Search = PointerTable.find(CI->getPredicate()); in calcPointerHeuristics()
634 CI->getPredicate(), CmpLHSConst, CmpConst, DL); in computeUnlikelySuccessors()
1007 Search = ICmpWithLibCallTable.find(CI->getPredicate()); in calcZeroHeuristics()
1011 Search = ICmpWithZeroTable.find(CI->getPredicate()); in calcZeroHeuristics()
1015 Search = ICmpWithOneTable.find(CI->getPredicate()); in calcZeroHeuristics()
1019 Search = ICmpWithMinusOneTable.find(CI->getPredicate()); in calcZeroHeuristics()
1048 auto Search = FCmpTable.find(FCmp->getPredicate()); in calcFloatingPointHeuristics()
H A DIRSimilarityIdentifier.cpp61 if (Predicate != C->getPredicate()) in initializeInstruction()
187 switch (CI->getPredicate()) { in predicateForConsistency()
198 return CI->getPredicate(); in predicateForConsistency()
202 CmpInst::Predicate IRInstructionData::getPredicate() const { in getPredicate() function in IRInstructionData
209 return cast<CmpInst>(Inst)->getPredicate(); in getPredicate()
235 if (A.getPredicate() != B.getPredicate()) in isClose()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DLoopVersioning.cpp46 Preds(LAI.getPSE().getPredicate()), LAI(LAI), LI(LI), DT(DT), in LoopVersioning()
282 !LAI.getPSE().getPredicate().isAlwaysTrue())) { in runImpl()
H A DCodeMoverUtils.cpp217 if (Cmp1->getPredicate() == Cmp2->getInversePredicate() && in isInverse()
222 if (Cmp1->getPredicate() == in isInverse()
/freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/
H A DSystemZTDC.cpp129 auto Pred = I.getPredicate(); in convertFCmp()
239 auto Pred = I.getPredicate(); in convertICmp()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DConstraintElimination.cpp1161 IsOr ? CmpInst::getInversePredicate(Cmp->getPredicate()) in addInfoFor()
1162 : Cmp->getPredicate(), in addInfoFor()
1186 DT.getNode(Br->getSuccessor(0)), CmpI->getPredicate(), in addInfoFor()
1191 CmpInst::getInversePredicate(CmpI->getPredicate()), CmpI->getOperand(0), in addInfoFor()
1272 CollectArguments(Cond, ICmpInst::isSigned(Cond->getPredicate())); in generateReproducer()
1348 CloneInstructions(Cond, CmpInst::isSigned(Cond->getPredicate())); in generateReproducer()
1427 checkCondition(Cmp->getPredicate(), Cmp->getOperand(0), in checkAndReplaceCondition()
1443 ICmpInst::getNonStrictPredicate(MinMax->getPredicate()); in checkAndReplaceMinMax()
1528 checkCondition(CmpToCheck->getPredicate(), CmpToCheck->getOperand(0), in checkOrAndOpImpliedByOther()
1823 Pred = ICmpInst::getNonStrictPredicate(MinMax->getPredicate()); in eliminateConstraints()
H A DFloat2Int.cpp106 if (mapFCmpPred(cast<CmpInst>(&I)->getPredicate()) != in findRoots()
444 CmpInst::Predicate P = mapFCmpPred(cast<CmpInst>(I)->getPredicate()); in convert()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DCSEMIRBuilder.cpp97 B.addNodeIDImmediate(static_cast<int64_t>(Op.getPredicate())); in profileSrcOp()
188 ConstantFoldICmp(SrcOps[0].getPredicate(), SrcOps[1].getReg(), in buildInstr()
/freebsd/contrib/llvm-project/llvm/utils/TableGen/Common/
H A DDAGISelMatcher.cpp99 TreePredicateFn CheckPredicateMatcher::getPredicate() const { in getPredicate() function in CheckPredicateMatcher
167 OS.indent(indent) << "CheckPredicate " << getPredicate().getFnName() << '\n'; in printImpl()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DLoopVectorizationLegality.cpp725 if (PSE.getPredicate().isAlwaysTrue()) { in addInductionPhi()
1020 if (PSE.getPredicate().isAlwaysTrue()) { in canVectorizeInstrs()
1157 PSE.addPredicate(LAI->getPSE().getPredicate()); in canVectorizeMemory()
1529 if (PSE.getPredicate().getComplexity() > SCEVThreshold) { in canVectorize()
/freebsd/contrib/llvm-project/llvm/utils/TableGen/
H A DFastISelEmitter.cpp74 const TreePredicateFn &getPredicate(unsigned i) { in getPredicate() function in __anon3cd78fb00211::ImmPredicateSet
137 OS << "_" << ImmPredicates.getPredicate(Code - 1).getFnName(); in printManglingSuffix()
185 TreePredicateFn PredFn = ImmPredicates.getPredicate(Code - 1); in emitImmediatePredicate()
H A DDAGISelMatcherEmitter.cpp108 ++PatternPredicateUsage[CPPM->getPredicate()]; in MatcherTableEmitter()
110 ++PredicateUsage[PM->getPredicate().getOrigPatFragRecord()]; in MatcherTableEmitter()
530 StringRef Pred = cast<CheckPatternPredicateMatcher>(N)->getPredicate(); in EmitMatcher()
544 TreePredicateFn Pred = cast<CheckPredicateMatcher>(N)->getPredicate(); in EmitMatcher()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DMachineOperand.cpp381 return getPredicate() == Other.getPredicate(); in isIdenticalTo()
446 return hash_combine(MO.getType(), MO.getTargetFlags(), MO.getPredicate()); in hash_value()
1005 auto Pred = static_cast<CmpInst::Predicate>(getPredicate()); in print()

123456