/freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/ |
H A D | SystemZTDC.cpp | 271 auto *MaskC = dyn_cast<ConstantInt>(CI->getArgOperand(1)); in convertICmp() local 273 if (!MaskC) in convertICmp() 275 int Mask = MaskC->getZExtValue(); in convertICmp()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/ |
H A D | X86InstCombineIntrinsic.cpp | 2059 if (auto *MaskC = dyn_cast<ConstantInt>(II.getArgOperand(1))) { in instCombineIntrinsic() local 2060 if (MaskC->isNullValue()) { in instCombineIntrinsic() 2063 if (MaskC->isAllOnesValue()) { in instCombineIntrinsic() 2068 if (MaskC->getValue().isShiftedMask(MaskIdx, MaskLen)) { in instCombineIntrinsic() 2081 uint64_t Mask = MaskC->getZExtValue(); in instCombineIntrinsic() 2103 if (auto *MaskC = dyn_cast<ConstantInt>(II.getArgOperand(1))) { in instCombineIntrinsic() local 2104 if (MaskC->isNullValue()) { in instCombineIntrinsic() 2107 if (MaskC->isAllOnesValue()) { in instCombineIntrinsic() 2112 if (MaskC->getValue().isShiftedMask(MaskIdx, MaskLen)) { in instCombineIntrinsic() 2125 uint64_t Mask = MaskC->getZExtValue(); in instCombineIntrinsic()
|
H A D | X86ISelDAGToDAG.cpp | 2690 if (auto *MaskC = dyn_cast<ConstantSDNode>(Src.getOperand(1))) { in matchAddressRecursively() local 2691 Mask = MaskC->getAPIntValue(); in matchAddressRecursively() 5887 auto *MaskC = dyn_cast<ConstantSDNode>(N0.getOperand(1)); in Select() local 5888 if (!MaskC) in Select() 5893 uint64_t Mask = MaskC->getZExtValue(); in Select() 5929 } else if (MaskC->hasOneUse() && !isInt<32>(Mask)) { in Select()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineCasts.cpp | 748 Constant *MaskC = ConstantExpr::getShl(One, C); in visitTrunc() local 749 Value *And = Builder.CreateAnd(X, MaskC); in visitTrunc() 756 Constant *MaskC = ConstantExpr::getShl(One, C); in visitTrunc() local 757 Value *And = Builder.CreateAnd(X, Builder.CreateOr(MaskC, One)); in visitTrunc() 2655 APInt MaskC = APInt::getHighBitsSet(BitWidth, BitWidth - EltWidth); in visitBitCast() local 2656 Value *AndX = Builder.CreateAnd(X, MaskC); in visitBitCast()
|
H A D | InstCombineShifts.cpp | 221 auto MaskC = m_LShr(m_AllOnes(), m_Value(MaskShAmt)); in dropRedundantMaskingOfLeftShiftInput() local 263 } else if (match(Masked, m_c_And(m_CombineOr(MaskC, MaskD), m_Value(X))) || in dropRedundantMaskingOfLeftShiftInput() 1410 APInt MaskC = APInt::getAllOnes(BitWidth).lshr(ShAmtC); in visitLShr() local 1411 return BinaryOperator::CreateAnd(Trunc, ConstantInt::get(Ty, MaskC)); in visitLShr()
|
H A D | InstCombineCompares.cpp | 2001 const APInt *MaskC; in foldICmpOrConstant() local 2002 if (match(OrOp1, m_APInt(MaskC)) && Cmp.isEquality()) { in foldICmpOrConstant() 2003 if (*MaskC == C && (C + 1).isPowerOf2()) { in foldICmpOrConstant() 2016 Value *And = Builder.CreateAnd(OrOp0, ~(*MaskC)); in foldICmpOrConstant() 2561 Value *And = Builder.CreateAnd(SRem->getOperand(0), MaskC); in foldICmpSRemConstant() 5343 const APInt *MaskC; in foldICmpEquality() local 5344 if (match(Op0, m_And(m_Value(B), m_LowBitMask(MaskC))) && in foldICmpEquality() 5517 Value *And = Builder.CreateAnd(X, MaskC); in foldICmpWithTrunc() 5518 return new ICmpInst(ICmpInst::ICMP_NE, And, MaskC); in foldICmpWithTrunc() 5525 Value *And = Builder.CreateAnd(X, MaskC); in foldICmpWithTrunc() [all …]
|
H A D | InstCombineAddSub.cpp | 1242 const APInt *MaskC, *MaskCCmp; in foldAddToAshr() local 1245 m_SExt(m_ICmp(Pred, m_And(m_Specific(X), m_APInt(MaskC)), in foldAddToAshr() 1250 (Pred != ICmpInst::ICMP_EQ || *MaskCCmp != *MaskC)) in foldAddToAshr() 1255 ? (*MaskC == (SMin | (*DivC - 1))) in foldAddToAshr() 1256 : (*DivC == 2 && *MaskC == SMin + 1); in foldAddToAshr()
|
H A D | InstructionCombining.cpp | 2008 ArrayRef<int> MaskC; in foldVectorBinop() local 2012 m_OneUse(m_Shuffle(m_Value(X), m_Undef(), m_Mask(MaskC)))) || in foldVectorBinop() 2013 !match(MaskC, m_SplatOrUndefMask(SplatIndex)) || in foldVectorBinop() 2031 SmallVector<int, 8> NewMask(MaskC.size(), SplatIndex); in foldVectorBinop()
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
H A D | SelectionDAG.cpp | 5371 ConstantSDNode *MaskC = isConstOrConstSplat(Mask); in getBitwiseNotOperand() local 5372 if (!MaskC || V.getOpcode() != ISD::ANY_EXTEND) in getBitwiseNotOperand() 5376 MaskC->getAPIntValue().getActiveBits() && in getBitwiseNotOperand()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/ |
H A D | ARMISelLowering.cpp | 14540 ConstantSDNode *MaskC = dyn_cast<ConstantSDNode>(MaskOp); in PerformORCombineToBFI() local 14541 if (!MaskC) in PerformORCombineToBFI() 14543 unsigned Mask = MaskC->getZExtValue(); in PerformORCombineToBFI() 14612 if (DAG.MaskedValueIsZero(N1, MaskC->getAPIntValue()) && in PerformORCombineToBFI()
|