/external/llvm-project/llvm/unittests/IR/ |
D | PatternMatch.cpp | 967 match(VI1, m_InsertElt(m_Undef(), m_ConstantInt(), m_ConstantInt()))); in TEST_F() 969 match(VI1, m_InsertElt(m_Undef(), m_ConstantInt(), m_Zero()))); in TEST_F() 971 match(VI1, m_InsertElt(m_Undef(), m_SpecificInt(1), m_Zero()))); in TEST_F() 995 EXPECT_TRUE(match(SI1, m_Shuffle(m_Value(), m_Undef(), m_ZeroMask()))); in TEST_F() 1004 m_Shuffle(m_InsertElt(m_Undef(), m_SpecificInt(1), m_Zero()), in TEST_F() 1005 m_Undef(), m_ZeroMask()))); in TEST_F() 1007 SI3, m_Shuffle(m_InsertElt(m_Undef(), m_Value(), m_Zero()), in TEST_F() 1008 m_Undef(), m_ZeroMask()))); in TEST_F() 1010 SI4, m_Shuffle(m_InsertElt(m_Undef(), m_Value(), m_Zero()), in TEST_F() 1011 m_Undef(), m_ZeroMask()))); in TEST_F() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/ARM/ |
D | MVETailPredication.cpp | 228 if (!match(Shuffle, m_ShuffleVector(m_Instruction(Insert), m_Undef(), in isTailPredicate() 234 if (!match(Insert, m_InsertElement(m_Undef(), m_Instruction(BECount), in isTailPredicate() 264 if (!match(BroadcastSplat, m_ShuffleVector(m_Instruction(Insert), m_Undef(), in isTailPredicate() 270 if (!match(Insert, m_InsertElement(m_Undef(), m_Instruction(IV), m_Zero()))) in isTailPredicate()
|
/external/llvm/lib/Analysis/ |
D | InstructionSimplify.cpp | 540 if (match(Op1, m_Undef())) in SimplifyAddInst() 671 if (match(Op0, m_Undef()) || match(Op1, m_Undef())) in SimplifySubInst() 896 if (match(Op1, m_Undef())) in SimplifyMulInst() 991 if (match(Op1, m_Undef())) in SimplifyDiv() 999 if (match(Op0, m_Undef())) in SimplifyDiv() 1102 if (match(Op0, m_Undef())) in SimplifyFDivInst() 1106 if (match(Op1, m_Undef())) in SimplifyFDivInst() 1151 if (match(Op1, m_Undef())) in SimplifyRem() 1155 if (match(Op0, m_Undef())) in SimplifyRem() 1239 if (match(Op0, m_Undef())) in SimplifyFRemInst() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/ |
D | InstructionSimplify.cpp | 623 if (match(Op1, m_Undef())) in SimplifyAddInst() 744 if (match(Op0, m_Undef()) || match(Op1, m_Undef())) in SimplifySubInst() 879 if (match(Op1, m_CombineOr(m_Undef(), m_Zero()))) in SimplifyMulInst() 937 if (match(Op1, m_Undef())) in simplifyDivRem() 960 if (match(Op0, m_Undef())) in simplifyDivRem() 1298 if (match(Op0, m_Undef())) in SimplifyRightShift() 1320 if (match(Op0, m_Undef())) in SimplifyShlInst() 1950 if (match(Op1, m_Undef())) in SimplifyAndInst() 2108 if (match(Op1, m_Undef()) || match(Op1, m_AllOnes())) in SimplifyOrInst() 2250 if (match(Op1, m_Undef())) in SimplifyXorInst() [all …]
|
/external/llvm-project/llvm/lib/Transforms/InstCombine/ |
D | InstCombineVectorOps.cpp | 1146 if (!match(Op0, m_InsertElt(m_Undef(), m_Specific(X), m_ZeroInt()))) in foldInsEltIntoSplat() 1355 if (match(VecOp, m_Undef()) && in visitInsertElementInst() 1855 if (!match(Op0, m_OneUse(m_InsertElt(m_Undef(), m_Value(X), in canonicalizeInsertSplat() 1857 !match(Op1, m_Undef()) || match(Mask, m_ZeroMask()) || IndexC == 0) in canonicalizeInsertSplat() 2016 !match(Shuf.getOperand(1), m_Undef()) || !DestType->isIntOrIntVectorTy()) in foldTruncShuffle() 2055 if (!match(Shuf.getOperand(1), m_Undef()) || !Shuf.isIdentityWithExtract()) in narrowVectorSelect() 2070 if (!match(Cond, m_OneUse(m_Shuffle(m_Value(NarrowCond), m_Undef()))) || in narrowVectorSelect() 2303 if (match(LHS, m_BitCast(m_Value(X))) && match(RHS, m_Undef()) && in visitShuffleVectorInst()
|
D | InstCombineNegator.cpp | 135 if (match(V, m_Undef())) in visitImpl()
|
D | InstructionCombining.cpp | 1569 if (match(LHS, m_Shuffle(m_Value(V1), m_Undef(), m_Mask(Mask))) && in foldVectorBinop() 1570 match(RHS, m_Shuffle(m_Value(V2), m_Undef(), m_SpecificMask(Mask))) && in foldVectorBinop() 1611 m_c_BinOp(m_OneUse(m_Shuffle(m_Value(V1), m_Undef(), m_Mask(Mask))), in foldVectorBinop() 1693 m_OneUse(m_Shuffle(m_Value(X), m_Undef(), m_Mask(MaskC)))) || in foldVectorBinop() 3448 if (match(Op0, m_Undef())) { in visitFreeze()
|
D | InstCombineCalls.cpp | 913 if (match(Op1, m_ZeroInt()) || match(Op1, m_Undef())) in visitCallInst() 918 if (match(Op0, m_ZeroInt()) || match(Op0, m_Undef())) in visitCallInst()
|
D | InstCombineCompares.cpp | 2872 if (match(BCSrcOp, m_Shuffle(m_Value(Vec), m_Undef(), m_Mask(Mask)))) { in foldICmpBitCast() 5509 if (!match(LHS, m_Shuffle(m_Value(V1), m_Undef(), m_Mask(M)))) in foldVectorCmp() 5516 if (match(RHS, m_Shuffle(m_Value(V2), m_Undef(), m_SpecificMask(M))) && in foldVectorCmp()
|
/external/llvm-project/llvm/lib/Transforms/Vectorize/ |
D | VectorCombine.cpp | 98 if (!Ty || !match(&I, m_InsertElt(m_Undef(), m_Value(Scalar), m_ZeroInt())) || in vectorizeLoadInsert() 453 m_OneUse(m_Shuffle(m_Value(V), m_Undef(), m_Mask(Mask)))))) in foldBitcastShuf()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/ |
D | InstCombineVectorOps.cpp | 830 if (!match(Op0, m_InsertElement(m_Undef(), m_Specific(X), m_ZeroInt()))) in foldInsEltIntoSplat() 1519 if (!match(Op0, m_OneUse(m_InsertElement(m_Undef(), m_Value(X), in canonicalizeInsertSplat() 1521 !match(Op1, m_Undef()) || match(Mask, m_ZeroInt()) || IndexC == 0) in canonicalizeInsertSplat() 1676 if (!match(Shuf.getOperand(1), m_Undef()) || !Shuf.isIdentityWithExtract()) in narrowVectorSelect() 1690 if (!match(Cond, m_OneUse(m_ShuffleVector(m_Value(NarrowCond), m_Undef(), in narrowVectorSelect()
|
D | InstructionCombining.cpp | 1483 if (match(LHS, m_ShuffleVector(m_Value(V1), m_Undef(), m_Constant(Mask))) && in foldVectorBinop() 1484 match(RHS, m_ShuffleVector(m_Value(V2), m_Undef(), m_Specific(Mask))) && in foldVectorBinop() 1522 m_OneUse(m_ShuffleVector(m_Value(V1), m_Undef(), m_Constant(Mask))), in foldVectorBinop()
|
D | InstCombineCompares.cpp | 2797 m_ShuffleVector(m_Value(Vec), m_Undef(), m_Constant(Mask)))) { in foldICmpBitCast() 5411 if (match(LHS, m_ShuffleVector(m_Value(V1), m_Undef(), m_Constant(M))) && in foldVectorCmp() 5412 match(RHS, m_ShuffleVector(m_Value(V2), m_Undef(), m_Specific(M))) && in foldVectorCmp()
|
D | InstCombineCalls.cpp | 1984 if (match(Op1, m_ZeroInt()) || match(Op1, m_Undef())) in visitCallInst() 1989 if (match(Op0, m_ZeroInt()) || match(Op0, m_Undef())) in visitCallInst()
|
/external/llvm-project/llvm/lib/IR/ |
D | Constants.cpp | 739 if (match(C, m_Undef())) { in replaceUndefsWith() 755 NewC[i] = EltC && match(EltC, m_Undef()) ? Replacement : EltC; in replaceUndefsWith() 762 if (match(C, m_Undef())) in mergeUndefsWith() 766 if (match(Other, m_Undef())) in mergeUndefsWith() 785 if (!match(NewC[I], m_Undef()) && match(OtherEltC, m_Undef())) { in mergeUndefsWith()
|
D | ConstantFold.cpp | 1156 if (match(C2, m_CombineOr(m_Undef(), m_Zero()))) in ConstantFoldBinaryInstruction() 1167 if (match(C2, m_CombineOr(m_Undef(), m_Zero()))) in ConstantFoldBinaryInstruction()
|
/external/llvm/include/llvm/IR/ |
D | PatternMatch.h | 80 inline class_match<UndefValue> m_Undef() { return class_match<UndefValue>(); } in m_Undef() function
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/IR/ |
D | Constants.cpp | 630 if (match(C, m_Undef())) { in replaceUndefsWith() 645 NewC[i] = EltC && match(EltC, m_Undef()) ? Replacement : EltC; in replaceUndefsWith()
|
D | ConstantFold.cpp | 1061 if (match(C2, m_Undef())) in ConstantFoldBinaryInstruction()
|
/external/llvm/lib/Transforms/Utils/ |
D | Local.cpp | 1383 if (match(II->getArgOperand(0), m_CombineOr(m_Zero(), m_Undef()))) { in markAliveBlocks()
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/ |
D | PatternMatch.h | 87 inline class_match<UndefValue> m_Undef() { return class_match<UndefValue>(); } in m_Undef() function
|
/external/llvm/lib/IR/ |
D | ConstantFold.cpp | 963 if (match(C2, m_Undef())) in ConstantFoldBinaryInstruction()
|
/external/llvm-project/llvm/lib/Transforms/Utils/ |
D | Local.cpp | 2188 if (match(CI->getArgOperand(0), m_CombineOr(m_Zero(), m_Undef()))) { in markAliveBlocks()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/ |
D | Local.cpp | 2054 if (match(CI->getArgOperand(0), m_CombineOr(m_Zero(), m_Undef()))) { in markAliveBlocks()
|
/external/llvm-project/llvm/include/llvm/IR/ |
D | PatternMatch.h | 97 inline class_match<UndefValue> m_Undef() { return class_match<UndefValue>(); } in m_Undef() function
|