Home
last modified time | relevance | path

Searched refs:ICMP_SGT (Results 1 – 25 of 185) sorted by relevance

12345678

/external/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
DCmpInstAnalysis.cpp27 case ICmpInst::ICMP_SGT: return 1; // 001 in getICmpCode()
48 case 1: Pred = Sign ? ICmpInst::ICMP_SGT : ICmpInst::ICMP_UGT; break; in getPredForICmpCode()
92 case ICmpInst::ICMP_SGT: in decomposeBitTestICmp()
DInstructionSimplify.cpp1021 isICmpTrue(CmpInst::ICMP_SGT, Y, PosDividendC, Q, MaxRecurse)) in isDivZero()
1036 if (isICmpTrue(CmpInst::ICMP_SGT, X, NegDivisorC, Q, MaxRecurse) && in isDivZero()
1541 (Pred0 == ICmpInst::ICMP_SLT && Pred1 == ICmpInst::ICMP_SGT) || in simplifyAndOfICmpsWithSameOperands()
1674 if (Pred0 == ICmpInst::ICMP_ULT && Pred1 == ICmpInst::ICMP_SGT) in simplifyAndOfICmpsWithAdd()
1676 if (Pred0 == ICmpInst::ICMP_SLT && Pred1 == ICmpInst::ICMP_SGT && isNSW) in simplifyAndOfICmpsWithAdd()
1680 if (Pred0 == ICmpInst::ICMP_ULE && Pred1 == ICmpInst::ICMP_SGT) in simplifyAndOfICmpsWithAdd()
1682 if (Pred0 == ICmpInst::ICMP_SLE && Pred1 == ICmpInst::ICMP_SGT && isNSW) in simplifyAndOfICmpsWithAdd()
1755 if (Pred0 == ICmpInst::ICMP_SGT && Pred1 == ICmpInst::ICMP_SLE && isNSW) in simplifyOrOfICmpsWithAdd()
2546 case CmpInst::ICMP_SGT: // X >s 0 -> false in simplifyICmpOfBools()
2650 case ICmpInst::ICMP_SGT: { in simplifyICmpWithZero()
[all …]
/external/llvm-project/llvm/lib/Analysis/
DCmpInstAnalysis.cpp27 case ICmpInst::ICMP_SGT: return 1; // 001 in getICmpCode()
48 case 1: Pred = Sign ? ICmpInst::ICMP_SGT : ICmpInst::ICMP_UGT; break; in getPredForICmpCode()
92 case ICmpInst::ICMP_SGT: in decomposeBitTestICmp()
/external/llvm/lib/Transforms/Utils/
DCmpInstAnalysis.cpp50 case ICmpInst::ICMP_SGT: return 1; // 001 in getICmpCode()
78 case 1: NewICmpPred = Sign ? ICmpInst::ICMP_SGT : ICmpInst::ICMP_UGT; break; in getICmpValue()
/external/llvm-project/llvm/unittests/Analysis/
DValueLatticeTest.cpp114 EXPECT_TRUE(LV1.getCompare(CmpInst::ICMP_SGT, I1Ty, LV1)->isZeroValue()); in TEST_F()
124 EXPECT_TRUE(LV1.getCompare(CmpInst::ICMP_SGT, I1Ty, LV2)->isZeroValue()); in TEST_F()
134 EXPECT_EQ(LV2.getCompare(CmpInst::ICMP_SGT, I1Ty, LV3), nullptr); in TEST_F()
144 EXPECT_EQ(LV3.getCompare(CmpInst::ICMP_SGT, I1Ty, LV4), nullptr); in TEST_F()
184 EXPECT_TRUE(isa<UndefValue>(LV1.getCompare(CmpInst::ICMP_SGT, I1Ty, LV2))); in TEST_F()
/external/llvm-project/llvm/lib/Target/ARM/
DARMLegalizerInfo.cpp315 FCmp32Libcalls[CmpInst::FCMP_OGT] = {{RTLIB::OGT_F32, CmpInst::ICMP_SGT}}; in setFCmpLibcallsGNU()
320 FCmp32Libcalls[CmpInst::FCMP_UGT] = {{RTLIB::OLE_F32, CmpInst::ICMP_SGT}}; in setFCmpLibcallsGNU()
325 FCmp32Libcalls[CmpInst::FCMP_ONE] = {{RTLIB::OGT_F32, CmpInst::ICMP_SGT}, in setFCmpLibcallsGNU()
333 FCmp64Libcalls[CmpInst::FCMP_OGT] = {{RTLIB::OGT_F64, CmpInst::ICMP_SGT}}; in setFCmpLibcallsGNU()
338 FCmp64Libcalls[CmpInst::FCMP_UGT] = {{RTLIB::OLE_F64, CmpInst::ICMP_SGT}}; in setFCmpLibcallsGNU()
343 FCmp64Libcalls[CmpInst::FCMP_ONE] = {{RTLIB::OGT_F64, CmpInst::ICMP_SGT}, in setFCmpLibcallsGNU()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/ARM/
DARMLegalizerInfo.cpp315 FCmp32Libcalls[CmpInst::FCMP_OGT] = {{RTLIB::OGT_F32, CmpInst::ICMP_SGT}}; in setFCmpLibcallsGNU()
320 FCmp32Libcalls[CmpInst::FCMP_UGT] = {{RTLIB::OLE_F32, CmpInst::ICMP_SGT}}; in setFCmpLibcallsGNU()
325 FCmp32Libcalls[CmpInst::FCMP_ONE] = {{RTLIB::OGT_F32, CmpInst::ICMP_SGT}, in setFCmpLibcallsGNU()
333 FCmp64Libcalls[CmpInst::FCMP_OGT] = {{RTLIB::OGT_F64, CmpInst::ICMP_SGT}}; in setFCmpLibcallsGNU()
338 FCmp64Libcalls[CmpInst::FCMP_UGT] = {{RTLIB::OLE_F64, CmpInst::ICMP_SGT}}; in setFCmpLibcallsGNU()
343 FCmp64Libcalls[CmpInst::FCMP_ONE] = {{RTLIB::OGT_F64, CmpInst::ICMP_SGT}, in setFCmpLibcallsGNU()
/external/swiftshader/third_party/subzero/pnacl-llvm/
DNaClBitcodeDecoders.cpp210 case naclbitc::ICMP_SGT: in DecodeIcmpPredicate()
211 LLVMPredicate = CmpInst::ICMP_SGT; in DecodeIcmpPredicate()
/external/llvm-project/llvm/lib/Transforms/InstCombine/
DInstCombineCompares.cpp90 if (Pred == ICmpInst::ICMP_SGT) { in isSignTest()
1136 return new ICmpInst(ICmpInst::ICMP_SGT, X, in foldICmpAddOpConst()
1146 assert(Pred == ICmpInst::ICMP_SGT || Pred == ICmpInst::ICMP_SGE); in foldICmpAddOpConst()
1401 if (Pred == ICmpInst::ICMP_SGT) { in foldICmpWithZero()
1607 return new ICmpInst(ICmpInst::ICMP_SGT, X, in foldICmpXorConstant()
2044 if (Pred == ICmpInst::ICMP_SGT) in foldICmpShlOne()
2054 if (Pred == ICmpInst::ICMP_SGT || Pred == ICmpInst::ICMP_SGE) in foldICmpShlOne()
2090 if (Pred == ICmpInst::ICMP_SGT) { in foldICmpShlConstant()
2240 if (Pred == CmpInst::ICMP_SLT || (Pred == CmpInst::ICMP_SGT && IsExact)) { in foldICmpShrConstant()
2247 if (Pred == CmpInst::ICMP_SGT) { in foldICmpShrConstant()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/
DInstCombineCompares.cpp89 if (Pred == ICmpInst::ICMP_SGT) { in isSignTest()
1134 return new ICmpInst(ICmpInst::ICMP_SGT, X, in foldICmpAddOpConst()
1144 assert(Pred == ICmpInst::ICMP_SGT || Pred == ICmpInst::ICMP_SGE); in foldICmpAddOpConst()
1398 if (Pred == ICmpInst::ICMP_SGT) { in foldICmpWithZero()
1586 return new ICmpInst(ICmpInst::ICMP_SGT, X, in foldICmpXorConstant()
2002 if (Pred == ICmpInst::ICMP_SGT) in foldICmpShlOne()
2012 if (Pred == ICmpInst::ICMP_SGT || Pred == ICmpInst::ICMP_SGE) in foldICmpShlOne()
2048 if (Pred == ICmpInst::ICMP_SGT) { in foldICmpShlConstant()
2197 if (Pred == CmpInst::ICMP_SLT || (Pred == CmpInst::ICMP_SGT && IsExact)) { in foldICmpShrConstant()
2204 if (Pred == CmpInst::ICMP_SGT) { in foldICmpShrConstant()
[all …]
/external/llvm-project/llvm/lib/Target/BPF/
DBPFAdjustOpt.cpp197 if (Cond1Op == ICmpInst::ICMP_SGT || Cond1Op == ICmpInst::ICMP_SGE) { in serializeICMPCrossBB()
201 if (Cond2Op != ICmpInst::ICMP_SGT && Cond1Op != ICmpInst::ICMP_SGE) in serializeICMPCrossBB()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
DInductiveRangeCheckElimination.cpp306 case ICmpInst::ICMP_SGT: in INITIALIZE_PASS_DEPENDENCY()
648 if (Pred != ICmpInst::ICMP_SLT && Pred != ICmpInst::ICMP_SGT && in isSafeDecreasingBound()
669 IsSigned ? CmpInst::ICMP_SGT : CmpInst::ICMP_UGT; in isSafeDecreasingBound()
698 if (Pred != ICmpInst::ICMP_SLT && Pred != ICmpInst::ICMP_SGT && in isSafeIncreasingBound()
899 Pred = ICmpInst::ICMP_SGT; in parseLoopStructure()
908 bool GTPred = (Pred == ICmpInst::ICMP_SGT || Pred == ICmpInst::ICMP_UGT); in parseLoopStructure()
950 Pred = ICmpInst::ICMP_SGT; in parseLoopStructure()
971 bool GTPred = (Pred == ICmpInst::ICMP_SGT || Pred == ICmpInst::ICMP_UGT); in parseLoopStructure()
982 Pred == ICmpInst::ICMP_SLT || Pred == ICmpInst::ICMP_SGT; in parseLoopStructure()
1279 : (IsSignedPredicate ? ICmpInst::ICMP_SGT : ICmpInst::ICMP_UGT); in changeIterationSpaceEnd()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineCompares.cpp138 case ICmpInst::ICMP_SGT: // True if LHS s> -1 in isSignBitCheck()
170 if (Pred == ICmpInst::ICMP_SGT) { in isSignTest()
1170 return new ICmpInst(ICmpInst::ICMP_SGT, X, ConstantExpr::getSub(SMax, CI)); in FoldICmpAddOpCst()
1179 assert(Pred == ICmpInst::ICMP_SGT || Pred == ICmpInst::ICMP_SGE); in FoldICmpAddOpCst()
1330 case ICmpInst::ICMP_SGT: in FoldICmpDivCst()
1577 (ICI.getPredicate() == ICmpInst::ICMP_SGT && RHSV.isAllOnesValue())) { in visitICmpInstWithInstAndIntCst()
1589 bool isTrueIfPositive = ICI.getPredicate() == ICmpInst::ICMP_SGT; in visitICmpInstWithInstAndIntCst()
1595 return new ICmpInst(ICmpInst::ICMP_SGT, CompareVal, in visitICmpInstWithInstAndIntCst()
1962 if (Pred == ICmpInst::ICMP_SGT) in visitICmpInstWithInstAndIntCst()
1974 if (Pred == ICmpInst::ICMP_SGT || Pred == ICmpInst::ICMP_SGE) in visitICmpInstWithInstAndIntCst()
[all …]
DInstCombineAndOrXor.cpp321 ICmpInst::ICMP_SGT : ICmpInst::ICMP_UGT); in InsertRangeTest()
546 case ICmpInst::ICMP_SGT: in decomposeBitTestICmp()
827 if (!((Pred0 == ICmpInst::ICMP_SGT && RangeStart->isMinusOne()) || in simplifyRangeCheck()
1012 case ICmpInst::ICMP_SGT: // (X != 13 & X s> 15) -> X s> 15 in FoldAndOfICmps()
1034 case ICmpInst::ICMP_SGT: // (X u< 13 & X s> 15) -> no change in FoldAndOfICmps()
1061 case ICmpInst::ICMP_SGT: // (X u> 13 & X s> 15) -> no change in FoldAndOfICmps()
1073 case ICmpInst::ICMP_SGT: in FoldAndOfICmps()
1077 case ICmpInst::ICMP_SGT: // (X s> 13 & X s> 15) -> X s> 15 in FoldAndOfICmps()
1916 case ICmpInst::ICMP_SGT: // (X == 13 | X s> 14) -> no change in FoldOrOfICmps()
1929 case ICmpInst::ICMP_SGT: // (X != 13 | X s> 15) -> X != 13 in FoldOrOfICmps()
[all …]
DInstCombineSelect.cpp52 return ICmpInst::ICMP_SGT; in getCmpPredicateForMinMax()
434 case ICmpInst::ICMP_SGT: { in visitSelectInstWithICmp()
441 if (Pred == ICmpInst::ICMP_UGT || Pred == ICmpInst::ICMP_SGT) in visitSelectInstWithICmp()
520 if (Pred == ICmpInst::ICMP_SGT && Cmp->isAllOnesValue()) { in visitSelectInstWithICmp()
573 } else if (Pred == ICmpInst::ICMP_SGT && match(CmpRHS, m_AllOnes())) { in visitSelectInstWithICmp()
/external/llvm-project/llvm/lib/Transforms/Scalar/
DInductiveRangeCheckElimination.cpp324 case ICmpInst::ICMP_SGT: in INITIALIZE_PASS_DEPENDENCY()
664 if (Pred != ICmpInst::ICMP_SLT && Pred != ICmpInst::ICMP_SGT && in isSafeDecreasingBound()
685 IsSigned ? CmpInst::ICMP_SGT : CmpInst::ICMP_UGT; in isSafeDecreasingBound()
714 if (Pred != ICmpInst::ICMP_SLT && Pred != ICmpInst::ICMP_SGT && in isSafeIncreasingBound()
911 Pred = ICmpInst::ICMP_SGT; in parseLoopStructure()
920 bool GTPred = (Pred == ICmpInst::ICMP_SGT || Pred == ICmpInst::ICMP_UGT); in parseLoopStructure()
961 Pred = ICmpInst::ICMP_SGT; in parseLoopStructure()
982 bool GTPred = (Pred == ICmpInst::ICMP_SGT || Pred == ICmpInst::ICMP_UGT); in parseLoopStructure()
993 Pred == ICmpInst::ICMP_SLT || Pred == ICmpInst::ICMP_SGT; in parseLoopStructure()
1294 : (IsSignedPredicate ? ICmpInst::ICMP_SGT : ICmpInst::ICMP_UGT); in changeIterationSpaceEnd()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/IR/
DConstantFold.cpp1581 pred = isSigned ? ICmpInst::ICMP_SGT : ICmpInst::ICMP_UGT; in evaluateICmpRelation()
1697 return isSigned ? ICmpInst::ICMP_SGT : ICmpInst::ICMP_UGT; in evaluateICmpRelation()
1704 return isSigned ? ICmpInst::ICMP_SGT : ICmpInst::ICMP_UGT; in evaluateICmpRelation()
1728 return isSigned ? ICmpInst::ICMP_SGT : ICmpInst::ICMP_UGT; in evaluateICmpRelation()
1775 case 1: return isSigned ? ICmpInst::ICMP_SGT:ICmpInst::ICMP_UGT; in evaluateICmpRelation()
1784 return isSigned ? ICmpInst::ICMP_SGT : ICmpInst::ICMP_UGT; in evaluateICmpRelation()
1894 case ICmpInst::ICMP_SGT: return ConstantInt::get(ResultTy, V1.sgt(V2)); in ConstantFoldCompareInstruction()
2055 case ICmpInst::ICMP_SGT: case ICmpInst::ICMP_EQ: case ICmpInst::ICMP_SGE: in ConstantFoldCompareInstruction()
2067 case ICmpInst::ICMP_SGT: in ConstantFoldCompareInstruction()
2069 case ICmpInst::ICMP_SGT: case ICmpInst::ICMP_NE: case ICmpInst::ICMP_SGE: in ConstantFoldCompareInstruction()
[all …]
DInstructions.cpp3539 case ICMP_SGT: return ICMP_SLE; in getInversePredicate()
3542 case ICMP_SLE: return ICMP_SGT; in getInversePredicate()
3584 case ICmpInst::ICMP_SGT: return "sgt"; in getPredicateName()
3599 case ICMP_SGT: case ICMP_SLT: case ICMP_SGE: case ICMP_SLE: in getSignedPredicate()
3601 case ICMP_UGT: return ICMP_SGT; in getSignedPredicate()
3614 case ICMP_SGT: return ICMP_UGT; in getUnsignedPredicate()
3624 case ICMP_SGT: return ICMP_SGE; in getFlippedStrictnessPredicate()
3626 case ICMP_SGE: return ICMP_SGT; in getFlippedStrictnessPredicate()
3649 case ICMP_SGT: return ICMP_SLT; in getSwappedPredicate()
3650 case ICMP_SLT: return ICMP_SGT; in getSwappedPredicate()
[all …]
/external/llvm/lib/IR/
DConstantFold.cpp1452 pred = isSigned ? ICmpInst::ICMP_SGT : ICmpInst::ICMP_UGT; in evaluateICmpRelation()
1564 return isSigned ? ICmpInst::ICMP_SGT : ICmpInst::ICMP_UGT; in evaluateICmpRelation()
1571 return isSigned ? ICmpInst::ICMP_SGT : ICmpInst::ICMP_UGT; in evaluateICmpRelation()
1595 return isSigned ? ICmpInst::ICMP_SGT : ICmpInst::ICMP_UGT; in evaluateICmpRelation()
1642 case 1: return isSigned ? ICmpInst::ICMP_SGT:ICmpInst::ICMP_UGT; in evaluateICmpRelation()
1651 return isSigned ? ICmpInst::ICMP_SGT : ICmpInst::ICMP_UGT; in evaluateICmpRelation()
1756 case ICmpInst::ICMP_SGT: return ConstantInt::get(ResultTy, V1.sgt(V2)); in ConstantFoldCompareInstruction()
1911 case ICmpInst::ICMP_SGT: case ICmpInst::ICMP_EQ: case ICmpInst::ICMP_SGE: in ConstantFoldCompareInstruction()
1923 case ICmpInst::ICMP_SGT: in ConstantFoldCompareInstruction()
1925 case ICmpInst::ICMP_SGT: case ICmpInst::ICMP_NE: case ICmpInst::ICMP_SGE: in ConstantFoldCompareInstruction()
[all …]
/external/swiftshader/third_party/subzero/pnacl-llvm/include/llvm/Bitcode/NaCl/
DNaClLLVMBitCodes.h295 ICMP_SGT = 38, ///< signed greater than enumerator
/external/llvm-project/llvm/lib/IR/
DConstantFold.cpp1702 pred = isSigned ? ICmpInst::ICMP_SGT : ICmpInst::ICMP_UGT; in evaluateICmpRelation()
1824 return isSigned ? ICmpInst::ICMP_SGT : ICmpInst::ICMP_UGT; in evaluateICmpRelation()
1831 return isSigned ? ICmpInst::ICMP_SGT : ICmpInst::ICMP_UGT; in evaluateICmpRelation()
1855 return isSigned ? ICmpInst::ICMP_SGT : ICmpInst::ICMP_UGT; in evaluateICmpRelation()
1902 case 1: return isSigned ? ICmpInst::ICMP_SGT:ICmpInst::ICMP_UGT; in evaluateICmpRelation()
1911 return isSigned ? ICmpInst::ICMP_SGT : ICmpInst::ICMP_UGT; in evaluateICmpRelation()
2024 case ICmpInst::ICMP_SGT: return ConstantInt::get(ResultTy, V1.sgt(V2)); in ConstantFoldCompareInstruction()
2199 case ICmpInst::ICMP_SGT: case ICmpInst::ICMP_EQ: case ICmpInst::ICMP_SGE: in ConstantFoldCompareInstruction()
2211 case ICmpInst::ICMP_SGT: in ConstantFoldCompareInstruction()
2213 case ICmpInst::ICMP_SGT: case ICmpInst::ICMP_NE: case ICmpInst::ICMP_SGE: in ConstantFoldCompareInstruction()
[all …]
DInstructions.cpp3656 case ICMP_SGT: return ICMP_SLE; in getInversePredicate()
3659 case ICMP_SLE: return ICMP_SGT; in getInversePredicate()
3701 case ICmpInst::ICMP_SGT: return "sgt"; in getPredicateName()
3716 case ICMP_SGT: case ICMP_SLT: case ICMP_SGE: case ICMP_SLE: in getSignedPredicate()
3718 case ICMP_UGT: return ICMP_SGT; in getSignedPredicate()
3731 case ICMP_SGT: return ICMP_UGT; in getUnsignedPredicate()
3743 case ICMP_SGT: return ICMP_SLT; in getSwappedPredicate()
3744 case ICMP_SLT: return ICMP_SGT; in getSwappedPredicate()
3786 case ICMP_SGT: in isStrictPredicate()
3803 return ICMP_SGT; in getStrictPredicate()
[all …]
/external/llvm/lib/Analysis/
DInstructionSimplify.cpp1537 if (Pred0 == ICmpInst::ICMP_ULT && Pred1 == ICmpInst::ICMP_SGT) in SimplifyAndOfICmps()
1539 if (Pred0 == ICmpInst::ICMP_SLT && Pred1 == ICmpInst::ICMP_SGT && isNSW) in SimplifyAndOfICmps()
1543 if (Pred0 == ICmpInst::ICMP_ULE && Pred1 == ICmpInst::ICMP_SGT) in SimplifyAndOfICmps()
1545 if (Pred0 == ICmpInst::ICMP_SLE && Pred1 == ICmpInst::ICMP_SGT && isNSW) in SimplifyAndOfICmps()
1719 if (Pred0 == ICmpInst::ICMP_SGT && Pred1 == ICmpInst::ICMP_SLE && isNSW) in SimplifyOrOfICmps()
2279 case ICmpInst::ICMP_SGT: in SimplifyICmpInst()
2519 case ICmpInst::ICMP_SGT: in SimplifyICmpInst()
2571 case ICmpInst::ICMP_SGT: in SimplifyICmpInst()
2708 if (Pred == ICmpInst::ICMP_SGT || Pred == ICmpInst::ICMP_SLE) { in SimplifyICmpInst()
2716 return Pred == ICmpInst::ICMP_SGT ? getTrue(ITy) : getFalse(ITy); in SimplifyICmpInst()
[all …]
DBranchProbabilityInfo.cpp441 case CmpInst::ICMP_SGT: in calcZeroHeuristics()
462 case CmpInst::ICMP_SGT: in calcZeroHeuristics()
/external/llvm-project/llvm/unittests/IR/
DPatternMatch.cpp334 m_SpecificInt_ICMP(ICmpInst::Predicate::ICMP_SGT, APInt(BitWidth, 0)) in TEST_F()
337 m_SpecificInt_ICMP(ICmpInst::Predicate::ICMP_SGT, APInt(BitWidth, 0)) in TEST_F()
340 m_SpecificInt_ICMP(ICmpInst::Predicate::ICMP_SGT, APInt(BitWidth, 0)) in TEST_F()
344 m_SpecificInt_ICMP(ICmpInst::Predicate::ICMP_SGT, APInt(BitWidth, 1)) in TEST_F()
347 m_SpecificInt_ICMP(ICmpInst::Predicate::ICMP_SGT, APInt(BitWidth, 1)) in TEST_F()
350 m_SpecificInt_ICMP(ICmpInst::Predicate::ICMP_SGT, APInt(BitWidth, 1)) in TEST_F()
354 m_SpecificInt_ICMP(ICmpInst::Predicate::ICMP_SGT, APInt(BitWidth, -1)) in TEST_F()
357 m_SpecificInt_ICMP(ICmpInst::Predicate::ICMP_SGT, APInt(BitWidth, -1)) in TEST_F()
360 m_SpecificInt_ICMP(ICmpInst::Predicate::ICMP_SGT, APInt(BitWidth, -1)) in TEST_F()

12345678