Home
last modified time | relevance | path

Searched refs:MaskVal (Results 1 – 25 of 25) sorted by relevance

/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/
DInstCombineSimplifyDemanded.cpp935 unsigned MaskVal = Shuffle->getMaskValue(i); in SimplifyDemandedVectorElts() local
936 if (MaskVal != -1u) { in SimplifyDemandedVectorElts()
937 assert(MaskVal < LHSVWidth * 2 && in SimplifyDemandedVectorElts()
939 if (MaskVal < LHSVWidth) in SimplifyDemandedVectorElts()
940 LeftDemanded.setBit(MaskVal); in SimplifyDemandedVectorElts()
942 RightDemanded.setBit(MaskVal - LHSVWidth); in SimplifyDemandedVectorElts()
959 unsigned MaskVal = Shuffle->getMaskValue(i); in SimplifyDemandedVectorElts() local
960 if (MaskVal == -1u) { in SimplifyDemandedVectorElts()
965 } else if (MaskVal < LHSVWidth) { in SimplifyDemandedVectorElts()
966 if (UndefElts4[MaskVal]) { in SimplifyDemandedVectorElts()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/
DInstCombineSimplifyDemanded.cpp1159 unsigned MaskVal = Shuffle->getMaskValue(i); in SimplifyDemandedVectorElts() local
1160 if (MaskVal != -1u) { in SimplifyDemandedVectorElts()
1161 assert(MaskVal < LHSVWidth * 2 && in SimplifyDemandedVectorElts()
1163 if (MaskVal < LHSVWidth) in SimplifyDemandedVectorElts()
1164 LeftDemanded.setBit(MaskVal); in SimplifyDemandedVectorElts()
1166 RightDemanded.setBit(MaskVal - LHSVWidth); in SimplifyDemandedVectorElts()
1187 unsigned MaskVal = Shuffle->getMaskValue(i); in SimplifyDemandedVectorElts() local
1188 if (MaskVal == -1u) { in SimplifyDemandedVectorElts()
1193 } else if (MaskVal < LHSVWidth) { in SimplifyDemandedVectorElts()
1194 if (LHSUndefElts[MaskVal]) { in SimplifyDemandedVectorElts()
[all …]
DInstCombineAndOrXor.cpp241 unsigned MaskVal = 0; in getMaskedICmpType() local
244 MaskVal |= (IsEq ? (Mask_AllZeros | AMask_Mixed | BMask_Mixed) in getMaskedICmpType()
247 MaskVal |= (IsEq ? (AMask_NotAllOnes | AMask_NotMixed) in getMaskedICmpType()
250 MaskVal |= (IsEq ? (BMask_NotAllOnes | BMask_NotMixed) in getMaskedICmpType()
252 return MaskVal; in getMaskedICmpType()
256 MaskVal |= (IsEq ? (AMask_AllOnes | AMask_Mixed) in getMaskedICmpType()
259 MaskVal |= (IsEq ? (Mask_NotAllZeros | AMask_NotMixed) in getMaskedICmpType()
262 MaskVal |= (IsEq ? AMask_Mixed : AMask_NotMixed); in getMaskedICmpType()
266 MaskVal |= (IsEq ? (BMask_AllOnes | BMask_Mixed) in getMaskedICmpType()
269 MaskVal |= (IsEq ? (Mask_NotAllZeros | BMask_NotMixed) in getMaskedICmpType()
[all …]
/external/llvm/lib/Transforms/InstCombine/
DInstCombineSimplifyDemanded.cpp1028 unsigned MaskVal = Shuffle->getMaskValue(i); in SimplifyDemandedVectorElts() local
1029 if (MaskVal != -1u) { in SimplifyDemandedVectorElts()
1030 assert(MaskVal < LHSVWidth * 2 && in SimplifyDemandedVectorElts()
1032 if (MaskVal < LHSVWidth) in SimplifyDemandedVectorElts()
1033 LeftDemanded.setBit(MaskVal); in SimplifyDemandedVectorElts()
1035 RightDemanded.setBit(MaskVal - LHSVWidth); in SimplifyDemandedVectorElts()
1052 unsigned MaskVal = Shuffle->getMaskValue(i); in SimplifyDemandedVectorElts() local
1053 if (MaskVal == -1u) { in SimplifyDemandedVectorElts()
1058 } else if (MaskVal < LHSVWidth) { in SimplifyDemandedVectorElts()
1059 if (UndefElts4[MaskVal]) { in SimplifyDemandedVectorElts()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/SystemZ/
DSystemZTDC.cpp362 Value *MaskVal = ConstantInt::get(Type::getInt64Ty(Ctx), Mask); in runOnFunction() local
363 Instruction *TDC = IRB.CreateCall(TDCFunc, {V, MaskVal}); in runOnFunction()
DSystemZISelLowering.cpp2128 uint64_t MaskVal; in adjustForTestUnderMask() local
2136 MaskVal = Mask->getZExtValue(); in adjustForTestUnderMask()
2156 MaskVal = -(CmpVal & -CmpVal); in adjustForTestUnderMask()
2159 if (!MaskVal) in adjustForTestUnderMask()
2169 (MaskVal >> ShiftVal != 0) && in adjustForTestUnderMask()
2172 MaskVal >> ShiftVal, in adjustForTestUnderMask()
2176 MaskVal >>= ShiftVal; in adjustForTestUnderMask()
2180 (MaskVal << ShiftVal != 0) && in adjustForTestUnderMask()
2183 MaskVal << ShiftVal, in adjustForTestUnderMask()
2187 MaskVal <<= ShiftVal; in adjustForTestUnderMask()
[all …]
/external/llvm/lib/Target/SystemZ/
DSystemZTDC.cpp362 Value *MaskVal = ConstantInt::get(Type::getInt64Ty(Ctx), Mask); in runOnFunction() local
363 Instruction *TDC = IRB.CreateCall(TDCFunc, {V, MaskVal}); in runOnFunction()
DSystemZISelLowering.cpp1981 uint64_t MaskVal; in adjustForTestUnderMask() local
1989 MaskVal = Mask->getZExtValue(); in adjustForTestUnderMask()
2009 MaskVal = -(CmpVal & -CmpVal); in adjustForTestUnderMask()
2012 if (!MaskVal) in adjustForTestUnderMask()
2023 MaskVal >> ShiftVal, in adjustForTestUnderMask()
2027 MaskVal >>= ShiftVal; in adjustForTestUnderMask()
2032 MaskVal << ShiftVal, in adjustForTestUnderMask()
2036 MaskVal <<= ShiftVal; in adjustForTestUnderMask()
2038 NewCCMask = getTestUnderMaskCond(BitSize, NewC.CCMask, MaskVal, CmpVal, in adjustForTestUnderMask()
2047 if (Mask && Mask->getZExtValue() == MaskVal) in adjustForTestUnderMask()
[all …]
/external/llvm/lib/Target/AMDGPU/
DAMDGPUISelDAGToDAG.cpp1266 uint32_t MaskVal = Mask->getZExtValue(); in SelectS_BFE() local
1268 if (isMask_32(MaskVal)) { in SelectS_BFE()
1269 uint32_t WidthVal = countPopulation(MaskVal); in SelectS_BFE()
1288 uint32_t MaskVal = Mask->getZExtValue() >> ShiftVal; in SelectS_BFE() local
1290 if (isMask_32(MaskVal)) { in SelectS_BFE()
1291 uint32_t WidthVal = countPopulation(MaskVal); in SelectS_BFE()
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/ADT/
DAPIntTest.cpp1662 APInt MaskVal = One.shl(I) - 1; in TEST() local
1663 EXPECT_TRUE(MaskVal.isMask()); in TEST()
1664 EXPECT_TRUE(MaskVal.isMask(I)); in TEST()
1680 APInt MaskVal = One.shl(I) - 1; in TEST() local
1681 EXPECT_TRUE(MaskVal.isShiftedMask()); in TEST()
1684 APInt MaskVal = One.shl(I); in TEST() local
1685 EXPECT_TRUE(MaskVal.isShiftedMask()); in TEST()
1688 APInt MaskVal = APInt::getHighBitsSet(N, I); in TEST() local
1689 EXPECT_TRUE(MaskVal.isShiftedMask()); in TEST()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AMDGPU/
DAMDGPUISelDAGToDAG.cpp1590 uint32_t MaskVal = Mask->getZExtValue(); in SelectS_BFE() local
1592 if (isMask_32(MaskVal)) { in SelectS_BFE()
1593 uint32_t WidthVal = countPopulation(MaskVal); in SelectS_BFE()
1612 uint32_t MaskVal = Mask->getZExtValue() >> ShiftVal; in SelectS_BFE() local
1614 if (isMask_32(MaskVal)) { in SelectS_BFE()
1615 uint32_t WidthVal = countPopulation(MaskVal); in SelectS_BFE()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/NVPTX/
DNVPTXISelDAGToDAG.cpp3406 uint64_t MaskVal = Mask->getZExtValue(); in tryBFE() local
3407 if (!isMask_64(MaskVal)) { in tryBFE()
3415 uint64_t NumBits = countTrailingOnes(MaskVal); in tryBFE()
3472 uint64_t MaskVal = MaskCnst->getZExtValue(); in tryBFE() local
3475 if (isMask_64(MaskVal)) { in tryBFE()
3479 NumBits = countTrailingOnes(MaskVal) - ShiftAmt; in tryBFE()
3480 } else if (isShiftedMask_64(MaskVal)) { in tryBFE()
3481 NumZeros = countTrailingZeros(MaskVal); in tryBFE()
3482 unsigned NumOnes = countTrailingOnes(MaskVal >> NumZeros); in tryBFE()
DNVPTXISelLowering.cpp4174 uint64_t MaskVal = MaskCnst->getZExtValue(); in PerformANDCombine() local
4175 if (MaskVal != 0xff) { in PerformANDCombine()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/X86/
DX86ISelDAGToDAG.cpp2713 APInt MaskVal = And1C->getAPIntValue(); in shrinkAndImmediate() local
2714 unsigned MaskLZ = MaskVal.countLeadingZeros(); in shrinkAndImmediate()
2721 MaskVal = MaskVal.trunc(32); in shrinkAndImmediate()
2725 APInt HighZeros = APInt::getHighBitsSet(MaskVal.getBitWidth(), MaskLZ); in shrinkAndImmediate()
2726 APInt NegMaskVal = MaskVal | HighZeros; in shrinkAndImmediate()
2731 if (MinWidth > 32 || (MinWidth > 8 && MaskVal.getMinSignedBits() <= 32)) in shrinkAndImmediate()
2735 if (VT == MVT::i64 && MaskVal.getBitWidth() < 64) { in shrinkAndImmediate()
DX86ISelLowering.cpp34143 APInt MaskVal = AndC->getAPIntValue(); in combineShiftRightLogical() local
34146 if (MaskVal.isMask()) { in combineShiftRightLogical()
34147 unsigned TO = MaskVal.countTrailingOnes(); in combineShiftRightLogical()
34152 APInt NewMaskVal = MaskVal.lshr(ShiftC->getAPIntValue()); in combineShiftRightLogical()
34153 unsigned OldMaskSize = MaskVal.getMinSignedBits(); in combineShiftRightLogical()
36595 SDValue MaskVal = DAG.getConstant(Mask, DL, SubRegVT); in combineVectorTruncationWithPACKUS() local
36600 SubVecs[i] = DAG.getNode(ISD::AND, DL, SubRegVT, Sub, MaskVal); in combineVectorTruncationWithPACKUS()
/external/llvm/lib/Target/NVPTX/
DNVPTXISelDAGToDAG.cpp4884 uint64_t MaskVal = Mask->getZExtValue(); in tryBFE() local
4885 if (!isMask_64(MaskVal)) { in tryBFE()
4893 uint64_t NumBits = countTrailingOnes(MaskVal); in tryBFE()
4950 uint64_t MaskVal = MaskCnst->getZExtValue(); in tryBFE() local
4953 if (isMask_64(MaskVal)) { in tryBFE()
4957 NumBits = countTrailingOnes(MaskVal) - ShiftAmt; in tryBFE()
4958 } else if (isShiftedMask_64(MaskVal)) { in tryBFE()
4959 NumZeros = countTrailingZeros(MaskVal); in tryBFE()
4960 unsigned NumOnes = countTrailingOnes(MaskVal >> NumZeros); in tryBFE()
DNVPTXISelLowering.cpp3998 uint64_t MaskVal = MaskCnst->getZExtValue(); in PerformANDCombine() local
3999 if (MaskVal != 0xff) { in PerformANDCombine()
/external/llvm/unittests/ADT/
DAPIntTest.cpp1036 APInt MaskVal = One.shl(I) - 1; in TEST() local
1037 EXPECT_TRUE(APIntOps::isMask(MaskVal)); in TEST()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/
DInstructionSimplify.cpp4181 int MaskVal, Value *RootVec, in foldIdentityShuffles() argument
4188 if (MaskVal == -1) in foldIdentityShuffles()
4193 int RootElt = MaskVal; in foldIdentityShuffles()
4195 if (MaskVal >= InVecNumElts) { in foldIdentityShuffles()
4196 RootElt = MaskVal - InVecNumElts; in foldIdentityShuffles()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/PowerPC/
DPPCISelLowering.cpp1779 unsigned MaskVal[16]; // Width is never greater than 16 in isNByteElemShuffleMask() local
1781 MaskVal[0] = N->getMaskElt(i * Width); in isNByteElemShuffleMask()
1782 if ((StepLen == 1) && (MaskVal[0] % Width)) { in isNByteElemShuffleMask()
1784 } else if ((StepLen == -1) && ((MaskVal[0] + 1) % Width)) { in isNByteElemShuffleMask()
1789 MaskVal[j] = N->getMaskElt(i * Width + j); in isNByteElemShuffleMask()
1790 if (MaskVal[j] != MaskVal[j-1] + StepLen) { in isNByteElemShuffleMask()
2131 int MaskVal = SignExtend32(Value, ByteSize * 8); in get_VSPLTI_elt() local
2134 if (MaskVal == 0) return SDValue(); in get_VSPLTI_elt()
2137 if (SignExtend32<5>(MaskVal) == MaskVal) in get_VSPLTI_elt()
2138 return DAG.getTargetConstant(MaskVal, SDLoc(N), MVT::i32); in get_VSPLTI_elt()
[all …]
DPPCISelDAGToDAG.cpp2194 SDValue MaskVal = SDValue(selectI64Imm(CurDAG, dl, Mask), 0); in Select64() local
2197 ExtendToInt64(Res, dl), MaskVal), 0); in Select64()
/external/swiftshader/third_party/LLVM/lib/Target/PowerPC/
DPPCISelLowering.cpp765 int MaskVal = ((int)Value << ShAmt) >> ShAmt; in get_VSPLTI_elt() local
768 if (MaskVal == 0) return SDValue(); in get_VSPLTI_elt()
771 if (((MaskVal << (32-5)) >> (32-5)) == MaskVal) in get_VSPLTI_elt()
772 return DAG.getTargetConstant(MaskVal, MVT::i32); in get_VSPLTI_elt()
/external/llvm/lib/Target/PowerPC/
DPPCISelDAGToDAG.cpp1855 SDValue MaskVal = SDValue(getInt64(CurDAG, dl, Mask), 0); in Select64() local
1858 Res, MaskVal), 0); in Select64()
DPPCISelLowering.cpp1695 int MaskVal = SignExtend32(Value, ByteSize * 8); in get_VSPLTI_elt() local
1698 if (MaskVal == 0) return SDValue(); in get_VSPLTI_elt()
1701 if (SignExtend32<5>(MaskVal) == MaskVal) in get_VSPLTI_elt()
1702 return DAG.getTargetConstant(MaskVal, SDLoc(N), MVT::i32); in get_VSPLTI_elt()
/external/llvm/lib/Target/X86/
DX86ISelLowering.cpp4520 unsigned MaskVal = (ScalarSize == 64) ? 0x03 : 0x0f; in insert128BitVector() local
4521 SDValue Mask = DAG.getConstant(MaskVal, dl, MVT::i8); in insert128BitVector()
29588 SDValue MaskVal = DAG.getConstant(Mask, DL, InVT); in combineVectorTruncationWithPACKUS() local
29590 Reg = DAG.getNode(ISD::AND, DL, InVT, MaskVal, Reg); in combineVectorTruncationWithPACKUS()