reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

include/llvm/ADT/APInt.h
  936   APInt operator<<(unsigned Bits) const { return shl(Bits); }
lib/Analysis/ConstantFolding.cpp
 2364       return ConstantInt::get(Ty, C0->shl(ShlAmt));
 2365     return ConstantInt::get(Ty, C0->shl(ShlAmt) | C1->lshr(LshrAmt));
lib/Analysis/DemandedBits.cpp
  168             AB = AOut.shl(BitWidth - ShiftAmt);
  204         AB = AOut.shl(ShiftAmt);
  218         AB = AOut.shl(ShiftAmt);
lib/Analysis/ScalarEvolution.cpp
 5564                         APInt::getMaxValue(BitWidth).lshr(TZ).shl(TZ) + 1);
 5568           APInt::getSignedMaxValue(BitWidth).ashr(TZ).shl(TZ) + 1);
 6268             APInt::getLowBitsSet(BitWidth, BitWidth - LZ - TZ).shl(TZ);
lib/Analysis/ValueTracking.cpp
 1532             Known2.Zero.shl(ShiftAmt) | Known3.Zero.lshr(BitWidth - ShiftAmt);
 1534             Known2.One.shl(ShiftAmt) | Known3.One.lshr(BitWidth - ShiftAmt);
 5495         Upper = Lower.shl(Lower.countLeadingZeros()) + 1;
 5500           Lower = C->shl(ShiftAmount);
 5506           Upper = C->shl(ShiftAmount) + 1;
lib/CodeGen/GlobalISel/GISelKnownBits.cpp
  337       Known.Zero = Known.Zero.shl(Shift);
  338       Known.One = Known.One.shl(Shift);
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
 5165             SplatValue |= SplatValue.shl(SplatBitSize);
 6985         Ones = N0Opcode == ISD::SHL ? Ones.shl(ShiftAmt) : Ones.lshr(ShiftAmt);
lib/CodeGen/SelectionDAG/SelectionDAG.cpp
 2298       APInt DemandedSrc = DemandedElts.zextOrSelf(NumSrcElts).shl(Idx);
 2600       DemandedSrc = DemandedElts.zextOrSelf(NumSrcElts).shl(Idx);
 2650         Known2 = computeKnownBits(N0, SubDemandedElts.shl(i),
 2653         Known.One |= Known2.One.zext(BitWidth).shl(SubBitWidth * Shifts);
 2654         Known.Zero |= Known2.Zero.zext(BitWidth).shl(SubBitWidth * Shifts);
 3830       DemandedSrc = DemandedElts.zextOrSelf(NumSrcElts).shl(Idx);
lib/CodeGen/SelectionDAG/TargetLowering.cpp
  922       SrcElts = DemandedElts.zextOrSelf(NumSrcElts).shl(Idx);
 1614                  KnownHi.Zero.zext(BitWidth).shl(HalfBitWidth);
 1617                 KnownHi.One.zext(BitWidth).shl(HalfBitWidth);
 2300       APInt SrcElts = DemandedElts.zextOrSelf(NumSrcElts).shl(Idx);
lib/ExecutionEngine/Interpreter/Execution.cpp
 1203       Result.IntVal = valueToShift.shl(getShiftAmount(shiftAmount, valueToShift));
 1210     Dest.IntVal = valueToShift.shl(getShiftAmount(shiftAmount, valueToShift));
 2089     Dest.IntVal = Op0.IntVal.shl(Op1.IntVal.getZExtValue());
lib/Support/APInt.cpp
 1053   return shl(rotateAmt) | lshr(BitWidth - rotateAmt);
 1064   return lshr(rotateAmt) | shl(BitWidth - rotateAmt);
 1116   for (;; i += 2, testy = testy.shl(2))
 1118       x_old = x_old.shl(i / 2);
lib/Target/Hexagon/HexagonConstPropagation.cpp
 1775     Result = A1.shl(BW-Bits-Offset).ashr(BW-Bits);
 1777     Result = A1.shl(BW-Bits-Offset).lshr(BW-Bits);
lib/Target/Hexagon/HexagonGenExtract.cpp
  172     APInt A = APInt(BW, ~0ULL).lshr(SR).shl(SL);
lib/Target/NVPTX/NVPTXISelLowering.cpp
 1930       DAG.getConstant(E1.zext(32).shl(16) | E0.zext(32), SDLoc(Op), MVT::i32);
lib/Target/X86/X86ISelLowering.cpp
22477         Elts.push_back(DAG.getConstant(C.shl(ShiftAmt), dl, ElementType));
25728       Elts.push_back(DAG.getConstant(One.shl(ShAmt), dl, SVT));
34383     APInt DemandedSrc = DemandedElts.shl(ShiftAmt);
lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
  940           Pred == ICmpInst::ICMP_ULT && I1->ugt(*I01) && I01->shl(1) == *I1))
lib/Transforms/InstCombine/InstCombineCalls.cpp
  888     APInt Mask = APInt::getLowBitsSet(64, Length).shl(Index);
  890     V10 = V10.zextOrTrunc(Length).zextOrTrunc(64).shl(Index);
lib/Transforms/InstCombine/InstCombineCompares.cpp
 1239   if (Shift > 0 && AP2.shl(Shift) == AP1)
 2200       APInt ShiftedC = C.shl(ShAmtVal);
 2206       APInt ShiftedC = (C + 1).shl(ShAmtVal) - 1;
 2207       if (!C.isMaxSignedValue() && !(C + 1).shl(ShAmtVal).isMinSignedValue() &&
 2215       APInt ShiftedC = C.shl(ShAmtVal);
 2221       APInt ShiftedC = (C + 1).shl(ShAmtVal) - 1;
 2235   assert(((IsAShr && C.shl(ShAmtVal).ashr(ShAmtVal) == C) ||
 2236           (!IsAShr && C.shl(ShAmtVal).lshr(ShAmtVal) == C)) &&
lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp
  502       APInt DemandedMaskIn(DemandedMask.shl(ShiftAmt));
  541       APInt DemandedMaskIn(DemandedMask.shl(ShiftAmt));
  704         APInt DemandedMaskRHS(DemandedMask.shl(BitWidth - ShiftAmt));
  709         Known.Zero = LHSKnown.Zero.shl(ShiftAmt) |
  711         Known.One = LHSKnown.One.shl(ShiftAmt) |
lib/Transforms/Scalar/SROA.cpp
 2175     APInt Mask = ~Ty->getMask().zext(IntTy->getBitWidth()).shl(ShAmt);
tools/clang/lib/Basic/FixedPoint.cpp
   81   ThisVal = ThisVal.shl(CommonScale - getScale());
   82   OtherVal = OtherVal.shl(CommonScale - OtherScale);
tools/clang/lib/CodeGen/CGExprConstant.cpp
  209         BitsThisChar = BitsThisChar.shl(-Shift);
  211       BitsThisChar = BitsThisChar.shl(OffsetWithinChar);
tools/polly/unittests/Isl/IslTest.cpp
  153     APLarge = APLarge.shl(70);
unittests/ADT/APIntTest.cpp
   30   APInt Shl = One.shl(0);
  288   EXPECT_EQ(zero, one.shl(1));
  289   EXPECT_EQ(one, one.shl(0));
  979   testDiv(APInt{4096, 5}.shl(2001),
  980           APInt{4096, 1}.shl(2000),
  986   testDiv(APInt{1024, 19}.shl(811),
 1058   testDiv(APInt{1024, 19}.shl(811),
 1737       APInt MaskVal = One.shl(I) - 1;
 1755       APInt MaskVal = One.shl(I) - 1;
 1759       APInt MaskVal = One.shl(I);
 2447   EXPECT_EQ(0, neg_one.shl(128));