Lines Matching refs:ConstantInt
143 Candidate(Kind CT, const SCEV *B, ConstantInt *Idx, Value *S, in Candidate()
154 ConstantInt *Index = nullptr;
218 void allocateCandidatesAndFindBasisForGEP(const SCEV *B, ConstantInt *Idx,
225 ConstantInt *Idx, Value *S,
294 static bool isAddFoldable(const SCEV *Base, ConstantInt *Index, Value *Stride, in isAddFoldable()
316 ConstantInt *ConstIdx = dyn_cast<ConstantInt>(Idx); in hasOnlyOneNonZeroIndex()
348 Candidate::Kind CT, const SCEV *B, ConstantInt *Idx, Value *S, in allocateCandidatesAndFindBasis()
414 ConstantInt *Idx = nullptr; in allocateCandidatesAndFindBasisForAdd()
421 Idx = ConstantInt::get(Idx->getContext(), One << Idx->getValue()); in allocateCandidatesAndFindBasisForAdd()
425 ConstantInt *One = ConstantInt::get(cast<IntegerType>(I->getType()), 1); in allocateCandidatesAndFindBasisForAdd()
432 static bool matchesAdd(Value *A, Value *&B, ConstantInt *&C) { in matchesAdd()
438 static bool matchesOr(Value *A, Value *&B, ConstantInt *&C) { in matchesOr()
446 ConstantInt *Idx = nullptr; in allocateCandidatesAndFindBasisForMul()
459 ConstantInt *Zero = ConstantInt::get(cast<IntegerType>(I->getType()), 0); in allocateCandidatesAndFindBasisForMul()
482 const SCEV *B, ConstantInt *Idx, Value *S, uint64_t ElementSize, in allocateCandidatesAndFindBasisForGEP()
489 ConstantInt *ScaledIdx = ConstantInt::get( in allocateCandidatesAndFindBasisForGEP()
500 Base, ConstantInt::get(cast<IntegerType>(ArrayIdx->getType()), 1), in factorArrayIndex()
503 ConstantInt *RHS = nullptr; in factorArrayIndex()
523 ConstantInt *PowerOf2 = in factorArrayIndex()
524 ConstantInt::get(RHS->getContext(), One << RHS->getValue()); in factorArrayIndex()
620 ConstantInt *Exponent = ConstantInt::get(DeltaType, IndexOffset.logBase2()); in emitBump()
625 ConstantInt *Exponent = in emitBump()
626 ConstantInt::get(DeltaType, (-IndexOffset).logBase2()); in emitBump()
629 Constant *Delta = ConstantInt::get(DeltaType, IndexOffset); in emitBump()