/external/llvm/unittests/IR/ |
D | PatternMatch.cpp | 61 EXPECT_TRUE(m_OneUse(m_Value(V)).match(One)); in TEST_F() 64 EXPECT_FALSE(m_OneUse(m_Value()).match(Two)); in TEST_F() 65 EXPECT_FALSE(m_OneUse(m_Value()).match(Leaf)); in TEST_F() 75 EXPECT_TRUE(m_OrdFMin(m_Value(MatchL), m_Value(MatchR)) in TEST_F() 81 EXPECT_TRUE(m_OrdFMin(m_Value(MatchL), m_Value(MatchR)) in TEST_F() 87 EXPECT_FALSE(m_OrdFMin(m_Value(MatchL), m_Value(MatchR)) in TEST_F() 91 EXPECT_FALSE(m_OrdFMin(m_Value(MatchL), m_Value(MatchR)) in TEST_F() 95 EXPECT_TRUE(m_OrdFMin(m_Value(MatchL), m_Value(MatchR)) in TEST_F() 101 EXPECT_TRUE(m_OrdFMin(m_Value(MatchL), m_Value(MatchR)) in TEST_F() 114 EXPECT_TRUE(m_OrdFMax(m_Value(MatchL), m_Value(MatchR)) in TEST_F() [all …]
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineAndOrXor.cpp | 616 } else if (!match(L1, m_And(m_Value(L11), m_Value(L12)))) { in foldLogOpOfMaskedICmpsHelper() 626 } else if (!match(L2, m_And(m_Value(L21), m_Value(L22)))) { in foldLogOpOfMaskedICmpsHelper() 650 if (!match(R1, m_And(m_Value(R11), m_Value(R12)))) { in foldLogOpOfMaskedICmpsHelper() 670 if (!match(R2, m_And(m_Value(R11), m_Value(R12)))) { in foldLogOpOfMaskedICmpsHelper() 941 if (match(Val2, m_Trunc(m_Value(V))) && in FoldAndOfICmps() 945 } else if (match(Val, m_Trunc(m_Value(V))) && in FoldAndOfICmps() 1233 if (match(Op0, m_OneUse(m_Xor(m_ZExt(m_Value(A)), m_ConstantInt(C1)))) && in matchDeMorgansLaws() 1234 match(Op1, m_OneUse(m_Xor(m_ZExt(m_Value(B)), m_Specific(C1))))) { in matchDeMorgansLaws() 1359 if (match(Op0, m_Trunc(m_And(m_Value(X), m_ConstantInt(YC))))) { in visitAnd() 1386 if (match(Op0, m_Or(m_Value(A), m_Value(B))) && in visitAnd() [all …]
|
D | InstCombineAddSub.cpp | 1007 if (match(RHS, m_Add(m_Value(X), m_One()))) in checkForNegativeOperand() 1010 if (match(LHS, m_Add(m_Value(X), m_One()))) { in checkForNegativeOperand() 1012 if (match(RHS, m_Xor(m_Value(Y), m_APInt(C1)))) in checkForNegativeOperand() 1015 if (match(X, m_Xor(m_Value(Y), m_APInt(C1)))) { in checkForNegativeOperand() 1018 if (match(Y, m_Or(m_Value(Z), m_APInt(C2))) && (*C2 == ~(*C1))) { in checkForNegativeOperand() 1021 } else if (match(Y, m_And(m_Value(Z), m_APInt(C2))) && (*C1 == *C2)) { in checkForNegativeOperand() 1035 if (match(RHS, m_Xor(m_Value(Y), m_APInt(C1)))) in checkForNegativeOperand() 1041 if (match(LHS, m_Xor(m_Value(Y), m_APInt(C1)))) in checkForNegativeOperand() 1043 if (match(Y, m_And(m_Value(Z), m_APInt(C2))) && *C1 == (*C2 + 1)) { in checkForNegativeOperand() 1082 if (match(LHS, m_Xor(m_Value(XorLHS), m_ConstantInt(XorRHS)))) { in visitAdd() [all …]
|
D | InstCombineMulDivRem.cpp | 40 if (match(V, m_LShr(m_OneUse(m_Shl(m_Value(One), m_Value(A))), m_Value(B))) && in simplifyValueKnownNonZero() 201 if (match(&I, m_Mul(m_Shl(m_Value(NewOp), m_Constant(C2)), in visitMul() 216 if (match(&I, m_Mul(m_Value(NewOp), m_Constant(C1)))) { in visitMul() 255 if (match(Op0, m_Sub(m_Value(Y), m_Value(X)))) in visitMul() 257 else if (match(Op0, m_Add(m_Value(Y), m_ConstantInt(C1)))) in visitMul() 283 if (match(Op0, m_OneUse(m_Add(m_Value(X), m_Constant(C1))))) { in visitMul() 287 if (!match(Mul, m_Mul(m_Value(), m_Value()))) in visitMul() 297 match(Op0, m_NSWSub(m_Value(), m_Value())) && in visitMul() 298 match(Op1, m_NSWSub(m_Value(), m_Value()))) in visitMul() 353 if (match(Op0, m_Shl(m_One(), m_Value(Y)))) { in visitMul() [all …]
|
D | InstCombineCompares.cpp | 1224 match(LHSI->getOperand(0), m_Signum(m_Value(V)))) in visitICmpInstWithInstAndIntCst() 1466 if (match(Or, m_Or(m_Value(LShr), m_Value(X))) && in visitICmpInstWithInstAndIntCst() 1467 match(LShr, m_LShr(m_Specific(X), m_Value(Y)))) { in visitICmpInstWithInstAndIntCst() 1554 match(LHSI, m_Signum(m_Value(V)))) in visitICmpInstWithInstAndIntCst() 1562 if (match(LHSI, m_Or(m_PtrToInt(m_Value(P)), m_PtrToInt(m_Value(Q))))) { in visitICmpInstWithInstAndIntCst() 1602 if (match(LHSI, m_Shl(m_One(), m_Value(X)))) { in visitICmpInstWithInstAndIntCst() 2408 if (match(OtherVal, m_And(m_Value(ValToMask), m_ConstantInt(CI)))) { in ProcessUMulZExtIdiom() 2767 if (match(Op0, m_Select(m_Value(Cond), m_Value(SelectTrue), in visitICmpInst() 2768 m_Value(SelectFalse)))) { in visitICmpInst() 2851 match(Op0, m_Add(m_Add(m_Value(A), m_Value(B)), m_ConstantInt(CI2)))) in visitICmpInst() [all …]
|
D | InstCombineShifts.cpp | 46 if (Op1->hasOneUse() && match(Op1, m_SRem(m_Value(A), m_Power2(B)))) { in commonShiftTransforms() 84 if ((isLeftShift && match(I, m_LShr(m_Value(), m_ConstantInt(CI)))) || in CanEvaluateShifted() 85 (!isLeftShift && match(I, m_Shl(m_Value(), m_ConstantInt(CI))))) { in CanEvaluateShifted() 427 match(Op0BO->getOperand(1), m_Shr(m_Value(V1), in FoldShiftByConstant() 447 m_And(m_OneUse(m_Shr(m_Value(V1), m_Specific(Op1))), in FoldShiftByConstant() 463 match(Op0BO->getOperand(0), m_Shr(m_Value(V1), in FoldShiftByConstant() 482 m_And(m_OneUse(m_Shr(m_Value(V1), m_Value(V2))), in FoldShiftByConstant() 730 if (match(I.getOperand(0), m_OneUse(m_Shl(m_Constant(C1), m_Value(A)))) && in visitShl() 800 if (match(Op0, m_Shl(m_Value(X), m_Specific(Op1)))) { in visitAShr()
|
D | InstCombineSelect.cpp | 313 if (!match(CmpLHS, m_And(m_Value(X), m_Power2(C1)))) in foldSelectICmpAndOr() 376 if (match(Count, m_ZExt(m_Value(V))) || in foldSelectCttzCtlz() 377 match(Count, m_Trunc(m_Value(V)))) in foldSelectCttzCtlz() 553 match(CmpLHS, m_And(m_Value(X), m_Power2(Y))) && in visitSelectInstWithICmp() 705 if (match(V, m_Not(m_Value(NotV)))) { in FoldSPFofSPF() 767 if (!match(LHS, m_And(m_Value(), m_ConstantInt(AndRHS)))) in foldSelectICmpAnd() 1123 (LHS->hasNUses(2) && match(LHS, m_Not(m_Value()))) || in visitSelectInst() 1124 (RHS->hasNUses(2) && match(RHS, m_Not(m_Value()))) || in visitSelectInst() 1125 (SI.hasOneUse() && match(*SI.user_begin(), m_Not(m_Value()))); in visitSelectInst()
|
D | InstCombineCalls.cpp | 777 if (match(IIOperand, m_BSwap(m_Value(X)))) in visitCallInst() 781 if (match(IIOperand, m_Trunc(m_BSwap(m_Value(X))))) { in visitCallInst() 796 if (match(IIOperand, m_Intrinsic<Intrinsic::bitreverse>(m_Value(X)))) in visitCallInst() 920 if (match(Arg1, m_FMin(m_Value(X), m_Value(Y)))) { in visitCallInst() 927 if (match(Arg0, m_FMin(m_Value(X), m_Value(Y)))) { in visitCallInst() 943 if (match(Arg1, m_FMax(m_Value(X), m_Value(Y)))) { in visitCallInst() 950 if (match(Arg0, m_FMax(m_Value(X), m_Value(Y)))) { in visitCallInst() 1703 if (match(IIOperand, m_And(m_Value(A), m_Value(B)))) { in visitCallInst() 1709 if (match(IIOperand, m_Not(m_Or(m_Value(A), m_Value(B))))) { in visitCallInst()
|
D | InstCombineCasts.cpp | 448 if (!match(TruncOp, m_CombineOr(m_BitCast(m_Value(VecInput)), in foldVecTruncToExtElt() 449 m_LShr(m_BitCast(m_Value(VecInput)), in foldVecTruncToExtElt() 525 match(Src, m_LShr(m_ZExt(m_Value(A)), m_ConstantInt(Cst)))) { in visitTrunc() 551 match(Src, m_LShr(m_SExt(m_Value(A)), m_ConstantInt(Cst))) && in visitTrunc() 569 match(Src, m_And(m_Value(A), m_ConstantInt(Cst)))) { in visitTrunc() 942 match(SrcI, m_OneUse(m_And(m_Trunc(m_Value(X)), m_Constant(C)))) && in visitZExt() 948 if (SrcI && match(SrcI, m_OneUse(m_Xor(m_Value(And), m_Constant(C)))) && in visitZExt() 949 match(And, m_OneUse(m_And(m_Trunc(m_Value(X)), m_Specific(C)))) && in visitZExt() 958 match(SrcI, m_Not(m_Value(X))) && (!X->hasOneUse() || !isa<CmpInst>(X))) { in visitZExt() 1201 if (match(Src, m_AShr(m_Shl(m_Trunc(m_Value(A)), m_ConstantInt(BA)), in visitSExt()
|
D | InstructionCombining.cpp | 1579 m_AShr(m_Value(V), m_ConstantInt(C)))) { in visitGetElementPtrInst() 1583 m_SDiv(m_Value(V), m_ConstantInt(C)))) { in visitGetElementPtrInst() 1593 if (match(V, m_Neg(m_PtrToInt(m_Value())))) { in visitGetElementPtrInst() 1602 if (match(V, m_Sub(m_PtrToInt(m_Value(Y)), in visitGetElementPtrInst() 2087 if (match(&BI, m_Br(m_Not(m_Value(X)), TrueDest, FalseDest)) && in visitBranchInst() 2106 if (match(&BI, m_Br(m_FCmp(FPred, m_Value(X), m_Value(Y)), in visitBranchInst() 2122 if (match(&BI, m_Br(m_ICmp(IPred, m_Value(X), m_Value(Y)), in visitBranchInst()
|
/external/lzma/CS/7zip/Compress/LzmaAlone/Properties/ |
D | Settings.cs | 15 private static Settings m_Value; field in LzmaAlone.Properties.Settings 23 if ((Settings.m_Value == null)) 26 if ((Settings.m_Value == null)) 30 Settings.m_Value = new Settings(); 38 return Settings.m_Value;
|
/external/llvm/lib/Analysis/ |
D | InstructionSimplify.cpp | 554 if (match(Op1, m_Sub(m_Value(Y), m_Specific(Op0))) || in SimplifyAddInst() 555 match(Op0, m_Sub(m_Value(Y), m_Specific(Op1)))) in SimplifyAddInst() 690 if (MaxRecurse && match(Op0, m_Add(m_Value(X), m_Value(Y)))) { // (X + Y) - Z in SimplifySubInst() 712 if (MaxRecurse && match(Op1, m_Add(m_Value(Y), m_Value(Z)))) { // X - (Y + Z) in SimplifySubInst() 734 if (MaxRecurse && match(Op1, m_Sub(m_Value(X), m_Value(Y)))) // Z - (X - Y) in SimplifySubInst() 745 if (MaxRecurse && match(Op0, m_Trunc(m_Value(X))) && in SimplifySubInst() 746 match(Op1, m_Trunc(m_Value(Y)))) in SimplifySubInst() 756 if (match(Op0, m_PtrToInt(m_Value(X))) && in SimplifySubInst() 757 match(Op1, m_PtrToInt(m_Value(Y)))) in SimplifySubInst() 852 if (match(Op1, m_FSub(m_NegZero(), m_Value(X)))) in SimplifyFSubInst() [all …]
|
D | ValueTracking.cpp | 774 if (match(Arg, m_c_ICmp(Pred, m_V, m_Value(A))) && in computeKnownBitsFromAssume() 782 m_c_ICmp(Pred, m_c_And(m_V, m_Value(B)), m_Value(A))) && in computeKnownBitsFromAssume() 794 } else if (match(Arg, m_c_ICmp(Pred, m_Not(m_c_And(m_V, m_Value(B))), in computeKnownBitsFromAssume() 795 m_Value(A))) && in computeKnownBitsFromAssume() 808 m_c_ICmp(Pred, m_c_Or(m_V, m_Value(B)), m_Value(A))) && in computeKnownBitsFromAssume() 820 } else if (match(Arg, m_c_ICmp(Pred, m_Not(m_c_Or(m_V, m_Value(B))), in computeKnownBitsFromAssume() 821 m_Value(A))) && in computeKnownBitsFromAssume() 834 m_c_ICmp(Pred, m_c_Xor(m_V, m_Value(B)), m_Value(A))) && in computeKnownBitsFromAssume() 849 } else if (match(Arg, m_c_ICmp(Pred, m_Not(m_c_Xor(m_V, m_Value(B))), in computeKnownBitsFromAssume() 850 m_Value(A))) && in computeKnownBitsFromAssume() [all …]
|
D | VectorUtils.cpp | 405 if (match(V, m_Add(m_Value(Val), m_Constant(Con)))) in findScalarElement()
|
/external/llvm/lib/Transforms/Utils/ |
D | LoopUtils.cpp | 394 if (m_UMin(m_Value(CmpLeft), m_Value(CmpRight)).match(Select)) in isMinMaxSelectCmpPattern() 396 else if (m_UMax(m_Value(CmpLeft), m_Value(CmpRight)).match(Select)) in isMinMaxSelectCmpPattern() 398 else if (m_SMax(m_Value(CmpLeft), m_Value(CmpRight)).match(Select)) in isMinMaxSelectCmpPattern() 400 else if (m_SMin(m_Value(CmpLeft), m_Value(CmpRight)).match(Select)) in isMinMaxSelectCmpPattern() 402 else if (m_OrdFMin(m_Value(CmpLeft), m_Value(CmpRight)).match(Select)) in isMinMaxSelectCmpPattern() 404 else if (m_OrdFMax(m_Value(CmpLeft), m_Value(CmpRight)).match(Select)) in isMinMaxSelectCmpPattern() 406 else if (m_UnordFMin(m_Value(CmpLeft), m_Value(CmpRight)).match(Select)) in isMinMaxSelectCmpPattern() 408 else if (m_UnordFMax(m_Value(CmpLeft), m_Value(CmpRight)).match(Select)) in isMinMaxSelectCmpPattern()
|
/external/llvm/lib/Target/Hexagon/ |
D | HexagonGenExtract.cpp | 94 bool Match = match(In, m_And(m_Shl(m_LShr(m_Value(BF), m_ConstantInt(CSR)), in INITIALIZE_PASS_DEPENDENCY() 101 Match = match(In, m_And(m_Shl(m_AShr(m_Value(BF), m_ConstantInt(CSR)), in INITIALIZE_PASS_DEPENDENCY() 109 Match = match(In, m_And(m_Shl(m_Value(BF), m_ConstantInt(CSL)), in INITIALIZE_PASS_DEPENDENCY() 118 Match = match(In, m_And(m_LShr(m_Value(BF), m_ConstantInt(CSR)), in INITIALIZE_PASS_DEPENDENCY() 125 Match = match(In, m_And(m_AShr(m_Value(BF), m_ConstantInt(CSR)), in INITIALIZE_PASS_DEPENDENCY() 132 Match = match(In, m_Shl(m_LShr(m_Value(BF), m_ConstantInt(CSR)), in INITIALIZE_PASS_DEPENDENCY() 139 Match = match(In, m_Shl(m_AShr(m_Value(BF), m_ConstantInt(CSR)), in INITIALIZE_PASS_DEPENDENCY()
|
/external/llvm/lib/Transforms/Scalar/ |
D | StraightLineStrengthReduce.cpp | 397 if (match(RHS, m_Mul(m_Value(S), m_ConstantInt(Idx)))) { in allocateCandidatesAndFindBasisForAdd() 400 } else if (match(RHS, m_Shl(m_Value(S), m_ConstantInt(Idx)))) { in allocateCandidatesAndFindBasisForAdd() 415 return (match(A, m_Add(m_Value(B), m_ConstantInt(C))) || in matchesAdd() 416 match(A, m_Add(m_ConstantInt(C), m_Value(B)))); in matchesAdd() 421 return (match(A, m_Or(m_Value(B), m_ConstantInt(C))) || in matchesOr() 422 match(A, m_Or(m_ConstantInt(C), m_Value(B)))); in matchesOr() 497 if (match(ArrayIdx, m_NSWMul(m_Value(LHS), m_ConstantInt(RHS)))) { in factorArrayIndex() 501 } else if (match(ArrayIdx, m_NSWShl(m_Value(LHS), m_ConstantInt(RHS)))) { in factorArrayIndex() 541 if (match(ArrayIdx, m_SExt(m_Value(TruncatedArrayIdx)))) in allocateCandidatesAndFindBasisForGEP()
|
D | SeparateConstOffsetFromGEP.cpp | 1123 if (match(I, m_Add(m_SExt(m_Value(LHS)), m_SExt(m_Value(RHS)))) || in reuniteExts() 1124 match(I, m_Sub(m_SExt(m_Value(LHS)), m_SExt(m_Value(RHS))))) { in reuniteExts() 1139 if (match(I, m_NSWAdd(m_Value(LHS), m_Value(RHS))) || in reuniteExts() 1140 match(I, m_NSWSub(m_Value(LHS), m_Value(RHS)))) { in reuniteExts()
|
D | NaryReassociate.cpp | 532 return match(V, m_Add(m_Value(Op1), m_Value(Op2))); in matchTernaryOp() 534 return match(V, m_Mul(m_Value(Op1), m_Value(Op2))); in matchTernaryOp()
|
D | GVN.cpp | 2222 if ((isKnownTrue && match(LHS, m_And(m_Value(A), m_Value(B)))) || in propagateEquality() 2223 (isKnownFalse && match(LHS, m_Or(m_Value(A), m_Value(B))))) { in propagateEquality()
|
/external/apache-xml/src/main/java/org/apache/xml/serializer/ |
D | ToHTMLStream.java | 2139 Object ret = node.m_Value; in put() 2141 node.m_Value = value; in put() 2182 return node.m_Value; in get() 2224 return node.m_Value; in get() 2242 m_Value = null; in Node() 2249 Object m_Value; field in ToHTMLStream.Trie.Node 2307 return node.m_Value; in get2() 2337 return node.m_Value; in get2()
|
/external/pdfium/core/src/fxcrt/ |
D | fx_xml_parser.cpp | 631 value = item.m_Value; in GetAttrByIndex() 777 return &item.m_Value; in Lookup() 789 item.m_Value = value; in SetAt() 802 pItem->m_Value = value; in SetAt()
|
/external/llvm/include/llvm/IR/ |
D | PatternMatch.h | 64 inline class_match<Value> m_Value() { return class_match<Value>(); } in m_Value() function 296 inline bind_ty<Value> m_Value(Value *&V) { return V; } in m_Value() function 1125 if (!m_ICmp(Pred, m_Value(ICmpLHS), m_Value(ICmpRHS)).match(V)) in match() 1129 auto AddExpr = m_Add(m_Value(AddLHS), m_Value(AddRHS)); in match() 1297 auto LHS = m_AShr(m_Value(OpL), m_SpecificInt(ShiftWidth)); 1298 auto RHS = m_LShr(m_Neg(m_Value(OpR)), m_SpecificInt(ShiftWidth));
|
/external/pdfium/core/include/fxcrt/ |
D | fx_xml.h | 16 CFX_WideString m_Value; variable
|
/external/llvm/lib/CodeGen/ |
D | CodeGenPrepare.cpp | 811 m_UAddWithOverflow(m_Value(A), m_Value(B), m_Instruction(AddI)))) in CombineUAddWithOverflow() 2641 match(ScaleReg, m_Add(m_Value(AddLHS), m_ConstantInt(CI)))) { in matchScaledValue() 5413 if (match(LogicOp, m_And(m_OneUse(m_Value(Cond1)), in splitBranchCondition() 5414 m_OneUse(m_Value(Cond2))))) in splitBranchCondition() 5416 else if (match(LogicOp, m_Or(m_OneUse(m_Value(Cond1)), in splitBranchCondition() 5417 m_OneUse(m_Value(Cond2))))) in splitBranchCondition()
|