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

Declarations

include/llvm/Analysis/ScalarEvolution.h
  130   Type *getType() const;

References

include/llvm/Analysis/ScalarEvolutionExpressions.h
  173     Type *getType() const { return getOperand(0)->getType(); }
  234       return getOperand(getNumOperands() - 1)->getType();
  279       return getRHS()->getType();
lib/Analysis/DependenceAnalysis.cpp
  389   A = SE->getOne(D->getType());
  540           collectConstantUpperBound(X->getAssociatedLoop(), Prod1->getType())) {
  816     IntegerType *SrcTy = dyn_cast<IntegerType>(Src->getType());
  817     IntegerType *DstTy = dyn_cast<IntegerType>(Dst->getType());
  841     IntegerType *SrcTy = dyn_cast<IntegerType>(Src->getType());
  842     IntegerType *DstTy = dyn_cast<IntegerType>(Dst->getType());
  872     if (SrcCastOp->getType() == DstCastOp->getType()) {
  872     if (SrcCastOp->getType() == DstCastOp->getType()) {
  891     if (SE->getTypeSizeInBits(Start->getType()) <
  892         SE->getTypeSizeInBits(UB->getType())) {
  916     if (SE->getTypeSizeInBits(Start->getType()) <
  917         SE->getTypeSizeInBits(UB->getType())) {
  979       if (Xop->getType() == Yop->getType()) {
  979       if (Xop->getType() == Yop->getType()) {
 1016   auto *SType = dyn_cast<IntegerType>(S->getType());
 1017   auto *SizeType = dyn_cast<IntegerType>(Size->getType());
 1040       SE->getMinusSCEV(S, SE->getSMaxExpr(Size, SE->getOne(Size->getType())));
 1152   LLVM_DEBUG(dbgs() << ", " << *Coeff->getType() << "\n");
 1154   LLVM_DEBUG(dbgs() << ", " << *SrcConst->getType() << "\n");
 1156   LLVM_DEBUG(dbgs() << ", " << *DstConst->getType() << "\n");
 1163   LLVM_DEBUG(dbgs() << ", " << *Delta->getType() << "\n");
 1166   if (const SCEV *UpperBound = collectUpperBound(CurLoop, Delta->getType())) {
 1168     LLVM_DEBUG(dbgs() << ", " << *UpperBound->getType() << "\n");
 1323       SE->getSMaxExpr(SE->getZero(Delta->getType()), Delta),
 1324       SE->getMulExpr(SE->getConstant(Delta->getType(), 2), ConstCoeff));
 1344   if (const SCEV *UpperBound = collectUpperBound(CurLoop, Delta->getType())) {
 1346     const SCEV *ConstantTwo = SE->getConstant(UpperBound->getType(), 2);
 1366       Result.DV[Level].Distance = SE->getZero(Delta->getType());
 1536       collectConstantUpperBound(CurLoop, Delta->getType())) {
 1720   NewConstraint.setLine(SE->getZero(Delta->getType()), DstCoeff, Delta,
 1742   if (const SCEV *UpperBound = collectUpperBound(CurLoop, Delta->getType())) {
 1829   NewConstraint.setLine(SrcCoeff, SE->getZero(Delta->getType()), Delta,
 1851   if (const SCEV *UpperBound = collectUpperBound(CurLoop, Delta->getType())) {
 1934       collectConstantUpperBound(SrcLoop, Delta->getType())) {
 1944       collectConstantUpperBound(DstLoop, Delta->getType())) {
 2045   LLVM_DEBUG(dbgs() << ", type = " << *A1->getType() << "\n");
 2049   const SCEV *N1 = collectUpperBound(Loop1, A1->getType());
 2050   const SCEV *N2 = collectUpperBound(Loop2, A1->getType());
 2333   unsigned BitWidth = SE->getTypeSizeInBits(Src->getType());
 2761           SE->getZero(A[K].Coeff->getType());
 2764           SE->getZero(A[K].Coeff->getType());
 2830         Bound[K].Iterations, SE->getOne(Bound[K].Iterations->getType()));
 2874         Bound[K].Iterations, SE->getOne(Bound[K].Iterations->getType()));
 2899   return SE->getSMaxExpr(X, SE->getZero(X->getType()));
 2905   return SE->getSMinExpr(X, SE->getZero(X->getType()));
 2915   const SCEV *Zero = SE->getZero(Subscript->getType());
 2929     CI[K].Iterations = collectUpperBound(L, Subscript->getType());
 2999     return SE->getZero(Expr->getType());
lib/Analysis/IVDescriptors.cpp
  796   assert((IK == IK_FpInduction || Step->getType()->isIntegerTy()) &&
  799   assert((IK != IK_FpInduction || Step->getType()->isFloatingPointTy()) &&
lib/Analysis/LoopAccessAnalysis.cpp
  226     const SCEV *EltSizeSCEV = SE->getConstant(ScEnd->getType(), EltSize);
 1373   const SCEV *Step = SE.getConstant(BackedgeTakenCount.getType(), ByteStride);
 1378   uint64_t DistTypeSize = DL.getTypeAllocSize(Dist.getType());
 1379   uint64_t ProductTypeSize = DL.getTypeAllocSize(Product->getType());
 1385     CastedProduct = SE.getZeroExtendExpr(Product, Dist.getType());
 1387     CastedDist = SE.getNoopOrSignExtend(&Dist, Product->getType());
 2318   uint64_t StrideTypeSize = DL.getTypeAllocSize(StrideExpr->getType());
 2319   uint64_t BETypeSize = DL.getTypeAllocSize(BETakenCount->getType());
 2324     CastedStride = SE->getNoopOrSignExtend(StrideExpr, BETakenCount->getType());
 2326     CastedBECount = SE->getZeroExtendExpr(BETakenCount, StrideExpr->getType());
lib/Analysis/LoopCacheAnalysis.cpp
  104                        SE.getOne(BackedgeTakenCount->getType()));
  273     TripCount = SE.getConstant(ElemSize->getType(), DefaultTripCount);
  285     const SCEV *CacheLineSize = SE.getConstant(Stride->getType(), CLS);
  393   const SCEV *CacheLineSize = SE.getConstant(Stride->getType(), CLS);
lib/Analysis/ScalarEvolution.cpp
  246     OS << "(trunc " << *Op->getType() << " " << *Op << " to "
  253     OS << "(zext " << *Op->getType() << " " << *Op << " to "
  260     OS << "(sext " << *Op->getType() << " " << *Op << " to "
  448   assert(Op->getType()->isIntOrPtrTy() && Ty->isIntOrPtrTy() &&
  455   assert(Op->getType()->isIntOrPtrTy() && Ty->isIntOrPtrTy() &&
  462   assert(Op->getType()->isIntOrPtrTy() && Ty->isIntOrPtrTy() &&
  979     Type *Ty = Denominator->getType();
  980     if (Ty != StartQ->getType() || Ty != StartR->getType() ||
  980     if (Ty != StartQ->getType() || Ty != StartR->getType() ||
  981         Ty != StepQ->getType() || Ty != StepR->getType())
  981         Ty != StepQ->getType() || Ty != StepR->getType())
  991     Type *Ty = Denominator->getType();
  998       if (Ty != Q->getType() || Ty != R->getType())
  998       if (Ty != Q->getType() || Ty != R->getType())
 1017     Type *Ty = Denominator->getType();
 1022       if (Ty != Op->getType())
 1039       if (Ty != Q->getType())
 1089     Zero = SE.getZero(Denominator->getType());
 1090     One = SE.getOne(Denominator->getType());
 1212     const SCEV *S = SE.getMinusSCEV(It, SE.getConstant(It->getType(), i));
 1256   assert(getTypeSizeInBits(Op->getType()) > getTypeSizeInBits(Ty) &&
 1348   unsigned BitWidth = SE->getTypeSizeInBits(Step->getType());
 1368   unsigned BitWidth = SE->getTypeSizeInBits(Step->getType());
 1639   assert(getTypeSizeInBits(Op->getType()) < getTypeSizeInBits(Ty) &&
 1722             getTruncateOrZeroExtend(MaxBECount, Start->getType(), Depth);
 1724             CastedMaxBECount, MaxBECount->getType(), Depth);
 1945   assert(getTypeSizeInBits(Op->getType()) < getTypeSizeInBits(Ty) &&
 2066             getTruncateOrZeroExtend(MaxBECount, Start->getType(), Depth);
 2068             CastedMaxBECount, MaxBECount->getType(), Depth);
 2199   assert(getTypeSizeInBits(Op->getType()) < getTypeSizeInBits(Ty) &&
 2213     if (getTypeSizeInBits(NewOp->getType()) < getTypeSizeInBits(Ty))
 2414   Type *ETy = getEffectiveSCEVType(Ops[0]->getType());
 2416     assert(getEffectiveSCEVType(Ops[i]->getType()) == ETy &&
 2454   Type *Ty = Ops[0]->getType();
 2485       return T->getOperand()->getType();
 2489         return T->getOperand()->getType();
 2500         if (T->getOperand()->getType() != SrcType) {
 2512             if (T->getOperand()->getType() != SrcType) {
 2915   Type *ETy = getEffectiveSCEVType(Ops[0]->getType());
 2917     assert(getEffectiveSCEVType(Ops[i]->getType()) == ETy &&
 3160   assert(getEffectiveSCEVType(LHS->getType()) ==
 3161          getEffectiveSCEVType(RHS->getType()) &&
 3168       return getZero(LHS->getType()); // X urem 1 --> 0
 3172       Type *FullTy = LHS->getType();
 3189   assert(getEffectiveSCEVType(LHS->getType()) ==
 3190          getEffectiveSCEVType(RHS->getType()) &&
 3203       Type *Ty = LHS->getType();
 3414   Type *ETy = getEffectiveSCEVType(Operands[0]->getType());
 3416     assert(getEffectiveSCEVType(Operands[i]->getType()) == ETy &&
 3491   Type *IntPtrTy = getEffectiveSCEVType(BaseExpr->getType());
 3554   Type *ETy = getEffectiveSCEVType(Ops[0]->getType());
 3556     assert(getEffectiveSCEVType(Ops[i]->getType()) == ETy &&
 3952   Type *Ty = V->getType();
 3997   Type *Ty = V->getType();
 4009     return getZero(LHS->getType());
 4045   Type *SrcTy = V->getType();
 4057   Type *SrcTy = V->getType();
 4069   Type *SrcTy = V->getType();
 4081   Type *SrcTy = V->getType();
 4093   Type *SrcTy = V->getType();
 4105   Type *SrcTy = V->getType();
 4120   if (getTypeSizeInBits(LHS->getType()) > getTypeSizeInBits(RHS->getType()))
 4120   if (getTypeSizeInBits(LHS->getType()) > getTypeSizeInBits(RHS->getType()))
 4121     PromotedRHS = getZeroExtendExpr(RHS, LHS->getType());
 4123     PromotedLHS = getNoopOrZeroExtend(LHS, RHS->getType());
 4145       MaxType = getWiderType(MaxType, S->getType());
 4147       MaxType = S->getType();
 4160   if (!V->getType()->isPointerTy())
 4168       if (NAryOp->getType()->isPointerTy()) {
 4601   unsigned NewBits = SE.getTypeSizeInBits(Op->getType());
 4838         CreateSignExtend ? getSignExtendExpr(TruncatedExpr, Expr->getType())
 4839                          : getZeroExtendExpr(TruncatedExpr, Expr->getType());
 5448     return OpRes == getTypeSizeInBits(E->getOperand()->getType())
 5455     return OpRes == getTypeSizeInBits(E->getOperand()->getType())
 5554   unsigned BitWidth = getTypeSizeInBits(S->getType());
 5679           getTypeSizeInBits(MaxBECount->getType()) <= BitWidth) {
 5823          getTypeSizeInBits(MaxBECount->getType()) <= BitWidth &&
 5826   MaxBECount = getNoopOrZeroExtend(MaxBECount, Start->getType());
 5868       assert(SE.getTypeSizeInBits(S->getType()) == BitWidth &&
 6342                 Type *Z0Ty = Z0->getType();
 6581   const SCEV *TCExpr = getAddExpr(ExitCount, getOne(ExitCount->getType()));
 8396   assert(BW == SE.getTypeSizeInBits(B->getType()));
 8793     const SCEV *Zero = getZero(Distance->getType());
 8794     const SCEV *One = getOne(Distance->getType());
 9029       RHS = getAddExpr(getConstant(RHS->getType(), 1, true), RHS,
 9034       LHS = getAddExpr(getConstant(RHS->getType(), (uint64_t)-1, true), LHS,
 9042       RHS = getAddExpr(getConstant(RHS->getType(), (uint64_t)-1, true), RHS,
 9047       LHS = getAddExpr(getConstant(RHS->getType(), 1, true), LHS,
 9055       RHS = getAddExpr(getConstant(RHS->getType(), 1, true), RHS,
 9060       LHS = getAddExpr(getConstant(RHS->getType(), (uint64_t)-1, true), LHS);
 9067       RHS = getAddExpr(getConstant(RHS->getType(), (uint64_t)-1, true), RHS);
 9071       LHS = getAddExpr(getConstant(RHS->getType(), 1, true), LHS,
 9427          isKnownPredicate(CmpInst::ICMP_SGE, LHS, getZero(LHS->getType())) &&
 9493     Type *Ty = LatchBECount->getType();
 9718   if (getTypeSizeInBits(LHS->getType()) <
 9719       getTypeSizeInBits(FoundLHS->getType())) {
 9721       LHS = getSignExtendExpr(LHS, FoundLHS->getType());
 9722       RHS = getSignExtendExpr(RHS, FoundLHS->getType());
 9724       LHS = getZeroExtendExpr(LHS, FoundLHS->getType());
 9725       RHS = getZeroExtendExpr(RHS, FoundLHS->getType());
 9727   } else if (getTypeSizeInBits(LHS->getType()) >
 9728       getTypeSizeInBits(FoundLHS->getType())) {
 9730       FoundLHS = getSignExtendExpr(FoundLHS, LHS->getType());
 9731       FoundRHS = getSignExtendExpr(FoundRHS, LHS->getType());
 9733       FoundLHS = getZeroExtendExpr(FoundLHS, LHS->getType());
 9734       FoundRHS = getZeroExtendExpr(FoundRHS, LHS->getType());
 9875     return APInt(getTypeSizeInBits(More->getType()), 0);
 9995     FoundRHSLimit = APInt::getSignedMinValue(getTypeSizeInBits(RHS->getType())) - *RDiff;
10213   assert(getTypeSizeInBits(LHS->getType()) ==
10214              getTypeSizeInBits(RHS->getType()) &&
10216   assert(getTypeSizeInBits(FoundLHS->getType()) ==
10217              getTypeSizeInBits(FoundRHS->getType()) &&
10259     if (getTypeSizeInBits(LHS->getType()) != getTypeSizeInBits(RHS->getType()))
10259     if (getTypeSizeInBits(LHS->getType()) != getTypeSizeInBits(RHS->getType()))
10268     auto *MinusOne = getNegativeSCEV(getOne(RHS->getType()));
10302       if (!Numerator || Numerator->getType() != FoundLHS->getType())
10302       if (!Numerator || Numerator->getType() != FoundLHS->getType())
10311       auto *FRHSTy = FoundRHS->getType();
10486   unsigned BitWidth = getTypeSizeInBits(RHS->getType());
10487   const SCEV *One = getOne(Stride->getType());
10510   unsigned BitWidth = getTypeSizeInBits(RHS->getType());
10511   const SCEV *One = getOne(Stride->getType());
10532   const SCEV *One = getOne(Step->getType());
10675         Start, Stride, RHS, getTypeSizeInBits(LHS->getType()), IsSigned);
10712         Start, Stride, RHS, getTypeSizeInBits(LHS->getType()), IsSigned);
10774   unsigned BitWidth = getTypeSizeInBits(LHS->getType());
11971     if (SE.getTypeSizeInBits(CurBECount->getType()) >
11972         SE.getTypeSizeInBits(NewBECount->getType()))
11973       NewBECount = SE2.getZeroExtendExpr(NewBECount, CurBECount->getType());
11974     else if (SE.getTypeSizeInBits(CurBECount->getType()) <
11975              SE.getTypeSizeInBits(NewBECount->getType()))
11976       CurBECount = SE2.getZeroExtendExpr(CurBECount, NewBECount->getType());
12067   assert(LHS->getType() == RHS->getType() &&
12067   assert(LHS->getType() == RHS->getType() &&
12247   assert(LHS->getType() == RHS->getType() && "LHS and RHS types don't match");
12247   assert(LHS->getType() == RHS->getType() && "LHS and RHS types don't match");
lib/Analysis/ScalarEvolutionAliasAnalysis.cpp
   42   if (SE.getEffectiveSCEVType(AS->getType()) ==
   43       SE.getEffectiveSCEVType(BS->getType())) {
   44     unsigned BitWidth = SE.getTypeSizeInBits(AS->getType());
  107     if (Last->getType()->isPointerTy())
lib/Analysis/ScalarEvolutionExpander.cpp
  252     S = SE.getConstant(S->getType(), 1);
  296     const SCEV *StepRem = SE.getConstant(Step->getType(), 0);
  664     if (LHS.second->getType()->isPointerTy() !=
  665         RHS.second->getType()->isPointerTy())
  666       return LHS.second->getType()->isPointerTy();
  728     } else if (PointerType *PTy = dyn_cast<PointerType>(Op->getType())) {
 1539     if (PointerType *PTy = dyn_cast<PointerType>(Base->getType())) {
 1637                            SE.getEffectiveSCEVType(S->getOperand()->getType()));
 1646                            SE.getEffectiveSCEVType(S->getOperand()->getType()));
 1655                            SE.getEffectiveSCEVType(S->getOperand()->getType()));
 1667     Type *OpTy = S->getOperand(i)->getType();
 1692     Type *OpTy = S->getOperand(i)->getType();
 1717     Type *OpTy = S->getOperand(i)->getType();
 1742     Type *OpTy = S->getOperand(i)->getType();
 1771     assert(SE.getTypeSizeInBits(Ty) == SE.getTypeSizeInBits(SH->getType()) &&
 1795             S->getType() == V->getType() &&
 2189             SE.getAddExpr(S, SE.getConstant(S->getType(), 1)), At, L))
 2230   Value *Expr0 = expandCodeFor(Pred->getLHS(), Pred->getLHS()->getType(), IP);
 2231   Value *Expr1 = expandCodeFor(Pred->getRHS(), Pred->getRHS()->getType(), IP);
 2253   unsigned SrcBits = SE.getTypeSizeInBits(ExitCount->getType());
lib/Analysis/TargetTransformInfo.cpp
   80     if (SE.getTypeSizeInBits(EC->getType()) > CountType->getBitWidth())
lib/CodeGen/HardwareLoops.cpp
  323   if (!ExitCount->getType()->isPointerTy() &&
  324       ExitCount->getType() != CountType)
  334                                   SE.getZero(ExitCount->getType()))) {
lib/CodeGen/SafeStack.cpp
  235   uint64_t BitWidth = SE.getTypeSizeInBits(Expr->getType());
lib/Target/ARM/ARMTargetTransformInfo.cpp
  866                   SE.getOne(BackedgeTakenCount->getType()));
lib/Target/ARM/MVETailPredication.cpp
  390   return Expander.expandCodeFor(Elems, Elems->getType(), InsertPt);
lib/Target/Hexagon/HexagonLoopIdiomRecognition.cpp
 2048   Type *BECountTy = BECount->getType();
lib/Transforms/Scalar/AlignmentFromAssumptions.cpp
  133   DiffSCEV = SE->getNoopOrSignExtend(DiffSCEV, OffSCEV->getType());
  281   unsigned OffSCEVBits = OffSCEV->getType()->getPrimitiveSizeInBits();
lib/Transforms/Scalar/IndVarSimplify.cpp
 1312   if (SE->getTypeSizeInBits(NarrowExpr->getType()) >=
 1697                            SE->getConstant(NarrowSCEV->getType(), 0));
 1736   assert(SE->getEffectiveSCEVType(WideIVExpr->getType()) == WideType &&
 2250   uint64_t BCWidth = SE->getTypeSizeInBits(BECount->getType());
 2267     if (BECount->getType()->isPointerTy() && !Phi->getType()->isPointerTy())
 2343       !ExitCount->getType()->isPointerTy()) {
 2350     Type *OfsTy = SE->getEffectiveSCEVType(IVInit->getType());
 2390     if (SE->getTypeSizeInBits(IVInit->getType())
 2391         > SE->getTypeSizeInBits(ExitCount->getType())) {
 2393         ExitCount = SE->getZeroExtendExpr(ExitCount, IVInit->getType());
 2395         IVInit = SE->getTruncateExpr(IVInit, ExitCount->getType());
 2401       IVLimit = SE->getAddExpr(IVLimit, SE->getOne(IVLimit->getType()));
 2409     Type *LimitTy = ExitCount->getType()->isPointerTy() ?
 2410       IndVar->getType() : ExitCount->getType();
 2768     if (!ExitCount->getType()->isIntegerTy() ||
 2769         !MaxExitCount->getType()->isIntegerTy())
 2773       SE->getWiderType(MaxExitCount->getType(), ExitCount->getType());
 2773       SE->getWiderType(MaxExitCount->getType(), ExitCount->getType());
 2776     assert(MaxExitCount->getType() == ExitCount->getType());
 2776     assert(MaxExitCount->getType() == ExitCount->getType());
 3125     if (SE->getTypeSizeInBits(BackedgeTakenCount->getType()) <
 3126         SE->getTypeSizeInBits(NewBECount->getType()))
 3128                                          BackedgeTakenCount->getType());
 3131                                                  NewBECount->getType());
lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp
  191       assert(Begin->getType() == End->getType() && "ill-typed range!");
  191       assert(Begin->getType() == End->getType() && "ill-typed range!");
  194     Type *getType() const { return Begin->getType(); }
  676   const SCEV *StepPlusOne = SE.getAddExpr(Step, SE.getOne(Step->getType()));
  677   unsigned BitWidth = cast<IntegerType>(BoundSCEV->getType())->getBitWidth();
  683     SE.getMinusSCEV(BoundSCEV, SE.getOne(BoundSCEV->getType()));
  724     SE.getMinusSCEV(Step, SE.getOne(Step->getType()));
  725   unsigned BitWidth = cast<IntegerType>(BoundSCEV->getType())->getBitWidth();
  895                                       SE.getOne(RightSCEV->getType()));
  900                                       SE.getOne(RightSCEV->getType()));
  959           RightSCEV = SE.getAddExpr(RightSCEV, SE.getOne(RightSCEV->getType()));
  963           RightSCEV = SE.getAddExpr(RightSCEV, SE.getOne(RightSCEV->getType()));
 1048   IntegerType *Ty = cast<IntegerType>(LatchTakenCount->getType());
 1265   auto *RangeTy = Range.getBegin()->getType();
 1406       cast<IntegerType>(Range.getBegin()->getType());
 1572   auto *RCType = cast<IntegerType>(getBegin()->getType());
 1659   const SCEV *Zero = SE.getZero(M->getType());
 1664     const SCEV *One = SE.getOne(X->getType());
lib/Transforms/Scalar/LoopIdiomRecognize.cpp
  917   if (DL->getTypeSizeInBits(BECount->getType()) <
  921           SE->getNegativeSCEV(SE->getOne(BECount->getType())))) {
  923         SE->getAddExpr(BECount, SE->getOne(BECount->getType()), SCEV::FlagNUW),
 2096       !LoopExitCount->getType()->isIntOrPtrTy() ||
 2097       LoopExitCount->getType()->getScalarSizeInBits() >
 2107       LoopExitCount, SE->getOne(LoopExitCount->getType()), SCEV::FlagNUW);
lib/Transforms/Scalar/LoopPredication.cpp
  393   Type *Ty = LHS->getType();
  394   assert(Ty == RHS->getType() && "expandCheck operands have different types?");
  709   assert(Step->getType() ==
  710              CurrLatchCheck.IV->getStepRecurrence(*SE)->getType() &&
lib/Transforms/Scalar/LoopRerollPass.cpp
  898   const SCEV *ScaleSCEV = SE->getConstant(StepSCEV->getType(), N);
 1456     auto Zero = SE->getZero(BackedgeTakenCount->getType());
 1457     auto One = SE->getOne(BackedgeTakenCount->getType());
 1460         Expander.expandCodeFor(NewIVSCEV, BackedgeTakenCount->getType(),
 1465         TripCount, SE->getConstant(BackedgeTakenCount->getType(), Scale));
 1468         Expander.expandCodeFor(ScaledBECount, BackedgeTakenCount->getType(),
lib/Transforms/Scalar/LoopStrengthReduce.cpp
  428         SE.getEffectiveSCEVType(NewMul->getType())));
  555   return !BaseRegs.empty() ? BaseRegs.front()->getType() :
  556          ScaledReg ? ScaledReg->getType() :
  663     return SE.getConstant(LHS->getType(), 1);
 2259   const SCEV *One = SE.getConstant(BackedgeTakenCount->getType(), 1);
 2431           if (SE.getTypeSizeInBits(A->getType()) !=
 2432               SE.getTypeSizeInBits(B->getType())) {
 2433             if (SE.getTypeSizeInBits(A->getType()) >
 2434                 SE.getTypeSizeInBits(B->getType()))
 2435               B = SE.getSignExtendExpr(B, A->getType());
 2437               A = SE.getSignExtendExpr(A, B->getType());
 2660     Types.insert(SE.getEffectiveSCEVType(Expr->getType()));
 2684       if (SE.getTypeSizeInBits(OldStride->getType()) !=
 2685           SE.getTypeSizeInBits(NewStride->getType())) {
 2686         if (SE.getTypeSizeInBits(OldStride->getType()) >
 2687             SE.getTypeSizeInBits(NewStride->getType()))
 2688           NewStride = SE.getSignExtendExpr(NewStride, OldStride->getType());
 2690           OldStride = SE.getSignExtendExpr(OldStride, NewStride->getType());
 3556       LoopStep->getType()->getScalarSizeInBits())
 3697         CombinedIntegerType = SE.getEffectiveSCEVType(BaseReg->getType());
 3785       const SCEV *NewG = SE.getAddExpr(SE.getConstant(G->getType(), Offset), G);
 3877   if (Base.ScaledReg && Base.ScaledReg->getType()->isPointerTy())
 3880     if (BaseReg->getType()->isPointerTy())
 4190     Type *IntTy = SE.getEffectiveSCEVType(OrigReg->getType());
 5205             SE.getMulExpr(ScaledS, SE.getConstant(ScaledS->getType(), F.Scale));
lib/Transforms/Scalar/StraightLineStrengthReduce.cpp
  286          TTI->isLegalAddressingMode(Base->getType(), nullptr, 0, true,
  533     IndexExprs[I - 1] = SE->getZero(OrigIndexExpr->getType());
lib/Transforms/Utils/LoopUnrollPeel.cpp
  232         SE.getConstant(LeftSCEV->getType(), NewPeelCount), SE);
lib/Transforms/Utils/LoopUnrollRuntime.cpp
  619       !BECountSC->getType()->isIntegerTy()) {
  624   unsigned BEWidth = cast<IntegerType>(BECountSC->getType())->getBitWidth();
  628       SE->getAddExpr(BECountSC, SE->getConstant(BECountSC->getType(), 1));
  713   Value *TripCount = Expander.expandCodeFor(TripCountSC, TripCountSC->getType(),
  715   Value *BECount = Expander.expandCodeFor(BECountSC, BECountSC->getType(),
lib/Transforms/Utils/LoopUtils.cpp
  730       !InnerLoopBECountSC->getType()->isIntegerTy())
 1000   const SCEV *Zero = SE.getZero(S->getType());
 1007   const SCEV *Zero = SE.getZero(S->getType());
 1014   unsigned BitWidth = cast<IntegerType>(S->getType())->getBitWidth();
 1025   unsigned BitWidth = cast<IntegerType>(S->getType())->getBitWidth();
lib/Transforms/Utils/SimplifyIndVar.cpp
  428   auto *NarrowTy = cast<IntegerType>(LHS->getType());
lib/Transforms/Vectorize/LoopVectorize.cpp
 1828     Step = Exp.expandCodeFor(ID.getStep(), ID.getStep()->getType(),
 2574   if (BackedgeTakenCount->getType()->getPrimitiveSizeInBits() >
 2581       BackedgeTakenCount, SE->getOne(BackedgeTakenCount->getType()));
 2590   TripCount = Exp.expandCodeFor(ExitCount, ExitCount->getType(),
 2802   assert(Index->getType() == Step->getType() &&
 2852     assert(Step->getType()->isFloatingPointTy() && "Expected FP Step value");
 3017       Type *StepType = II.getStep()->getType();
 3143           !II.getStep()->getType()->isIntegerTy()
 3145                              II.getStep()->getType())
 3146               : B.CreateSExtOrTrunc(CountMinusOne, II.getStep()->getType());
 4022     PtrInd = Builder.CreateSExtOrTrunc(PtrInd, II.getStep()->getType());
tools/polly/lib/Analysis/ScopBuilder.cpp
  436     const SCEV *RHSSCEV = SE.getZero(LHSSCEV->getType());
 2344   auto *SizeSCEV = SE.getConstant(Expr->getType(), Size);
 2440         Size = SE.getMulExpr(Size, SE.getConstant(Size->getType(), Int[0]));
tools/polly/lib/Analysis/ScopInfo.cpp
 2263   return Affinator.getPwAff(SE->getZero(E->getType()), BB);
tools/polly/lib/CodeGen/IslExprBuilder.cpp
  319         expandCodeFor(S, SE, DL, "polly", DimSCEV, DimSCEV->getType(),
tools/polly/lib/CodeGen/IslNodeBuilder.cpp
 1071             V = UndefValue::get(ParamSCEV->getType());
 1082           V = UndefValue::get(ParamSCEV->getType());
 1568   return expandCodeFor(S, SE, DL, "polly", Expr, Expr->getType(),
tools/polly/lib/Support/SCEVAffinator.cpp
  137   isl::pw_aff PWAMod = addModuloSemantic(PWAC.first, Expr->getType());
  182   unsigned Width = TD.getTypeSizeInBits(Expr->getType());
  220       PWAC.first = addModuloSemantic(PWAC.first, Expr->getType());
  228       PWAC.first = addModuloSemantic(PWAC.first, Expr->getType());
  353   unsigned Width = TD.getTypeSizeInBits(Op->getType());
  417       SE.getAddRecExpr(SE.getConstant(Expr->getStart()->getType(), 0),
tools/polly/lib/Support/SCEVValidator.cpp
  272         SE.getConstant(Expr->getStart()->getType(), 0),
  714   auto *ConstPart = cast<SCEVConstant>(SE.getConstant(S->getType(), 1));
  717     return std::make_pair(Constant, SE.getConstant(S->getType(), 1));
unittests/Analysis/ScalarEvolutionTest.cpp
 1483       unsigned ExpectedCanonicalIVWidth = SE.getTypeSizeInBits(AR->getType());
 1530       unsigned ExpectedCanonicalIVWidth = SE.getTypeSizeInBits(AR->getType());
 1611       EXPECT_EQ(ARBitWidth, SE.getTypeSizeInBits(AR->getType()));