Lines Matching refs:ConstantInt
142 Candidate(Kind CT, const SCEV *B, ConstantInt *Idx, Value *S, in Candidate()
153 ConstantInt *Index = nullptr;
217 void allocateCandidatesAndFindBasisForGEP(const SCEV *B, ConstantInt *Idx,
224 ConstantInt *Idx, Value *S,
293 static bool isAddFoldable(const SCEV *Base, ConstantInt *Index, Value *Stride, in isAddFoldable()
315 ConstantInt *ConstIdx = dyn_cast<ConstantInt>(Idx); in hasOnlyOneNonZeroIndex()
347 Candidate::Kind CT, const SCEV *B, ConstantInt *Idx, Value *S, in allocateCandidatesAndFindBasis()
413 ConstantInt *Idx = nullptr; in allocateCandidatesAndFindBasisForAdd()
420 Idx = ConstantInt::get(Idx->getContext(), One << Idx->getValue()); in allocateCandidatesAndFindBasisForAdd()
424 ConstantInt *One = ConstantInt::get(cast<IntegerType>(I->getType()), 1); in allocateCandidatesAndFindBasisForAdd()
431 static bool matchesAdd(Value *A, Value *&B, ConstantInt *&C) { in matchesAdd()
437 static bool matchesOr(Value *A, Value *&B, ConstantInt *&C) { in matchesOr()
445 ConstantInt *Idx = nullptr; in allocateCandidatesAndFindBasisForMul()
458 ConstantInt *Zero = ConstantInt::get(cast<IntegerType>(I->getType()), 0); in allocateCandidatesAndFindBasisForMul()
481 const SCEV *B, ConstantInt *Idx, Value *S, uint64_t ElementSize, in allocateCandidatesAndFindBasisForGEP()
488 ConstantInt *ScaledIdx = ConstantInt::get( in allocateCandidatesAndFindBasisForGEP()
499 Base, ConstantInt::get(cast<IntegerType>(ArrayIdx->getType()), 1), in factorArrayIndex()
502 ConstantInt *RHS = nullptr; in factorArrayIndex()
522 ConstantInt *PowerOf2 = in factorArrayIndex()
523 ConstantInt::get(RHS->getContext(), One << RHS->getValue()); in factorArrayIndex()
619 ConstantInt *Exponent = ConstantInt::get(DeltaType, IndexOffset.logBase2()); in emitBump()
624 ConstantInt *Exponent = in emitBump()
625 ConstantInt::get(DeltaType, (-IndexOffset).logBase2()); in emitBump()
628 Constant *Delta = ConstantInt::get(DeltaType, IndexOffset); in emitBump()