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,
247 static bool isAddFoldable(const SCEV *Base, ConstantInt *Index, Value *Stride, in isAddFoldable()
269 ConstantInt *ConstIdx = dyn_cast<ConstantInt>(*I); in hasOnlyOneNonZeroIndex()
301 Candidate::Kind CT, const SCEV *B, ConstantInt *Idx, Value *S, in allocateCandidatesAndFindBasis()
367 ConstantInt *Idx = nullptr; in allocateCandidatesAndFindBasisForAdd()
374 Idx = ConstantInt::get(Idx->getContext(), One << Idx->getValue()); in allocateCandidatesAndFindBasisForAdd()
378 ConstantInt *One = ConstantInt::get(cast<IntegerType>(I->getType()), 1); in allocateCandidatesAndFindBasisForAdd()
385 static bool matchesAdd(Value *A, Value *&B, ConstantInt *&C) { in matchesAdd()
391 static bool matchesOr(Value *A, Value *&B, ConstantInt *&C) { in matchesOr()
399 ConstantInt *Idx = nullptr; in allocateCandidatesAndFindBasisForMul()
412 ConstantInt *Zero = ConstantInt::get(cast<IntegerType>(I->getType()), 0); in allocateCandidatesAndFindBasisForMul()
435 const SCEV *B, ConstantInt *Idx, Value *S, uint64_t ElementSize, in allocateCandidatesAndFindBasisForGEP()
442 ConstantInt *ScaledIdx = ConstantInt::get( in allocateCandidatesAndFindBasisForGEP()
453 Base, ConstantInt::get(cast<IntegerType>(ArrayIdx->getType()), 1), in factorArrayIndex()
456 ConstantInt *RHS = nullptr; in factorArrayIndex()
476 ConstantInt *PowerOf2 = in factorArrayIndex()
477 ConstantInt::get(RHS->getContext(), One << RHS->getValue()); in factorArrayIndex()
575 ConstantInt *Exponent = ConstantInt::get(DeltaType, IndexOffset.logBase2()); in emitBump()
580 ConstantInt *Exponent = in emitBump()
581 ConstantInt::get(DeltaType, (-IndexOffset).logBase2()); in emitBump()
584 Constant *Delta = ConstantInt::get(DeltaType, IndexOffset); in emitBump()