Home
last modified time | relevance | path

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

1234567

/llvm-project-15.0.7/mlir/lib/TableGen/
H A DConstraint.cpp38 Pred Constraint::getPredicate() const { in getPredicate() function in Constraint
51 return getPredicate().getCondition(); in getConditionTemplate()
133 return llvm::hash_combine(constraint.getPredicate(), constraint.getSummary()); in getHashValue()
143 return lhs.getPredicate() == rhs.getPredicate() && in isEqual()
H A DArgument.cpp20 return !constraint.getPredicate().isNull(); in hasPredicate()
/llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/
H A DInstCombineCompares.cpp1142 if (I.getPredicate() == I.ICMP_NE) in foldICmpShrConstConst()
1201 if (I.getPredicate() == I.ICMP_NE) in foldICmpShlConstConst()
1726 return new ICmpInst(Cmp.getPredicate(), in foldICmpAndShift()
5162 switch (I.getPredicate()) { in processUMulZExtIdiom()
5279 switch (I.getPredicate()) { in processUMulZExtIdiom()
5322 switch (I.getPredicate()) { in getDemandedBitsLHSMask()
5869 switch (I.getPredicate()) { in canonicalizeICmpBool()
5878 switch (I.getPredicate()) { in canonicalizeICmpBool()
5888 switch (I.getPredicate()) { in canonicalizeICmpBool()
6451 switch (I.getPredicate()) { in foldFCmpIntToFPConst()
[all …]
H A DInstCombineSelect.cpp135 ICmpInst::Predicate Pred = Cmp->getPredicate(); in foldSelectICmpAnd()
508 Cmp->getPredicate() == ICmpInst::ICMP_EQ && in foldSelectICmpAndAnd()
555 ICmpInst::Predicate Pred = IC->getPredicate(); in foldSelectICmpLshrAshr()
781 ICmpInst::Predicate Pred = ICI->getPredicate(); in canonicalizeSaturatedSubtract()
840 ICmpInst::Predicate Pred = Cmp->getPredicate(); in canonicalizeSaturatedAdd()
917 if (ICI->getPredicate() == ICmpInst::ICMP_NE) in foldSelectCtlzToCttz()
951 ICmpInst::Predicate Pred = ICI->getPredicate(); in foldSelectCttzCtlz()
1002 ICmpInst::Predicate Pred = Cmp.getPredicate(); in adjustMinMax()
1169 if (Cmp.getPredicate() == ICmpInst::ICMP_NE) { in foldSelectValueEquivalence()
1549 CPred = ICI->getPredicate(); in foldSelectInstWithICmpConst()
[all …]
H A DInstCombineAndOrXor.cpp528 ICmpInst::Predicate PredL = LHS->getPredicate(), PredR = RHS->getPredicate(); in foldLogOpOfMaskedICmps()
676 Cmp0->getPredicate()); in simplifyRangeCheck()
684 Cmp1->getPredicate()); in simplifyRangeCheck()
726 if (LHS->getPredicate() != Pred || RHS->getPredicate() != Pred) in foldAndOrOfICmpsOfAndWithPow2()
824 CmpInst::Predicate Pred = ICmp->getPredicate(); in foldSignedTruncationCheck()
908 if (JoinedByAnd && Cmp1->getPredicate() == ICmpInst::ICMP_NE) in foldIsPowerOf2()
1056 if (Cmp0->getPredicate() != Pred || Cmp1->getPredicate() != Pred) in foldEqOfParts()
1212 FCmpInst::Predicate PredL = LHS->getPredicate(), PredR = RHS->getPredicate(); in foldLogicOfFCmps()
2490 IsAnd ? LHS->getInversePredicate() : LHS->getPredicate(); in foldAndOrOfICmpEqZeroAndICmp()
2527 ICmpInst::Predicate PredL = LHS->getPredicate(), PredR = RHS->getPredicate(); in foldAndOrOfICmps()
[all …]
/llvm-project-15.0.7/mlir/lib/Conversion/ArithmeticToLLVM/
H A DArithmeticToLLVM.cpp173 convertCmpPredicate<LLVM::ICmpPredicate>(op.getPredicate()), in matchAndRewrite()
188 convertCmpPredicate<LLVM::ICmpPredicate>(op.getPredicate()), in matchAndRewrite()
208 convertCmpPredicate<LLVM::FCmpPredicate>(op.getPredicate()), in matchAndRewrite()
223 convertCmpPredicate<LLVM::FCmpPredicate>(op.getPredicate()), in matchAndRewrite()
/llvm-project-15.0.7/llvm/include/llvm/IR/
H A DInstrTypes.h834 return getInversePredicate(getPredicate());
850 return getSwappedPredicate(getPredicate());
875 return isNonStrictPredicate(getPredicate());
881 return getStrictPredicate(getPredicate());
894 return getNonStrictPredicate(getPredicate());
948 return isSigned(getPredicate());
954 return isUnsigned(getPredicate());
967 return getSignedPredicate(getPredicate());
979 return getUnsignedPredicate(getPredicate());
997 return isTrueWhenEqual(getPredicate());
[all …]
H A DIntrinsicInst.h499 CmpInst::Predicate getPredicate() const;
531 FCmpInst::Predicate getPredicate() const;
573 static ICmpInst::Predicate getPredicate(Intrinsic::ID ID) { in getPredicate() function
589 ICmpInst::Predicate getPredicate() const { in getPredicate() function
590 return getPredicate(getIntrinsicID()); in getPredicate()
595 return ICmpInst::isSigned(getPredicate(ID)); in isSigned()
/llvm-project-15.0.7/mlir/tools/mlir-tblgen/
H A DCodeGenHelpers.cpp280 if (!namedAttr.attr.getPredicate().isNull() && in collectOpConstraints()
287 if (!successor.constraint.getPredicate().isNull()) { in collectOpConstraints()
294 if (!region.constraint.getPredicate().isNull()) in collectOpConstraints()
/llvm-project-15.0.7/mlir/lib/Conversion/ArithmeticToSPIRV/
H A DArithmeticToSPIRV.cpp676 switch (op.getPredicate()) { in matchAndRewrite()
701 rewriter.replaceOpWithNewOp<arith::CmpIOp>(op, op.getPredicate(), extLhs, in matchAndRewrite()
725 switch (op.getPredicate()) { in matchAndRewrite()
760 switch (op.getPredicate()) { in matchAndRewrite()
797 if (op.getPredicate() == arith::CmpFPredicate::ORD) { in matchAndRewrite()
803 if (op.getPredicate() == arith::CmpFPredicate::UNO) { in matchAndRewrite()
819 if (op.getPredicate() != arith::CmpFPredicate::ORD && in matchAndRewrite()
820 op.getPredicate() != arith::CmpFPredicate::UNO) in matchAndRewrite()
829 if (op.getPredicate() == arith::CmpFPredicate::ORD) in matchAndRewrite()
/llvm-project-15.0.7/mlir/lib/Dialect/Arithmetic/Transforms/
H A DUnsignedWhenEquivalent.cpp49 CmpIPredicate pred = op.getPredicate(); in isCmpIConvertable()
98 rw.replaceOpWithNewOp<CmpIOp>(op, toUnsignedPred(op.getPredicate()), in matchAndRewrite()
/llvm-project-15.0.7/llvm/lib/Target/BPF/
H A DBPFAdjustOpt.cpp133 auto Op = Icmp->getPredicate(); in adjustICmpToBuiltin()
246 auto Cond2Op = Cond->getPredicate(); in serializeICMPCrossBB()
256 auto Cond1Op = Cond->getPredicate(); in serializeICMPCrossBB()
/llvm-project-15.0.7/llvm/utils/TableGen/GlobalISel/
H A DGIMatchDagPredicateDependencyEdge.cpp24 OS << " ==> " << getPredicate()->getName() << "[" in print()
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.h47 const GIMatchDagPredicate *getPredicate() const { return Predicate; } in getPredicate() function
/llvm-project-15.0.7/llvm/lib/Target/PowerPC/MCTargetDesc/
H A DPPCPredicates.h87 inline Predicate getPredicate(unsigned Condition, unsigned Hint) { in getPredicate() function
/llvm-project-15.0.7/llvm/lib/Analysis/
H A DIRSimilarityIdentifier.cpp60 if (Predicate != C->getPredicate()) in initializeInstruction()
167 switch (CI->getPredicate()) { in predicateForConsistency()
178 return CI->getPredicate(); in predicateForConsistency()
182 CmpInst::Predicate IRInstructionData::getPredicate() const { in getPredicate() function in IRInstructionData
189 return cast<CmpInst>(Inst)->getPredicate(); in getPredicate()
215 if (A.getPredicate() != B.getPredicate()) in isClose()
H A DBranchProbabilityInfo.cpp542 auto Search = PointerTable.find(CI->getPredicate()); in calcPointerHeuristics()
643 Constant *Result = ConstantExpr::getCompare(CI->getPredicate(), in computeUnlikelySuccessors()
1017 Search = ICmpWithLibCallTable.find(CI->getPredicate()); in calcZeroHeuristics()
1021 Search = ICmpWithZeroTable.find(CI->getPredicate()); in calcZeroHeuristics()
1025 Search = ICmpWithOneTable.find(CI->getPredicate()); in calcZeroHeuristics()
1029 Search = ICmpWithMinusOneTable.find(CI->getPredicate()); in calcZeroHeuristics()
1058 auto Search = FCmpTable.find(FCmp->getPredicate()); in calcFloatingPointHeuristics()
/llvm-project-15.0.7/mlir/include/mlir/TableGen/
H A DConstraint.h45 Pred getPredicate() const;
/llvm-project-15.0.7/llvm/lib/Target/SystemZ/
H A DSystemZTDC.cpp129 auto Pred = I.getPredicate(); in convertFCmp()
239 auto Pred = I.getPredicate(); in convertICmp()
/llvm-project-15.0.7/llvm/lib/Transforms/Utils/
H A DLoopVersioning.cpp45 Preds(LAI.getPSE().getPredicate()), LAI(LAI), LI(LI), DT(DT), in LoopVersioning()
281 !LAI.getPSE().getPredicate().isAlwaysTrue())) { in runImpl()
/llvm-project-15.0.7/mlir/lib/Conversion/SCFToOpenMP/
H A DSCFToOpenMP.cpp70 typename Predicate = decltype(std::declval<CompareOpTy>().getPredicate())>
97 if (llvm::is_contained(lessThanPredicates, compare.getPredicate())) { in matchSelectReduction()
100 compare.getPredicate())) { in matchSelectReduction()
/llvm-project-15.0.7/llvm/tools/llvm-diff/lib/
H A DDifferenceEngine.cpp264 if (cast<CmpInst>(L)->getPredicate() in diff()
265 != cast<CmpInst>(R)->getPredicate()) { in diff()
544 if (L->getPredicate() != R->getPredicate()) in equivalentAsOperands()
/llvm-project-15.0.7/mlir/lib/Dialect/Arithmetic/IR/
H A DArithmeticOps.cpp1316 auto val = applyCmpPredicateToEqualOperands(getPredicate()); in fold()
1324 getPredicate() == arith::CmpIPredicate::ne) in fold()
1330 getPredicate() == arith::CmpIPredicate::ne) in fold()
1345 Pred origPred = getPredicate(); in fold()
1367 auto val = applyCmpPredicate(getPredicate(), lhs.getValue(), rhs.getValue()); in fold()
1443 auto val = applyCmpPredicate(getPredicate(), lhs.getValue(), rhs.getValue()); in fold()
1542 switch (op.getPredicate()) { in matchAndRewrite()
1554 pred = convertToIntegerPredicate(op.getPredicate(), isUnsigned); in matchAndRewrite()
1832 auto pred = cmp.getPredicate(); in fold()
/llvm-project-15.0.7/llvm/lib/Transforms/Vectorize/
H A DLoopVectorizationLegality.cpp581 if (PSE.getPredicate().isAlwaysTrue()) { in addInductionPhi()
858 if (PSE.getPredicate().isAlwaysTrue()) { in canVectorizeInstrs()
982 PSE.addPredicate(LAI->getPSE().getPredicate()); in canVectorizeMemory()
1344 if (PSE.getPredicate().getComplexity() > SCEVThreshold) { in canVectorize()

1234567