Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineSimplifyDemanded.cpp1603 unsigned MaskVal = Shuffle->getMaskValue(i); in SimplifyDemandedVectorElts() local
1604 if (MaskVal != -1u) { in SimplifyDemandedVectorElts()
1605 assert(MaskVal < OpWidth * 2 && in SimplifyDemandedVectorElts()
1607 if (MaskVal < OpWidth) in SimplifyDemandedVectorElts()
1608 LeftDemanded.setBit(MaskVal); in SimplifyDemandedVectorElts()
1610 RightDemanded.setBit(MaskVal - OpWidth); in SimplifyDemandedVectorElts()
1635 unsigned MaskVal = Shuffle->getMaskValue(i); in SimplifyDemandedVectorElts() local
1636 if (DemandedElts[i] && i != MaskVal) { in SimplifyDemandedVectorElts()
1651 unsigned MaskVal = Shuffle->getMaskValue(i); in SimplifyDemandedVectorElts() local
1652 if (MaskVal == -1u) { in SimplifyDemandedVectorElts()
[all …]
H A DInstCombineVectorOps.cpp346 unsigned MaskVal = Shuffle->getMaskValue(i); in findDemandedEltsBySingleUser() local
347 if (MaskVal == -1u || MaskVal >= 2 * VWidth) in findDemandedEltsBySingleUser()
349 if (Shuffle->getOperand(0) == V && (MaskVal < VWidth)) in findDemandedEltsBySingleUser()
350 UsedElts.setBit(MaskVal); in findDemandedEltsBySingleUser()
352 ((MaskVal >= VWidth) && (MaskVal < 2 * VWidth))) in findDemandedEltsBySingleUser()
353 UsedElts.setBit(MaskVal - VWidth); in findDemandedEltsBySingleUser()
H A DInstCombineAndOrXor.cpp128 unsigned MaskVal = 0; in getMaskedICmpType() local
131 MaskVal |= (IsEq ? (Mask_AllZeros | AMask_Mixed | BMask_Mixed) in getMaskedICmpType()
134 MaskVal |= (IsEq ? (AMask_NotAllOnes | AMask_NotMixed) in getMaskedICmpType()
137 MaskVal |= (IsEq ? (BMask_NotAllOnes | BMask_NotMixed) in getMaskedICmpType()
139 return MaskVal; in getMaskedICmpType()
143 MaskVal |= (IsEq ? (AMask_AllOnes | AMask_Mixed) in getMaskedICmpType()
146 MaskVal |= (IsEq ? (Mask_NotAllZeros | AMask_NotMixed) in getMaskedICmpType()
149 MaskVal |= (IsEq ? AMask_Mixed : AMask_NotMixed); in getMaskedICmpType()
153 MaskVal |= (IsEq ? (BMask_AllOnes | BMask_Mixed) in getMaskedICmpType()
156 MaskVal |= (IsEq ? (Mask_NotAllZeros | BMask_NotMixed) in getMaskedICmpType()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/
H A DSystemZTDC.cpp366 Value *MaskVal = ConstantInt::get(Type::getInt64Ty(Ctx), Mask); in runOnFunction() local
368 IRB.CreateIntrinsic(Intrinsic::s390_tdc, V->getType(), {V, MaskVal}); in runOnFunction()
H A DSystemZISelLowering.cpp3227 uint64_t MaskVal; in adjustForTestUnderMask() local
3235 MaskVal = Mask->getZExtValue(); in adjustForTestUnderMask()
3255 MaskVal = -(CmpVal & -CmpVal); in adjustForTestUnderMask()
3258 if (!MaskVal) in adjustForTestUnderMask()
3268 (MaskVal >> ShiftVal != 0) && in adjustForTestUnderMask()
3271 MaskVal >> ShiftVal, in adjustForTestUnderMask()
3275 MaskVal >>= ShiftVal; in adjustForTestUnderMask()
3279 (MaskVal << ShiftVal != 0) && in adjustForTestUnderMask()
3282 MaskVal << ShiftVal, in adjustForTestUnderMask()
3286 MaskVal <<= ShiftVal; in adjustForTestUnderMask()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/NVPTX/
H A DNVPTXISelDAGToDAG.cpp1716 uint64_t MaskVal = Mask->getZExtValue(); in tryBFE() local
1717 if (!isMask_64(MaskVal)) { in tryBFE()
1725 int64_t NumBits = countr_one(MaskVal); in tryBFE()
1782 uint64_t MaskVal = MaskCnst->getZExtValue(); in tryBFE() local
1785 if (isMask_64(MaskVal)) { in tryBFE()
1789 NumBits = llvm::countr_one(MaskVal) - ShiftAmt; in tryBFE()
1790 } else if (isShiftedMask_64(MaskVal)) { in tryBFE()
1791 NumZeros = llvm::countr_zero(MaskVal); in tryBFE()
1792 unsigned NumOnes = llvm::countr_one(MaskVal >> NumZeros); in tryBFE()
H A DNVPTXISelLowering.cpp5278 uint64_t MaskVal = MaskCnst->getZExtValue(); in PerformANDCombine() local
5279 if (MaskVal != 0xff) { in PerformANDCombine()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DExpandVectorPredication.cpp83 static bool isAllTrueMask(Value *MaskVal) { in isAllTrueMask() argument
84 if (Value *SplattedVal = getSplatValue(MaskVal)) in isAllTrueMask()
/freebsd/contrib/llvm-project/llvm/lib/Target/Sparc/AsmParser/
H A DSparcAsmParser.cpp1210 unsigned MaskVal = StringSwitch<unsigned>(Parser.getTok().getString()) in parseMembarTag() local
1222 if (!MaskVal) in parseMembarTag()
1225 ImmVal |= MaskVal; in parseMembarTag()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUISelDAGToDAG.cpp2431 uint32_t MaskVal = Mask->getZExtValue(); in SelectS_BFE() local
2433 if (isMask_32(MaskVal)) { in SelectS_BFE()
2434 uint32_t WidthVal = llvm::popcount(MaskVal); in SelectS_BFE()
2452 uint32_t MaskVal = Mask->getZExtValue() >> ShiftVal; in SelectS_BFE() local
2454 if (isMask_32(MaskVal)) { in SelectS_BFE()
2455 uint32_t WidthVal = llvm::popcount(MaskVal); in SelectS_BFE()
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/
H A DLegalizationArtifactCombiner.h141 APInt MaskVal = APInt::getAllOnes(SrcTy.getScalarSizeInBits()); in tryCombineZExt() local
146 APInt ExtMaskVal = MaskVal.zext(DstTy.getScalarSizeInBits()); in tryCombineZExt()
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86ISelDAGToDAG.cpp4827 APInt MaskVal = And1C->getAPIntValue(); in shrinkAndImmediate() local
4828 unsigned MaskLZ = MaskVal.countl_zero(); in shrinkAndImmediate()
4835 MaskVal = MaskVal.trunc(32); in shrinkAndImmediate()
4839 APInt HighZeros = APInt::getHighBitsSet(MaskVal.getBitWidth(), MaskLZ); in shrinkAndImmediate()
4840 APInt NegMaskVal = MaskVal | HighZeros; in shrinkAndImmediate()
4845 if (MinWidth > 32 || (MinWidth > 8 && MaskVal.getSignificantBits() <= 32)) in shrinkAndImmediate()
4849 if (VT == MVT::i64 && MaskVal.getBitWidth() < 64) { in shrinkAndImmediate()
H A DX86ISelLowering.cpp48141 auto *MaskVal = cast<ConstantSDNode>(Mask.getOperand(i)); in combineSelect() local
48143 MaskVal->getAPIntValue().exactLogBase2()); in combineSelect()
50046 APInt MaskVal = AndC->getAPIntValue(); in combineShiftRightLogical() local
50049 if (MaskVal.isMask()) { in combineShiftRightLogical()
50050 unsigned TO = MaskVal.countr_one(); in combineShiftRightLogical()
50055 APInt NewMaskVal = MaskVal.lshr(ShiftC->getAPIntValue()); in combineShiftRightLogical()
50056 unsigned OldMaskSize = MaskVal.getSignificantBits(); in combineShiftRightLogical()
/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyISelLowering.cpp2817 APInt MaskVal; in LowerShift() local
2818 if (!ISD::isConstantSplatVector(RHS.getNode(), MaskVal)) in LowerShift()
2821 if (ISD::isConstantSplatVector(RHS.getNode(), MaskVal) && in LowerShift()
2822 MaskVal == MaskBits) in LowerShift()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DInstructionSimplify.cpp5409 int MaskVal, Value *RootVec, in foldIdentityShuffles() argument
5416 if (MaskVal == -1) in foldIdentityShuffles()
5421 int RootElt = MaskVal; in foldIdentityShuffles()
5423 if (MaskVal >= InVecNumElts) { in foldIdentityShuffles()
5424 RootElt = MaskVal - InVecNumElts; in foldIdentityShuffles()
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/
H A DPPCISelLowering.cpp2276 unsigned MaskVal[16]; // Width is never greater than 16 in isNByteElemShuffleMask() local
2278 MaskVal[0] = N->getMaskElt(i * Width); in isNByteElemShuffleMask()
2279 if ((StepLen == 1) && (MaskVal[0] % Width)) { in isNByteElemShuffleMask()
2281 } else if ((StepLen == -1) && ((MaskVal[0] + 1) % Width)) { in isNByteElemShuffleMask()
2286 MaskVal[j] = N->getMaskElt(i * Width + j); in isNByteElemShuffleMask()
2287 if (MaskVal[j] != MaskVal[j-1] + StepLen) { in isNByteElemShuffleMask()
2635 int MaskVal = SignExtend32(Value, ByteSize * 8); in get_VSPLTI_elt() local
2638 if (MaskVal == 0) return SDValue(); in get_VSPLTI_elt()
2641 if (SignExtend32<5>(MaskVal) == MaskVal) in get_VSPLTI_elt()
2642 return DAG.getSignedTargetConstant(MaskVal, SDLoc(N), MVT::i32); in get_VSPLTI_elt()
[all …]
H A DPPCISelDAGToDAG.cpp2775 SDValue MaskVal = in Select64() local
2778 ExtendToInt64(Res, dl), MaskVal), in Select64()
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/GISel/
H A DAArch64InstructionSelector.cpp3266 std::optional<int64_t> MaskVal = getIConstantVRegSExtVal(MaskReg, MRI); in select() local
3268 if (!MaskVal || !isShiftedMask_64(*MaskVal)) in select()
3271 uint64_t Mask = *MaskVal; in select()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DVectorCombine.cpp990 auto IsAllTrueMask = [](Value *MaskVal) { in scalarizeVPIntrinsic() argument
991 if (Value *SplattedVal = getSplatValue(MaskVal)) in scalarizeVPIntrinsic()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DInstructions.cpp1862 int MaskVal = isa<UndefValue>(Mask) ? -1 : 0; in getShuffleMask() local
1863 Result.append(EC.getKnownMinValue(), MaskVal); in getShuffleMask()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DCombinerHelper.cpp972 APInt MaskVal = MaybeMask->Value; in matchCombineLoadWithAndMask() local
974 if (!MaskVal.isMask()) in matchCombineLoadWithAndMask()
989 unsigned MaskSizeBits = MaskVal.countr_one(); in matchCombineLoadWithAndMask()
H A DLegalizerHelper.cpp8845 APInt MaskVal = APInt::getBitsSetWithWrap( in lowerInsert() local
8848 auto Mask = MIRBuilder.buildConstant(IntDstTy, MaskVal); in lowerInsert()
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DExprConstant.cpp13349 APSInt MaskVal; in VisitBuiltinCallExpr() local
13350 if (!EvaluateInteger(E->getArg(1), MaskVal, Info)) in VisitBuiltinCallExpr()
13352 unsigned Test = static_cast<llvm::FPClassTest>(MaskVal.getZExtValue()); in VisitBuiltinCallExpr()
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/
H A DARMISelLowering.cpp21445 auto MaskVal = unsigned(Mask->getValue().getZExtValue()); in isMaskAndCmp0FoldingBeneficial() local
21446 return (Subtarget->isThumb2() ? ARM_AM::getT2SOImmVal(MaskVal) in isMaskAndCmp0FoldingBeneficial()
21447 : ARM_AM::getSOImmVal(MaskVal)) != -1; in isMaskAndCmp0FoldingBeneficial()
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVISelLowering.cpp18559 const APInt &MaskVal = LHS.getConstantOperandAPInt(1); in useInversedSetcc() local
18560 if (MaskVal.isPowerOf2() && !MaskVal.isSignedIntN(12)) in useInversedSetcc()