/external/llvm-project/llvm/utils/PerfectShuffle/ |
D | PerfectShuffle.cpp | 126 unsigned short getTransformedMask(unsigned short LHSMask, unsigned RHSMask) { in getTransformedMask() 133 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/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-10.0/llvm/lib/Transforms/InstCombine/ |
D | InstCombineAndOrXor.cpp | 575 unsigned LHSMask, unsigned RHSMask, in foldLogOpOfMaskedICmpsAsymmetric() argument 585 LHSMask = conjugateICmpMask(LHSMask); in foldLogOpOfMaskedICmpsAsymmetric() 588 if ((LHSMask & Mask_NotAllZeros) && (RHSMask & BMask_Mixed)) { in foldLogOpOfMaskedICmpsAsymmetric() 594 } else if ((LHSMask & BMask_Mixed) && (RHSMask & Mask_NotAllZeros)) { in foldLogOpOfMaskedICmpsAsymmetric() 616 unsigned LHSMask = MaskPair->first; in foldLogOpOfMaskedICmps() local 618 unsigned Mask = LHSMask & RHSMask; in foldLogOpOfMaskedICmps() 623 LHS, RHS, IsAnd, A, B, C, D, E, PredL, PredR, LHSMask, RHSMask, in foldLogOpOfMaskedICmps()
|
D | InstCombineVectorOps.cpp | 2152 SmallVector<int, 16> LHSMask; in visitShuffleVectorInst() local 2155 LHSMask = LHSShuffle->getShuffleMask(); in visitShuffleVectorInst() 2176 eltMask = LHSMask[Mask[i]]; in visitShuffleVectorInst() 2226 if (isSplat || newMask == LHSMask || newMask == RHSMask || newMask == Mask) { in visitShuffleVectorInst()
|
/external/llvm-project/llvm/lib/Transforms/InstCombine/ |
D | InstCombineAndOrXor.cpp | 521 unsigned LHSMask, unsigned RHSMask, InstCombiner::BuilderTy &Builder) { in foldLogOpOfMaskedICmpsAsymmetric() argument 530 LHSMask = conjugateICmpMask(LHSMask); in foldLogOpOfMaskedICmpsAsymmetric() 533 if ((LHSMask & Mask_NotAllZeros) && (RHSMask & BMask_Mixed)) { in foldLogOpOfMaskedICmpsAsymmetric() 539 } else if ((LHSMask & BMask_Mixed) && (RHSMask & Mask_NotAllZeros)) { in foldLogOpOfMaskedICmpsAsymmetric() 561 unsigned LHSMask = MaskPair->first; in foldLogOpOfMaskedICmps() local 563 unsigned Mask = LHSMask & RHSMask; in foldLogOpOfMaskedICmps() 568 LHS, RHS, IsAnd, A, B, C, D, E, PredL, PredR, LHSMask, RHSMask, in foldLogOpOfMaskedICmps()
|
D | InstCombineVectorOps.cpp | 2563 ArrayRef<int> LHSMask; in visitShuffleVectorInst() local 2566 LHSMask = LHSShuffle->getShuffleMask(); in visitShuffleVectorInst() 2587 eltMask = LHSMask[Mask[i]]; in visitShuffleVectorInst() 2637 if (isSplat || newMask == LHSMask || newMask == RHSMask || newMask == Mask) { in visitShuffleVectorInst()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/ |
D | SIISelLowering.cpp | 8395 uint32_t LHSMask = getPermuteMask(DAG, LHS); in performAndCombine() local 8397 if (LHSMask != ~0u && RHSMask != ~0u) { in performAndCombine() 8400 if (LHSMask > RHSMask) { in performAndCombine() 8401 std::swap(LHSMask, RHSMask); in performAndCombine() 8407 uint32_t LHSUsedLanes = ~(LHSMask & 0x0c0c0c0c) & 0x0c0c0c0c; in performAndCombine() 8420 uint32_t Mask = LHSMask & RHSMask; in performAndCombine() 8423 if ((LHSMask & ByteSel) == 0x0c || (RHSMask & ByteSel) == 0x0c) in performAndCombine() 8492 uint32_t LHSMask = getPermuteMask(DAG, LHS); in performOrCombine() local 8494 if (LHSMask != ~0u && RHSMask != ~0u) { in performOrCombine() 8497 if (LHSMask > RHSMask) { in performOrCombine() [all …]
|
/external/llvm-project/llvm/lib/Target/AMDGPU/ |
D | SIISelLowering.cpp | 9109 uint32_t LHSMask = getPermuteMask(DAG, LHS); in performAndCombine() local 9111 if (LHSMask != ~0u && RHSMask != ~0u) { in performAndCombine() 9114 if (LHSMask > RHSMask) { in performAndCombine() 9115 std::swap(LHSMask, RHSMask); in performAndCombine() 9121 uint32_t LHSUsedLanes = ~(LHSMask & 0x0c0c0c0c) & 0x0c0c0c0c; in performAndCombine() 9134 uint32_t Mask = LHSMask & RHSMask; in performAndCombine() 9137 if ((LHSMask & ByteSel) == 0x0c || (RHSMask & ByteSel) == 0x0c) in performAndCombine() 9206 uint32_t LHSMask = getPermuteMask(DAG, LHS); in performOrCombine() local 9208 if (LHSMask != ~0u && RHSMask != ~0u) { in performOrCombine() 9211 if (LHSMask > RHSMask) { in performOrCombine() [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-10.0/llvm/lib/Target/RISCV/ |
D | RISCVISelLowering.cpp | 990 APInt LHSMask = APInt::getLowBitsSet(LHS.getValueSizeInBits(), 32); in PerformDAGCombine() local 992 if ((SimplifyDemandedBits(N->getOperand(0), LHSMask, DCI)) || in PerformDAGCombine()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/SelectionDAG/ |
D | DAGCombiner.cpp | 5740 const APInt &LHSMask = N0O1C->getAPIntValue(); in visitORLike() local 5743 if (DAG.MaskedValueIsZero(N0.getOperand(0), RHSMask&~LHSMask) && in visitORLike() 5744 DAG.MaskedValueIsZero(N1.getOperand(0), LHSMask&~RHSMask)) { in visitORLike() 5748 DAG.getConstant(LHSMask | RHSMask, DL, VT)); in visitORLike() 6275 SDValue LHSMask; // AND value if any. in MatchRotate() local 6276 matchRotateHalf(DAG, LHS, LHSShift, LHSMask); in MatchRotate() 6302 extractShiftForRotate(DAG, RHSShift, LHS, LHSMask, DL)) in MatchRotate() 6321 std::swap(LHSMask, RHSMask); in MatchRotate() 6341 if (LHSMask.getNode() || RHSMask.getNode()) { in MatchRotate() 6345 if (LHSMask.getNode()) { in MatchRotate() [all …]
|
/external/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
D | DAGCombiner.cpp | 6151 const APInt &LHSMask = N0O1C->getAPIntValue(); in visitORLike() local 6154 if (DAG.MaskedValueIsZero(N0.getOperand(0), RHSMask&~LHSMask) && in visitORLike() 6155 DAG.MaskedValueIsZero(N1.getOperand(0), LHSMask&~RHSMask)) { in visitORLike() 6159 DAG.getConstant(LHSMask | RHSMask, DL, VT)); in visitORLike() 6765 SDValue LHSMask; // AND value if any. in MatchRotate() local 6766 matchRotateHalf(DAG, LHS, LHSShift, LHSMask); in MatchRotate() 6792 extractShiftForRotate(DAG, RHSShift, LHS, LHSMask, DL)) in MatchRotate() 6812 std::swap(LHSMask, RHSMask); in MatchRotate() 6840 if (LHSMask.getNode() || RHSMask.getNode()) { in MatchRotate() 6844 if (LHSMask.getNode()) { in MatchRotate() [all …]
|
/external/llvm-project/llvm/lib/Target/RISCV/ |
D | RISCVISelLowering.cpp | 1501 APInt LHSMask = APInt::getLowBitsSet(LHS.getValueSizeInBits(), 32); in PerformDAGCombine() local 1503 if (SimplifyDemandedBits(N->getOperand(0), LHSMask, DCI) || in PerformDAGCombine()
|
/external/llvm-project/llvm/lib/Target/X86/ |
D | X86ISelLowering.cpp | 15648 int LHSMask[4] = {-1, -1, -1, -1}; in lowerShuffleAsLanePermuteAndSHUFP() local 15659 auto &LaneMask = (i & 1) ? RHSMask : LHSMask; in lowerShuffleAsLanePermuteAndSHUFP() 15664 SDValue LHS = DAG.getVectorShuffle(VT, DL, V1, V2, LHSMask); in lowerShuffleAsLanePermuteAndSHUFP() 40662 SmallVector<int, 64> LHSMask, RHSMask, CondMask; in combineSelect() local 40664 getTargetShuffleMask(LHS.getNode(), SimpleVT, true, LHSOps, LHSMask, in combineSelect() 40673 LHSMask[i] = 0x80; in combineSelect() 40676 getConstVector(LHSMask, SimpleVT, DAG, DL, true)); in combineSelect()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/X86/ |
D | X86ISelLowering.cpp | 14899 int LHSMask[4] = {-1, -1, -1, -1}; in lowerShuffleAsLanePermuteAndSHUFP() local 14910 auto &LaneMask = (i & 1) ? RHSMask : LHSMask; in lowerShuffleAsLanePermuteAndSHUFP() 14915 SDValue LHS = DAG.getVectorShuffle(VT, DL, V1, V2, LHSMask); in lowerShuffleAsLanePermuteAndSHUFP()
|