| /freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineAndOrXor.cpp | 2477 const APInt *ShiftC; in visitAnd() local 2478 if (match(Op0, m_OneUse(m_SExt(m_AShr(m_Value(X), m_APInt(ShiftC))))) && in visitAnd() 2479 ShiftC->ult(Width)) { in visitAnd() 2480 if (*C == APInt::getLowBitsSet(Width, Width - ShiftC->getZExtValue())) { in visitAnd() 2484 Constant *ShAmtC = ConstantInt::get(Ty, ShiftC->zext(Width)); in visitAnd() 2491 if (match(Op0, m_AShr(m_Value(X), m_APInt(ShiftC))) && ShiftC->ult(Width) && in visitAnd() 2492 C->isMask(Width - ShiftC->getZExtValue())) in visitAnd() 2493 return BinaryOperator::CreateLShr(X, ConstantInt::get(Ty, *ShiftC)); in visitAnd() 2593 match(Op0, m_OneUse(m_LogicalShift(m_Power2(ShiftC), m_Value(X))))) { in visitAnd() 2594 int Log2ShiftC = ShiftC->exactLogBase2(); in visitAnd()
|
| H A D | InstCombineMulDivRem.cpp | 261 const APInt *ShiftC; in visitMul() local 264 match(&I, m_Mul(m_Exact(m_Shr(m_Value(NewOp), m_APInt(ShiftC))), in visitMul() 266 (*MulAP - 1).isPowerOf2() && *ShiftC == MulAP->logBase2()) { in visitMul() 272 BinOp = Builder.CreateLShr(NewOp, ConstantInt::get(Ty, *ShiftC), "", in visitMul() 277 ShiftC->getZExtValue() < BitWidth - 1)) in visitMul()
|
| H A D | InstCombineSimplifyDemanded.cpp | 629 Constant *ShiftC = ConstantInt::get(VTy, CTZ); in SimplifyDemandedUseBits() local 630 Instruction *Shl = BinaryOperator::CreateShl(I->getOperand(0), ShiftC); in SimplifyDemandedUseBits()
|
| H A D | InstCombineCompares.cpp | 1678 const APInt *ShiftC; in foldICmpXorShiftConst() local 1680 m_AShr(m_Deferred(X), m_APInt(ShiftC)))))) in foldICmpXorShiftConst() 1682 uint64_t Shift = ShiftC->getLimitedValue(); in foldICmpXorShiftConst()
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
| H A D | TargetLowering.cpp | 1664 if (ConstantSDNode *ShiftC = in SimplifyDemandedBits() local 1668 if (ShiftC->getAPIntValue().ult(BitWidth)) { in SimplifyDemandedBits() 1669 uint64_t ShiftAmt = ShiftC->getZExtValue(); in SimplifyDemandedBits() 9304 SDValue ShiftC = DAG.getShiftAmountConstant(Shift, VT, dl); in expandCTPOP() local 9306 DAG.getNode(ISD::SHL, dl, VT, V, ShiftC)); in expandCTPOP() 9371 SDValue ShiftC = DAG.getShiftAmountConstant(Shift, VT, dl); in expandVPCTPOP() local 9373 DAG.getNode(ISD::VP_SHL, dl, VT, V, ShiftC, Mask, VL), in expandVPCTPOP()
|
| H A D | DAGCombiner.cpp | 10894 SDValue ShiftC = in visitSRA() local 10900 Add = DAG.getNode(ISD::ADD, DL, TruncVT, Trunc, ShiftC); in visitSRA() 10902 Add = DAG.getNode(ISD::SUB, DL, TruncVT, ShiftC, Trunc); in visitSRA() 15573 SDValue ShiftC = DAG.getConstant(ShiftedOffset, DL, VT); in reduceLoadWidth() local 15574 Result = DAG.getNode(ISD::SHL, DL, VT, Result, ShiftC); in reduceLoadWidth()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/X86/ |
| H A D | X86ISelDAGToDAG.cpp | 6246 SDValue ShiftC = CurDAG->getTargetConstant(ShiftAmt, dl, MVT::i64); in Select() local 6249 N0.getOperand(0), ShiftC), in Select()
|
| H A D | X86ISelLowering.cpp | 50038 auto *ShiftC = dyn_cast<ConstantSDNode>(N1); in combineShiftRightLogical() local 50040 if (!ShiftC || !AndC) in combineShiftRightLogical() 50055 APInt NewMaskVal = MaskVal.lshr(ShiftC->getAPIntValue()); in combineShiftRightLogical()
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/ |
| H A D | LegalizerHelper.cpp | 7248 auto ShiftC = B.buildConstant(Ty, Shift); in lowerBitCount() local 7249 auto Shl = B.buildShl(Ty, ResTmp, ShiftC); in lowerBitCount()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/ARM/ |
| H A D | ARMISelLowering.cpp | 13923 auto *ShiftC = dyn_cast<ConstantSDNode>(N->getOperand(0).getOperand(1)); in isDesirableToCommuteXorWithShift() local 13924 if (XorC && ShiftC) { in isDesirableToCommuteXorWithShift() 13927 unsigned ShiftAmt = ShiftC->getZExtValue(); in isDesirableToCommuteXorWithShift()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/ |
| H A D | AArch64ISelLowering.cpp | 17957 auto *ShiftC = dyn_cast<ConstantSDNode>(N->getOperand(0).getOperand(1)); in isDesirableToCommuteXorWithShift() local 17958 if (XorC && ShiftC) { in isDesirableToCommuteXorWithShift() 17961 unsigned ShiftAmt = ShiftC->getZExtValue(); in isDesirableToCommuteXorWithShift()
|