/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/ |
D | InstCombineVectorOps.cpp | 533 std::vector<int> LHSMask = getShuffleMask(LHSSVI); in visitShuffleVectorInst() local 535 if (LHSMask.size() == Mask.size()) { in visitShuffleVectorInst() 544 MaskElt = LHSMask[Mask[i]]; in visitShuffleVectorInst() 556 if (isSplat || NewMask == LHSMask || NewMask == Mask) { in visitShuffleVectorInst()
|
/external/swiftshader/third_party/LLVM/utils/PerfectShuffle/ |
D | PerfectShuffle.cpp | 127 unsigned short getTransformedMask(unsigned short LHSMask, unsigned RHSMask) { in getTransformedMask() 134 ResElt = getMaskElt(LHSMask, SrcElt); in getTransformedMask()
|
/external/llvm/utils/PerfectShuffle/ |
D | PerfectShuffle.cpp | 127 unsigned short getTransformedMask(unsigned short LHSMask, unsigned RHSMask) { in getTransformedMask() 134 ResElt = getMaskElt(LHSMask, SrcElt); in getTransformedMask()
|
/external/swiftshader/third_party/llvm-7.0/llvm/utils/PerfectShuffle/ |
D | PerfectShuffle.cpp | 127 unsigned short getTransformedMask(unsigned short LHSMask, unsigned RHSMask) { in getTransformedMask() 134 ResElt = getMaskElt(LHSMask, SrcElt); in getTransformedMask()
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineVectorOps.cpp | 1178 SmallVector<int, 16> LHSMask; in visitShuffleVectorInst() local 1181 LHSMask = LHSShuffle->getShuffleMask(); in visitShuffleVectorInst() 1202 eltMask = LHSMask[Mask[i]]; in visitShuffleVectorInst() 1252 if (isSplat || newMask == LHSMask || newMask == RHSMask || newMask == Mask) { in visitShuffleVectorInst()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/ |
D | InstCombineAndOrXor.cpp | 578 unsigned LHSMask, unsigned RHSMask, in foldLogOpOfMaskedICmpsAsymmetric() argument 588 LHSMask = conjugateICmpMask(LHSMask); in foldLogOpOfMaskedICmpsAsymmetric() 591 if ((LHSMask & Mask_NotAllZeros) && (RHSMask & BMask_Mixed)) { in foldLogOpOfMaskedICmpsAsymmetric() 597 } else if ((LHSMask & BMask_Mixed) && (RHSMask & Mask_NotAllZeros)) { in foldLogOpOfMaskedICmpsAsymmetric() 619 unsigned LHSMask = MaskPair->first; in foldLogOpOfMaskedICmps() local 621 unsigned Mask = LHSMask & RHSMask; in foldLogOpOfMaskedICmps() 626 LHS, RHS, IsAnd, A, B, C, D, E, PredL, PredR, LHSMask, RHSMask, in foldLogOpOfMaskedICmps()
|
D | InstCombineVectorOps.cpp | 1612 SmallVector<int, 16> LHSMask; in visitShuffleVectorInst() local 1615 LHSMask = LHSShuffle->getShuffleMask(); in visitShuffleVectorInst() 1636 eltMask = LHSMask[Mask[i]]; in visitShuffleVectorInst() 1686 if (isSplat || newMask == LHSMask || newMask == RHSMask || newMask == Mask) { in visitShuffleVectorInst()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AMDGPU/ |
D | SIISelLowering.cpp | 6491 uint32_t LHSMask = getPermuteMask(DAG, LHS); in performAndCombine() local 6493 if (LHSMask != ~0u && RHSMask != ~0u) { in performAndCombine() 6496 if (LHSMask > RHSMask) { in performAndCombine() 6497 std::swap(LHSMask, RHSMask); in performAndCombine() 6503 uint32_t LHSUsedLanes = ~(LHSMask & 0x0c0c0c0c) & 0x0c0c0c0c; in performAndCombine() 6516 uint32_t Mask = LHSMask & RHSMask; in performAndCombine() 6519 if ((LHSMask & ByteSel) == 0x0c || (RHSMask & ByteSel) == 0x0c) in performAndCombine() 6588 uint32_t LHSMask = getPermuteMask(DAG, LHS); in performOrCombine() local 6590 if (LHSMask != ~0u && RHSMask != ~0u) { in performOrCombine() 6593 if (LHSMask > RHSMask) { in performOrCombine() [all …]
|
/external/swiftshader/third_party/LLVM/lib/CodeGen/SelectionDAG/ |
D | DAGCombiner.cpp | 2843 const APInt &LHSMask = in visitOR() local 2848 if (DAG.MaskedValueIsZero(N0.getOperand(0), RHSMask&~LHSMask) && in visitOR() 2849 DAG.MaskedValueIsZero(N1.getOperand(0), LHSMask&~RHSMask)) { in visitOR() 2853 DAG.getConstant(LHSMask | RHSMask, VT)); in visitOR() 2903 SDValue LHSMask; // AND value if any. in MatchRotate() local 2904 if (!MatchRotateHalf(LHS, LHSShift, LHSMask)) in MatchRotate() 2922 std::swap(LHSMask , RHSMask ); in MatchRotate() 2946 if (LHSMask.getNode() || RHSMask.getNode()) { in MatchRotate() 2949 if (LHSMask.getNode()) { in MatchRotate() 2951 Mask &= cast<ConstantSDNode>(LHSMask)->getAPIntValue() | RHSBits; in MatchRotate() [all …]
|
/external/llvm/lib/CodeGen/SelectionDAG/ |
D | DAGCombiner.cpp | 3679 const APInt &LHSMask = N0O1C->getAPIntValue(); in visitORLike() local 3682 if (DAG.MaskedValueIsZero(N0.getOperand(0), RHSMask&~LHSMask) && in visitORLike() 3683 DAG.MaskedValueIsZero(N1.getOperand(0), LHSMask&~RHSMask)) { in visitORLike() 3688 DAG.getConstant(LHSMask | RHSMask, DL, VT)); in visitORLike() 4031 SDValue LHSMask; // AND value if any. in MatchRotate() local 4032 if (!MatchRotateHalf(LHS, LHSShift, LHSMask)) in MatchRotate() 4050 std::swap(LHSMask, RHSMask); in MatchRotate() 4071 if (LHSMask.getNode() || RHSMask.getNode()) { in MatchRotate() 4075 if (LHSMask.getNode()) { in MatchRotate() 4078 DAG.getNode(ISD::OR, DL, VT, LHSMask, in MatchRotate() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/SelectionDAG/ |
D | DAGCombiner.cpp | 4970 const APInt &LHSMask = N0O1C->getAPIntValue(); in visitORLike() local 4973 if (DAG.MaskedValueIsZero(N0.getOperand(0), RHSMask&~LHSMask) && in visitORLike() 4974 DAG.MaskedValueIsZero(N1.getOperand(0), LHSMask&~RHSMask)) { in visitORLike() 4978 DAG.getConstant(LHSMask | RHSMask, DL, VT)); in visitORLike() 5463 SDValue LHSMask; // AND value if any. in MatchRotate() local 5464 matchRotateHalf(DAG, LHS, LHSShift, LHSMask); in MatchRotate() 5490 extractShiftForRotate(DAG, RHSShift, LHS, LHSMask, DL)) in MatchRotate() 5509 std::swap(LHSMask, RHSMask); in MatchRotate() 5529 if (LHSMask.getNode() || RHSMask.getNode()) { in MatchRotate() 5533 if (LHSMask.getNode()) { in MatchRotate() [all …]
|