Lines Matching refs:Value
94 Candidate(Kind CT, const SCEV *B, ConstantInt *Idx, Value *S,
104 Value *Stride;
164 void allocateCandidatesAndFindBasisForAdd(Value *LHS, Value *RHS,
170 void allocateCandidatesAndFindBasisForMul(Value *LHS, Value *RHS,
177 Value *S, uint64_t ElementSize,
182 ConstantInt *Idx, Value *S,
189 void factorArrayIndex(Value *ArrayIdx, const SCEV *Base, uint64_t ElementSize,
195 static Value *emitBump(const Candidate &Basis, const Candidate &C,
278 static bool isAddFoldable(const SCEV *Base, ConstantInt *Index, Value *Stride,
330 Candidate::Kind CT, const SCEV *B, ConstantInt *Idx, Value *S,
387 Value *LHS = I->getOperand(0), *RHS = I->getOperand(1);
394 Value *LHS, Value *RHS, Instruction *I) {
395 Value *S = nullptr;
414 static bool matchesAdd(Value *A, Value *&B, ConstantInt *&C) {
420 static bool matchesOr(Value *A, Value *&B, ConstantInt *&C) {
426 Value *LHS, Value *RHS, Instruction *I) {
427 Value *B = nullptr;
455 Value *LHS = I->getOperand(0), *RHS = I->getOperand(1);
464 const SCEV *B, ConstantInt *Idx, Value *S, uint64_t ElementSize,
476 void StraightLineStrengthReduce::factorArrayIndex(Value *ArrayIdx,
484 Value *LHS = nullptr;
534 Value *ArrayIdx = GEP->getOperand(I);
537 // When ArrayIdx is the sext of a value, we try to factor that value as
540 Value *TruncatedArrayIdx = nullptr;
556 Value *StraightLineStrengthReduce::emitBump(const Candidate &Basis,
591 Value *ExtendedStride = Builder.CreateSExtOrTrunc(C.Stride, DeltaType);
624 Value *Bump = emitBump(Basis, C, Builder, DL, BumpWithUglyGEP);
625 Value *Reduced = nullptr; // equivalent to but weaker than C.Ins
715 Value *Op = UnlinkedInst->getOperand(I);