/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/ARM/ |
D | ARMLegalizerInfo.cpp | 210 FCmp32Libcalls[CmpInst::FCMP_ORD] = {{RTLIB::O_F32, CmpInst::ICMP_EQ}}; in setFCmpLibcallsAEABI() 211 FCmp32Libcalls[CmpInst::FCMP_UGE] = {{RTLIB::OLT_F32, CmpInst::ICMP_EQ}}; in setFCmpLibcallsAEABI() 212 FCmp32Libcalls[CmpInst::FCMP_UGT] = {{RTLIB::OLE_F32, CmpInst::ICMP_EQ}}; in setFCmpLibcallsAEABI() 213 FCmp32Libcalls[CmpInst::FCMP_ULE] = {{RTLIB::OGT_F32, CmpInst::ICMP_EQ}}; in setFCmpLibcallsAEABI() 214 FCmp32Libcalls[CmpInst::FCMP_ULT] = {{RTLIB::OGE_F32, CmpInst::ICMP_EQ}}; in setFCmpLibcallsAEABI() 215 FCmp32Libcalls[CmpInst::FCMP_UNE] = {{RTLIB::UNE_F32, CmpInst::ICMP_EQ}}; in setFCmpLibcallsAEABI() 236 FCmp64Libcalls[CmpInst::FCMP_ORD] = {{RTLIB::O_F64, CmpInst::ICMP_EQ}}; in setFCmpLibcallsAEABI() 237 FCmp64Libcalls[CmpInst::FCMP_UGE] = {{RTLIB::OLT_F64, CmpInst::ICMP_EQ}}; in setFCmpLibcallsAEABI() 238 FCmp64Libcalls[CmpInst::FCMP_UGT] = {{RTLIB::OLE_F64, CmpInst::ICMP_EQ}}; in setFCmpLibcallsAEABI() 239 FCmp64Libcalls[CmpInst::FCMP_ULE] = {{RTLIB::OGT_F64, CmpInst::ICMP_EQ}}; in setFCmpLibcallsAEABI() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/ |
D | CmpInstAnalysis.cpp | 29 case ICmpInst::ICMP_EQ: return 2; // 010 in getICmpCode() 50 case 2: NewICmpPred = ICmpInst::ICMP_EQ; break; in getICmpValue() 98 Pred = ICmpInst::ICMP_EQ; in decomposeBitTestICmp() 105 Pred = ICmpInst::ICMP_EQ; in decomposeBitTestICmp() 112 Pred = ICmpInst::ICMP_EQ; in decomposeBitTestICmp() 119 Pred = ICmpInst::ICMP_EQ; in decomposeBitTestICmp()
|
D | DependenceAnalysis.cpp | 437 if (isKnownPredicate(CmpInst::ICMP_EQ, X->getD(), Y->getD())) in intersectConstraints() 466 if (isKnownPredicate(CmpInst::ICMP_EQ, Prod1, Prod2)) { in intersectConstraints() 471 if (isKnownPredicate(CmpInst::ICMP_EQ, Prod1, Prod2)) in intersectConstraints() 552 if (isKnownPredicate(CmpInst::ICMP_EQ, Sum, Y->getC())) in intersectConstraints() 955 if (Pred == CmpInst::ICMP_EQ || in isKnownPredicate() 980 case CmpInst::ICMP_EQ: in isKnownPredicate() 1090 if (isKnownPredicate(CmpInst::ICMP_EQ, Src, Dst)) { in testZIV() 1342 if (isKnownPredicate(CmpInst::ICMP_EQ, Delta, ML)) { in weakCrossingSIVtest() 1709 if (isKnownPredicate(CmpInst::ICMP_EQ, SrcConst, DstConst)) { in weakZeroSrcSIVtest() 1736 if (isKnownPredicate(CmpInst::ICMP_EQ, NewDelta, Product)) { in weakZeroSrcSIVtest() [all …]
|
D | InstructionSimplify.cpp | 80 ExpectedPred = ICmpInst::ICMP_EQ; in foldSelectWithBinaryOp() 1420 if (UnsignedPred == ICmpInst::ICMP_ULT && EqPred == ICmpInst::ICMP_EQ && in simplifyUnsignedRangeCheck() 1444 (Pred0 == ICmpInst::ICMP_EQ && ICmpInst::isFalseWhenEqual(Pred1)) || in simplifyAndOfICmpsWithSameOperands() 1525 if ((IsAnd && P0 != ICmpInst::ICMP_NE) || (!IsAnd && P1 != ICmpInst::ICMP_EQ)) in simplifyAndOrOfICmpsWithZero() 2152 (Pred == CmpInst::ICMP_EQ || Pred == CmpInst::ICMP_NE)) in computePointerICmp() 2162 case CmpInst::ICMP_EQ: in computePointerICmp() 2193 if (Pred == CmpInst::ICMP_EQ || Pred == CmpInst::ICMP_NE) { in computePointerICmp() 2356 case CmpInst::ICMP_EQ: // X == 1 -> X in simplifyICmpOfBools() 2414 case ICmpInst::ICMP_EQ: in simplifyICmpWithZero() 2804 if (Pred == ICmpInst::ICMP_EQ) in simplifyICmpWithBinOp() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/Analysis/ |
D | ValueLatticeTest.cpp | 98 EXPECT_TRUE(LV1.getCompare(CmpInst::ICMP_EQ, I1Ty, LV1)->isOneValue()); in TEST_F() 111 EXPECT_TRUE(LV1.getCompare(CmpInst::ICMP_EQ, I1Ty, LV2)->isZeroValue()); in TEST_F() 121 EXPECT_EQ(LV2.getCompare(CmpInst::ICMP_EQ, I1Ty, LV3), nullptr); in TEST_F() 131 EXPECT_EQ(LV3.getCompare(CmpInst::ICMP_EQ, I1Ty, LV4), nullptr); in TEST_F() 172 EXPECT_TRUE(isa<UndefValue>(LV1.getCompare(CmpInst::ICMP_EQ, I1Ty, LV2))); in TEST_F()
|
/external/llvm/lib/Transforms/Utils/ |
D | CmpInstAnalysis.cpp | 51 case ICmpInst::ICMP_EQ: return 2; // 010 in getICmpCode() 79 case 2: NewICmpPred = ICmpInst::ICMP_EQ; break; in getICmpValue()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/ |
D | InstCombineCompares.cpp | 360 return new ICmpInst(ICmpInst::ICMP_EQ, Idx, FirstTrueIdx); in foldCmpLoadFromIndexedGlobal() 1163 return getICmp(I.ICMP_EQ, A, ConstantInt::getNullValue(A->getType())); in foldICmpShrConstConst() 1177 return getICmp(I.ICMP_EQ, A, ConstantInt::get(A->getType(), Shift)); in foldICmpShrConstConst() 1179 return getICmp(I.ICMP_EQ, A, ConstantInt::get(A->getType(), Shift)); in foldICmpShrConstConst() 1214 return getICmp(I.ICMP_EQ, A, ConstantInt::getNullValue(A->getType())); in foldICmpShlConstConst() 1220 return getICmp(I.ICMP_EQ, A, ConstantInt::get(A->getType(), Shift)); in foldICmpShlConstConst() 1410 return new ICmpInst(ICmpInst::ICMP_EQ, X, Builder.getInt(*AI)); in foldICmpWithConstant() 1563 if (Cmp.getPredicate() == ICmpInst::ICMP_EQ) in foldICmpAndShift() 1705 auto NewPred = Cmp.getPredicate() == CmpInst::ICMP_EQ ? CmpInst::ICMP_UGT in foldICmpAndConstant() 1721 auto NewPred = Cmp.getPredicate() == CmpInst::ICMP_EQ ? CmpInst::ICMP_SGE in foldICmpAndConstant() [all …]
|
D | InstCombineAndOrXor.cpp | 238 bool IsEq = (Pred == ICmpInst::ICMP_EQ); in getMaskedICmpType() 472 ICmpInst::Predicate NewCC = IsAnd ? ICmpInst::ICMP_EQ : ICmpInst::ICMP_NE; in foldLogOpOfMaskedICmps_NotAllZeros_BMask_Mixed() 644 ICmpInst::Predicate NewCC = IsAnd ? ICmpInst::ICMP_EQ : ICmpInst::ICMP_NE; in foldLogOpOfMaskedICmps() 825 if (!JoinedByAnd && Pred != ICmpInst::ICMP_EQ) in foldAndOrOfEqualityCmpsWithConstants() 871 if (!JoinedByAnd && Pred != ICmpInst::ICMP_EQ) in foldAndOrOfICmpsOfAndWithPow2() 893 auto NewPred = JoinedByAnd ? ICmpInst::ICMP_EQ : ICmpInst::ICMP_NE; in foldAndOrOfICmpsOfAndWithPow2() 952 (PredL == ICmpInst::ICMP_EQ && LHSC->isZero())) { in foldAndOfICmps() 961 if (PredL == ICmpInst::ICMP_EQ && PredL == PredR && LHS->hasOneUse() && in foldAndOfICmps() 1864 if (PredL == ICmpInst::ICMP_EQ && LHSC && LHSC->isZero()) { in foldOrOfICmps() 1873 else if (PredR == ICmpInst::ICMP_EQ && RHSC && RHSC->isZero()) { in foldOrOfICmps() [all …]
|
/external/swiftshader/third_party/subzero/pnacl-llvm/ |
D | NaClBitcodeDecoders.cpp | 191 LLVMPredicate = CmpInst::ICMP_EQ; in DecodeIcmpPredicate() 193 case naclbitc::ICMP_EQ: in DecodeIcmpPredicate() 194 LLVMPredicate = CmpInst::ICMP_EQ; in DecodeIcmpPredicate()
|
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/ |
D | InstCombineAndOrXor.cpp | 94 case ICmpInst::ICMP_EQ: return 2; // 010 in getICmpCode() 149 case 2: Pred = ICmpInst::ICMP_EQ; break; in getICmpValue() 497 bool icmp_eq = (SCC == ICmpInst::ICMP_EQ); in getTypeOfMaskedICmp() 570 if (LHSCC != ICmpInst::ICMP_EQ && LHSCC != ICmpInst::ICMP_NE) return 0; in foldLogOpOfMaskedICmpsHelper() 571 if (RHSCC != ICmpInst::ICMP_EQ && RHSCC != ICmpInst::ICMP_NE) return 0; in foldLogOpOfMaskedICmpsHelper() 736 if (Value *V = foldLogOpOfMaskedICmps(LHS, RHS, ICmpInst::ICMP_EQ, Builder)) in FoldAndOfICmps() 755 if (LHSCC == ICmpInst::ICMP_EQ && LHSCst->isZero()) { in FoldAndOfICmps() 859 case ICmpInst::ICMP_EQ: in FoldAndOfICmps() 878 case ICmpInst::ICMP_EQ: // (X != 13 & X == 15) -> X == 15 in FoldAndOfICmps() 894 case ICmpInst::ICMP_EQ: // (X u< 13 & X == 15) -> false in FoldAndOfICmps() [all …]
|
D | InstCombineCompares.cpp | 380 return new ICmpInst(ICmpInst::ICMP_EQ, Idx, FirstTrueIdx); in FoldCmpLoadFromIndexedGlobal() 692 if (Pred == ICmpInst::ICMP_EQ) in FoldICmpAddOpCst() 860 case ICmpInst::ICMP_EQ: in FoldICmpDivCst() 1159 if (ICI.getPredicate() == ICmpInst::ICMP_EQ) in visitICmpInstWithInstAndIntCst() 1230 if (ICI.getPredicate() == ICmpInst::ICMP_EQ) in visitICmpInstWithInstAndIntCst() 1294 return new ICmpInst(TrueIfSigned ? ICmpInst::ICMP_NE : ICmpInst::ICMP_EQ, in visitICmpInstWithInstAndIntCst() 1452 return new ICmpInst(isICMP_NE ? ICmpInst::ICMP_EQ : in visitICmpInstWithInstAndIntCst() 1796 case ICmpInst::ICMP_EQ: { // icmp eq i1 A, B -> ~(A^B) in visitICmpInst() 1949 case ICmpInst::ICMP_EQ: { in visitICmpInst() 2007 return new ICmpInst(ICmpInst::ICMP_EQ, X, in visitICmpInst() [all …]
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineAndOrXor.cpp | 448 bool icmp_eq = (SCC == ICmpInst::ICMP_EQ); in getTypeOfMaskedICmp() 551 Pred = ICmpInst::ICMP_EQ; in decomposeBitTestICmp() 558 Pred = ICmpInst::ICMP_EQ; in decomposeBitTestICmp() 713 ICmpInst::Predicate NewCC = IsAnd ? ICmpInst::ICMP_EQ : ICmpInst::ICMP_NE; in foldLogOpOfMaskedICmps() 908 (LHSCC == ICmpInst::ICMP_EQ && LHSCst->isZero())) { in FoldAndOfICmps() 917 if (LHSCC == ICmpInst::ICMP_EQ && LHSCC == RHSCC && in FoldAndOfICmps() 989 case ICmpInst::ICMP_EQ: in FoldAndOfICmps() 1010 case ICmpInst::ICMP_EQ: // (X != 13 & X == 15) -> X == 15 in FoldAndOfICmps() 1031 case ICmpInst::ICMP_EQ: // (X u< 13 & X == 15) -> false in FoldAndOfICmps() 1058 case ICmpInst::ICMP_EQ: // (X u> 13 & X == 15) -> X == 15 in FoldAndOfICmps() [all …]
|
D | InstCombineCompares.cpp | 417 return new ICmpInst(ICmpInst::ICMP_EQ, Idx, FirstTrueIdx); in FoldCmpLoadFromIndexedGlobal() 1300 case ICmpInst::ICMP_EQ: in FoldICmpDivCst() 1469 return getICmp(I.ICMP_EQ, A, ConstantInt::getNullValue(A->getType())); in FoldICmpCstShrCst() 1483 return getICmp(I.ICMP_EQ, A, ConstantInt::get(A->getType(), Shift)); in FoldICmpCstShrCst() 1485 return getICmp(I.ICMP_EQ, A, ConstantInt::get(A->getType(), Shift)); in FoldICmpCstShrCst() 1525 return getICmp(I.ICMP_EQ, A, ConstantInt::getNullValue(A->getType())); in FoldICmpCstShlCst() 1531 return getICmp(I.ICMP_EQ, A, ConstantInt::get(A->getType(), Shift)); in FoldICmpCstShlCst() 1739 if (ICI.getPredicate() == ICmpInst::ICMP_EQ) in visitICmpInstWithInstAndIntCst() 1852 ICI.getPredicate() == ICmpInst::ICMP_EQ ? ICmpInst::ICMP_UGT in visitICmpInstWithInstAndIntCst() 1865 return new ICmpInst(ICI.getPredicate() == ICmpInst::ICMP_EQ in visitICmpInstWithInstAndIntCst() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/ |
D | ScalarizeMaskedMemIntrin.cpp | 197 Value *Cmp = Builder.CreateICmp(ICmpInst::ICMP_EQ, Predicate, in scalarizeMaskedLoad() 319 Value *Cmp = Builder.CreateICmp(ICmpInst::ICMP_EQ, Predicate, in scalarizeMaskedStore() 446 Value *Cmp = Builder.CreateICmp(ICmpInst::ICMP_EQ, Predicate, in scalarizeMaskedGather() 558 Value *Cmp = Builder.CreateICmp(ICmpInst::ICMP_EQ, Predicate, in scalarizeMaskedScatter()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/IR/ |
D | ConstantFold.cpp | 1451 if (V1 == V2) return ICmpInst::ICMP_EQ; in evaluateICmpRelation() 1460 ICmpInst::Predicate pred = ICmpInst::ICMP_EQ; in evaluateICmpRelation() 1593 return ICmpInst::ICMP_EQ; in evaluateICmpRelation() 1683 return ICmpInst::ICMP_EQ; in evaluateICmpRelation() 1740 if (pred == ICmpInst::ICMP_EQ) in ConstantFoldCompareInstruction() 1752 if (pred == ICmpInst::ICMP_EQ) in ConstantFoldCompareInstruction() 1762 case ICmpInst::ICMP_EQ: in ConstantFoldCompareInstruction() 1778 case ICmpInst::ICMP_EQ: return ConstantInt::get(ResultTy, V1 == V2); in ConstantFoldCompareInstruction() 1919 case ICmpInst::ICMP_EQ: // We know the constants are equal! in ConstantFoldCompareInstruction() 1928 case ICmpInst::ICMP_UGT: case ICmpInst::ICMP_EQ: case ICmpInst::ICMP_UGE: in ConstantFoldCompareInstruction() [all …]
|
/external/llvm/lib/IR/ |
D | ConstantFold.cpp | 1435 if (V1 == V2) return ICmpInst::ICMP_EQ; in evaluateICmpRelation() 1444 ICmpInst::Predicate pred = ICmpInst::ICMP_EQ; in evaluateICmpRelation() 1573 return ICmpInst::ICMP_EQ; in evaluateICmpRelation() 1663 return ICmpInst::ICMP_EQ; in evaluateICmpRelation() 1717 if (pred == ICmpInst::ICMP_EQ) in ConstantFoldCompareInstruction() 1727 if (pred == ICmpInst::ICMP_EQ) in ConstantFoldCompareInstruction() 1737 case ICmpInst::ICMP_EQ: in ConstantFoldCompareInstruction() 1753 case ICmpInst::ICMP_EQ: return ConstantInt::get(ResultTy, V1 == V2); in ConstantFoldCompareInstruction() 1894 case ICmpInst::ICMP_EQ: // We know the constants are equal! in ConstantFoldCompareInstruction() 1903 case ICmpInst::ICMP_UGT: case ICmpInst::ICMP_EQ: case ICmpInst::ICMP_UGE: in ConstantFoldCompareInstruction() [all …]
|
/external/llvm/lib/Transforms/Scalar/ |
D | CorrelatedValuePropagation.cpp | 134 if (LVI->getPredicateOnEdge(ICmpInst::ICMP_EQ, SI, C, in processPHI() 243 LazyValueInfo::Tristate Value = LVI->getPredicateOnEdge(CmpInst::ICMP_EQ, in processSwitch() 309 LVI->getPredicateAt(ICmpInst::ICMP_EQ, V, in processCallSite()
|
/external/swiftshader/third_party/LLVM/lib/VMCore/ |
D | ConstantFold.cpp | 1604 if (V1 == V2) return ICmpInst::ICMP_EQ; in evaluateICmpRelation() 1613 ICmpInst::Predicate pred = ICmpInst::ICMP_EQ; in evaluateICmpRelation() 1740 return ICmpInst::ICMP_EQ; in evaluateICmpRelation() 1824 return ICmpInst::ICMP_EQ; in evaluateICmpRelation() 1874 if (pred == ICmpInst::ICMP_EQ) in ConstantFoldCompareInstruction() 1884 if (pred == ICmpInst::ICMP_EQ) in ConstantFoldCompareInstruction() 1894 case ICmpInst::ICMP_EQ: in ConstantFoldCompareInstruction() 1910 case ICmpInst::ICMP_EQ: return ConstantInt::get(ResultTy, V1 == V2); in ConstantFoldCompareInstruction() 2046 case ICmpInst::ICMP_EQ: // We know the constants are equal! in ConstantFoldCompareInstruction() 2055 case ICmpInst::ICMP_UGT: case ICmpInst::ICMP_EQ: case ICmpInst::ICMP_UGE: in ConstantFoldCompareInstruction() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/ |
D | LowerExpectIntrinsic.cpp | 254 if (Predicate != CmpInst::ICMP_NE && Predicate != CmpInst::ICMP_EQ) in handleBrSelExpect() 286 (Predicate == CmpInst::ICMP_EQ)) in handleBrSelExpect()
|
D | MergeICmps.cpp | 259 << (ExpectedPredicate == ICmpInst::ICMP_EQ ? "eq" : "ne") in visitICmp() 287 auto Result = visitICmp(CmpI, ICmpInst::ICMP_EQ); in visitCmpBlock() 304 CmpI, FalseBlock == PhiBlock ? ICmpInst::ICMP_EQ : ICmpInst::ICMP_NE); in visitCmpBlock()
|
/external/llvm/lib/Fuzzer/ |
D | FuzzerTraceState.cpp | 101 ICMP_EQ = 32, ///< equal enumerator 116 case ICMP_EQ : return Arg1 == Arg2; in ComputeCmp() 138 if (CmpType == ICMP_EQ) return Arg1 == Arg2; in ComputeCmp() 430 if ((CmpType == ICMP_EQ || CmpType == ICMP_NE) && Arg1 == Arg2) in TraceCmpCallback()
|
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/CodeGen/ |
D | MachineOperandTest.cpp | 388 MachineOperand MO = MachineOperand::CreatePredicate(CmpInst::ICMP_EQ); in TEST() 393 ASSERT_TRUE(MO.getPredicate() == CmpInst::ICMP_EQ); in TEST()
|
/external/swiftshader/third_party/subzero/pnacl-llvm/include/llvm/Bitcode/NaCl/ |
D | NaClLLVMBitCodes.h | 294 ICMP_EQ = 32, ///< equal enumerator
|
/external/llvm/lib/Analysis/ |
D | DependenceAnalysis.cpp | 436 if (isKnownPredicate(CmpInst::ICMP_EQ, X->getD(), Y->getD())) in intersectConstraints() 465 if (isKnownPredicate(CmpInst::ICMP_EQ, Prod1, Prod2)) { in intersectConstraints() 470 if (isKnownPredicate(CmpInst::ICMP_EQ, Prod1, Prod2)) in intersectConstraints() 551 if (isKnownPredicate(CmpInst::ICMP_EQ, Sum, Y->getC())) in intersectConstraints() 940 if (Pred == CmpInst::ICMP_EQ || in isKnownPredicate() 965 case CmpInst::ICMP_EQ: in isKnownPredicate() 1024 if (isKnownPredicate(CmpInst::ICMP_EQ, Src, Dst)) { in testZIV() 1276 if (isKnownPredicate(CmpInst::ICMP_EQ, Delta, ML)) { in weakCrossingSIVtest() 1643 if (isKnownPredicate(CmpInst::ICMP_EQ, SrcConst, DstConst)) { in weakZeroSrcSIVtest() 1670 if (isKnownPredicate(CmpInst::ICMP_EQ, NewDelta, Product)) { in weakZeroSrcSIVtest() [all …]
|
D | InstructionSimplify.cpp | 1493 if (UnsignedPred == ICmpInst::ICMP_ULT && EqPred == ICmpInst::ICMP_EQ && in simplifyUnsignedRangeCheck() 1984 (Pred == CmpInst::ICMP_EQ || Pred == CmpInst::ICMP_NE)) in computePointerICmp() 1994 case CmpInst::ICMP_EQ: in computePointerICmp() 2025 if (Pred == CmpInst::ICMP_EQ || Pred == CmpInst::ICMP_NE) { in computePointerICmp() 2182 case ICmpInst::ICMP_EQ: in SimplifyICmpInst() 2244 case ICmpInst::ICMP_EQ: in SimplifyICmpInst() 2507 case ICmpInst::ICMP_EQ: in SimplifyICmpInst() 2564 case ICmpInst::ICMP_EQ: in SimplifyICmpInst() 2609 if ((Pred == ICmpInst::ICMP_EQ || Pred == ICmpInst::ICMP_NE) && in SimplifyICmpInst() 2748 if (Pred == ICmpInst::ICMP_EQ) in SimplifyICmpInst() [all …]
|