Lines Matching refs:ConstantInt
111 Candidate(Kind CT, const SCEV *B, ConstantInt *Idx, Value *S,
122 ConstantInt *Index = nullptr;
205 void allocateCandidatesAndFindBasisForGEP(const SCEV *B, ConstantInt *Idx,
212 ConstantInt *Idx, Value *S,
283 static bool isAddFoldable(const SCEV *Base, ConstantInt *Index, Value *Stride,
305 ConstantInt *ConstIdx = dyn_cast<ConstantInt>(*I);
337 Candidate::Kind CT, const SCEV *B, ConstantInt *Idx, Value *S,
403 ConstantInt *Idx = nullptr;
410 Idx = ConstantInt::get(Idx->getContext(), One << Idx->getValue());
414 ConstantInt *One = ConstantInt::get(cast<IntegerType>(I->getType()), 1);
421 static bool matchesAdd(Value *A, Value *&B, ConstantInt *&C) {
427 static bool matchesOr(Value *A, Value *&B, ConstantInt *&C) {
435 ConstantInt *Idx = nullptr;
448 ConstantInt *Zero = ConstantInt::get(cast<IntegerType>(I->getType()), 0);
471 const SCEV *B, ConstantInt *Idx, Value *S, uint64_t ElementSize,
478 ConstantInt *ScaledIdx = ConstantInt::get(
489 Base, ConstantInt::get(cast<IntegerType>(ArrayIdx->getType()), 1),
492 ConstantInt *RHS = nullptr;
512 ConstantInt *PowerOf2 =
513 ConstantInt::get(RHS->getContext(), One << RHS->getValue());
609 ConstantInt *Exponent = ConstantInt::get(DeltaType, IndexOffset.logBase2());
614 ConstantInt *Exponent =
615 ConstantInt::get(DeltaType, (-IndexOffset).logBase2());
618 Constant *Delta = ConstantInt::get(DeltaType, IndexOffset);