Lines Matching refs:ConstantInt

94     Candidate(Kind CT, const SCEV *B, ConstantInt *Idx, Value *S,  in Candidate()
103 ConstantInt *Index;
176 void allocateCandidatesAndFindBasisForGEP(const SCEV *B, ConstantInt *Idx,
182 ConstantInt *Idx, Value *S,
255 if (ConstantInt *ConstIdx = dyn_cast<ConstantInt>(*I)) { in isGEPFoldable()
267 uint64_t Field = cast<ConstantInt>(*I)->getZExtValue(); in isGEPFoldable()
278 static bool isAddFoldable(const SCEV *Base, ConstantInt *Index, Value *Stride, in isAddFoldable()
298 ConstantInt *ConstIdx = dyn_cast<ConstantInt>(*I); in hasOnlyOneNonZeroIndex()
330 Candidate::Kind CT, const SCEV *B, ConstantInt *Idx, Value *S, in allocateCandidatesAndFindBasis()
396 ConstantInt *Idx = nullptr; in allocateCandidatesAndFindBasisForAdd()
403 Idx = ConstantInt::get(Idx->getContext(), One << Idx->getValue()); in allocateCandidatesAndFindBasisForAdd()
407 ConstantInt *One = ConstantInt::get(cast<IntegerType>(I->getType()), 1); in allocateCandidatesAndFindBasisForAdd()
414 static bool matchesAdd(Value *A, Value *&B, ConstantInt *&C) { in matchesAdd()
420 static bool matchesOr(Value *A, Value *&B, ConstantInt *&C) { in matchesOr()
428 ConstantInt *Idx = nullptr; in allocateCandidatesAndFindBasisForMul()
441 ConstantInt *Zero = ConstantInt::get(cast<IntegerType>(I->getType()), 0); in allocateCandidatesAndFindBasisForMul()
464 const SCEV *B, ConstantInt *Idx, Value *S, uint64_t ElementSize, in allocateCandidatesAndFindBasisForGEP()
471 ConstantInt *ScaledIdx = ConstantInt::get( in allocateCandidatesAndFindBasisForGEP()
482 Base, ConstantInt::get(cast<IntegerType>(ArrayIdx->getType()), 1), in factorArrayIndex()
485 ConstantInt *RHS = nullptr; in factorArrayIndex()
505 ConstantInt *PowerOf2 = in factorArrayIndex()
506 ConstantInt::get(RHS->getContext(), One << RHS->getValue()); in factorArrayIndex()
594 ConstantInt *Exponent = ConstantInt::get(DeltaType, IndexOffset.logBase2()); in emitBump()
599 ConstantInt *Exponent = in emitBump()
600 ConstantInt::get(DeltaType, (-IndexOffset).logBase2()); in emitBump()
603 Constant *Delta = ConstantInt::get(DeltaType, IndexOffset); in emitBump()