Home
last modified time | relevance | path

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

/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/InstCombine/
H A DInstCombineSimplifyDemanded.cpp1281 unsigned MaskVal = Shuffle->getMaskValue(i); in SimplifyDemandedVectorElts() local
1282 if (MaskVal != -1u) { in SimplifyDemandedVectorElts()
1283 assert(MaskVal < OpWidth * 2 && in SimplifyDemandedVectorElts()
1285 if (MaskVal < OpWidth) in SimplifyDemandedVectorElts()
1286 LeftDemanded.setBit(MaskVal); in SimplifyDemandedVectorElts()
1288 RightDemanded.setBit(MaskVal - OpWidth); in SimplifyDemandedVectorElts()
1313 unsigned MaskVal = Shuffle->getMaskValue(i); in SimplifyDemandedVectorElts() local
1314 if (DemandedElts[i] && i != MaskVal) { in SimplifyDemandedVectorElts()
1329 unsigned MaskVal = Shuffle->getMaskValue(i); in SimplifyDemandedVectorElts() local
1330 if (MaskVal == -1u) { in SimplifyDemandedVectorElts()
[all …]
H A DInstCombineVectorOps.cpp296 unsigned MaskVal = Shuffle->getMaskValue(i); in findDemandedEltsBySingleUser() local
297 if (MaskVal == -1u || MaskVal >= 2 * VWidth) in findDemandedEltsBySingleUser()
299 if (Shuffle->getOperand(0) == V && (MaskVal < VWidth)) in findDemandedEltsBySingleUser()
300 UsedElts.setBit(MaskVal); in findDemandedEltsBySingleUser()
302 ((MaskVal >= VWidth) && (MaskVal < 2 * VWidth))) in findDemandedEltsBySingleUser()
303 UsedElts.setBit(MaskVal - VWidth); in findDemandedEltsBySingleUser()
H A DInstCombineAndOrXor.cpp194 unsigned MaskVal = 0; in getMaskedICmpType() local
197 MaskVal |= (IsEq ? (Mask_AllZeros | AMask_Mixed | BMask_Mixed) in getMaskedICmpType()
200 MaskVal |= (IsEq ? (AMask_NotAllOnes | AMask_NotMixed) in getMaskedICmpType()
203 MaskVal |= (IsEq ? (BMask_NotAllOnes | BMask_NotMixed) in getMaskedICmpType()
205 return MaskVal; in getMaskedICmpType()
209 MaskVal |= (IsEq ? (AMask_AllOnes | AMask_Mixed) in getMaskedICmpType()
212 MaskVal |= (IsEq ? (Mask_NotAllZeros | AMask_NotMixed) in getMaskedICmpType()
215 MaskVal |= (IsEq ? AMask_Mixed : AMask_NotMixed); in getMaskedICmpType()
219 MaskVal |= (IsEq ? (BMask_AllOnes | BMask_Mixed) in getMaskedICmpType()
222 MaskVal |= (IsEq ? (Mask_NotAllZeros | BMask_NotMixed) in getMaskedICmpType()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/SystemZ/
H A DSystemZTDC.cpp376 Value *MaskVal = ConstantInt::get(Type::getInt64Ty(Ctx), Mask); in runOnFunction() local
377 Instruction *TDC = IRB.CreateCall(TDCFunc, {V, MaskVal}); in runOnFunction()
H A DSystemZISelLowering.cpp2444 uint64_t MaskVal; in adjustForTestUnderMask() local
2452 MaskVal = Mask->getZExtValue(); in adjustForTestUnderMask()
2472 MaskVal = -(CmpVal & -CmpVal); in adjustForTestUnderMask()
2475 if (!MaskVal) in adjustForTestUnderMask()
2485 (MaskVal >> ShiftVal != 0) && in adjustForTestUnderMask()
2488 MaskVal >> ShiftVal, in adjustForTestUnderMask()
2492 MaskVal >>= ShiftVal; in adjustForTestUnderMask()
2496 (MaskVal << ShiftVal != 0) && in adjustForTestUnderMask()
2499 MaskVal << ShiftVal, in adjustForTestUnderMask()
2503 MaskVal <<= ShiftVal; in adjustForTestUnderMask()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/
H A DExpandVectorPredication.cpp86 static bool isAllTrueMask(Value *MaskVal) { in isAllTrueMask() argument
87 auto *ConstVec = dyn_cast<ConstantVector>(MaskVal); in isAllTrueMask()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/NVPTX/
H A DNVPTXISelDAGToDAG.cpp3399 uint64_t MaskVal = Mask->getZExtValue(); in tryBFE() local
3400 if (!isMask_64(MaskVal)) { in tryBFE()
3408 uint64_t NumBits = countTrailingOnes(MaskVal); in tryBFE()
3465 uint64_t MaskVal = MaskCnst->getZExtValue(); in tryBFE() local
3468 if (isMask_64(MaskVal)) { in tryBFE()
3472 NumBits = countTrailingOnes(MaskVal) - ShiftAmt; in tryBFE()
3473 } else if (isShiftedMask_64(MaskVal)) { in tryBFE()
3474 NumZeros = countTrailingZeros(MaskVal); in tryBFE()
3475 unsigned NumOnes = countTrailingOnes(MaskVal >> NumZeros); in tryBFE()
H A DNVPTXISelLowering.cpp4470 uint64_t MaskVal = MaskCnst->getZExtValue(); in PerformANDCombine() local
4471 if (MaskVal != 0xff) { in PerformANDCombine()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/Sparc/AsmParser/
H A DSparcAsmParser.cpp869 unsigned MaskVal = StringSwitch<unsigned>(Parser.getTok().getString()) in parseMembarTag() local
881 if (!MaskVal) { in parseMembarTag()
886 ImmVal |= MaskVal; in parseMembarTag()
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/CodeGen/GlobalISel/
H A DLegalizationArtifactCombiner.h121 APInt MaskVal = APInt::getAllOnesValue(SrcTy.getScalarSizeInBits()); in tryCombineZExt() local
123 DstTy, MaskVal.zext(DstTy.getScalarSizeInBits())); in tryCombineZExt()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/AMDGPU/
H A DAMDGPUISelDAGToDAG.cpp2171 uint32_t MaskVal = Mask->getZExtValue(); in SelectS_BFE() local
2173 if (isMask_32(MaskVal)) { in SelectS_BFE()
2174 uint32_t WidthVal = countPopulation(MaskVal); in SelectS_BFE()
2193 uint32_t MaskVal = Mask->getZExtValue() >> ShiftVal; in SelectS_BFE() local
2195 if (isMask_32(MaskVal)) { in SelectS_BFE()
2196 uint32_t WidthVal = countPopulation(MaskVal); in SelectS_BFE()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/X86/
H A DX86ISelDAGToDAG.cpp4260 APInt MaskVal = And1C->getAPIntValue(); in shrinkAndImmediate() local
4261 unsigned MaskLZ = MaskVal.countLeadingZeros(); in shrinkAndImmediate()
4268 MaskVal = MaskVal.trunc(32); in shrinkAndImmediate()
4272 APInt HighZeros = APInt::getHighBitsSet(MaskVal.getBitWidth(), MaskLZ); in shrinkAndImmediate()
4273 APInt NegMaskVal = MaskVal | HighZeros; in shrinkAndImmediate()
4278 if (MinWidth > 32 || (MinWidth > 8 && MaskVal.getMinSignedBits() <= 32)) in shrinkAndImmediate()
4282 if (VT == MVT::i64 && MaskVal.getBitWidth() < 64) { in shrinkAndImmediate()
H A DX86ISelLowering.cpp41929 auto *MaskVal = cast<ConstantSDNode>(Mask.getOperand(i)); in combineSelect() local
41931 MaskVal->getAPIntValue().exactLogBase2()); in combineSelect()
43452 APInt MaskVal = AndC->getAPIntValue(); in combineShiftRightLogical() local
43455 if (MaskVal.isMask()) { in combineShiftRightLogical()
43456 unsigned TO = MaskVal.countTrailingOnes(); in combineShiftRightLogical()
43461 APInt NewMaskVal = MaskVal.lshr(ShiftC->getAPIntValue()); in combineShiftRightLogical()
43462 unsigned OldMaskSize = MaskVal.getMinSignedBits(); in combineShiftRightLogical()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Analysis/
H A DInstructionSimplify.cpp4592 int MaskVal, Value *RootVec, in foldIdentityShuffles() argument
4599 if (MaskVal == -1) in foldIdentityShuffles()
4604 int RootElt = MaskVal; in foldIdentityShuffles()
4606 if (MaskVal >= InVecNumElts) { in foldIdentityShuffles()
4607 RootElt = MaskVal - InVecNumElts; in foldIdentityShuffles()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/PowerPC/
H A DPPCISelLowering.cpp2139 unsigned MaskVal[16]; // Width is never greater than 16 in isNByteElemShuffleMask() local
2141 MaskVal[0] = N->getMaskElt(i * Width); in isNByteElemShuffleMask()
2142 if ((StepLen == 1) && (MaskVal[0] % Width)) { in isNByteElemShuffleMask()
2144 } else if ((StepLen == -1) && ((MaskVal[0] + 1) % Width)) { in isNByteElemShuffleMask()
2149 MaskVal[j] = N->getMaskElt(i * Width + j); in isNByteElemShuffleMask()
2150 if (MaskVal[j] != MaskVal[j-1] + StepLen) { in isNByteElemShuffleMask()
2492 int MaskVal = SignExtend32(Value, ByteSize * 8); in get_VSPLTI_elt() local
2495 if (MaskVal == 0) return SDValue(); in get_VSPLTI_elt()
2498 if (SignExtend32<5>(MaskVal) == MaskVal) in get_VSPLTI_elt()
2499 return DAG.getTargetConstant(MaskVal, SDLoc(N), MVT::i32); in get_VSPLTI_elt()
[all …]
H A DPPCISelDAGToDAG.cpp2602 SDValue MaskVal = in Select64() local
2605 ExtendToInt64(Res, dl), MaskVal), in Select64()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/AArch64/GISel/
H A DAArch64InstructionSelector.cpp2799 Optional<int64_t> MaskVal = getConstantVRegSExtVal(MaskReg, MRI); in select() local
2801 if (!MaskVal || !isShiftedMask_64(*MaskVal)) in select()
2804 uint64_t Mask = *MaskVal; in select()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/IR/
H A DInstructions.cpp2062 int MaskVal = isa<UndefValue>(Mask) ? -1 : 0; in getShuffleMask() local
2064 Result.emplace_back(MaskVal); in getShuffleMask()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/GlobalISel/
H A DLegalizerHelper.cpp6451 APInt MaskVal = APInt::getBitsSetWithWrap( in lowerInsert() local
6454 auto Mask = MIRBuilder.buildConstant(IntDstTy, MaskVal); in lowerInsert()