Lines Matching defs:BaseOffset
231 int64_t BaseOffset;
253 : BaseGV(0), BaseOffset(0), HasBaseReg(false), Scale(0), ScaledReg(0),
399 if (BaseOffset != 0) {
401 OS << BaseOffset;
960 int64_t Offset = (uint64_t)*I + F.BaseOffset;
1309 Type *AccessTy, GlobalValue *BaseGV, int64_t BaseOffset,
1313 return TTI.isLegalAddressingMode(AccessTy, BaseGV, BaseOffset, HasBaseReg, Scale);
1325 if (Scale != 0 && HasBaseReg && BaseOffset != 0)
1335 if (BaseOffset != 0) {
1337 // ICmpZero BaseReg + BaseOffset => ICmp BaseReg, -BaseOffset
1338 // ICmpZero -1*ScaleReg + BaseOffset => ICmp ScaleReg, BaseOffset
1342 BaseOffset = -(uint64_t)BaseOffset;
1343 return TTI.isLegalICmpImmediate(BaseOffset);
1351 return !BaseGV && Scale == 0 && BaseOffset == 0;
1355 return !BaseGV && (Scale == 0 || Scale == -1) && BaseOffset == 0;
1363 GlobalValue *BaseGV, int64_t BaseOffset, bool HasBaseReg,
1366 if (((int64_t)((uint64_t)BaseOffset + MinOffset) > BaseOffset) !=
1369 MinOffset = (uint64_t)BaseOffset + MinOffset;
1370 if (((int64_t)((uint64_t)BaseOffset + MaxOffset) > BaseOffset) !=
1373 MaxOffset = (uint64_t)BaseOffset + MaxOffset;
1384 F.BaseOffset, F.HasBaseReg, F.Scale);
1408 F.BaseGV, F.BaseOffset, F.HasBaseReg, 1);
1423 F.BaseOffset + LU.MinOffset,
1427 F.BaseOffset + LU.MaxOffset,
1449 GlobalValue *BaseGV, int64_t BaseOffset,
1452 if (BaseOffset == 0 && !BaseGV) return true;
1465 return isLegalUse(TTI, Kind, AccessTy, BaseGV, BaseOffset, HasBaseReg, Scale);
1477 int64_t BaseOffset = ExtractImmediate(S, SE);
1484 if (BaseOffset == 0 && !BaseGV) return true;
1491 BaseOffset, HasBaseReg, Scale);
2103 /*BaseOffset=*/ 0,
2108 /*BaseOffset=*/ 0,
2286 if (F.BaseOffset == 0)
3323 F.BaseOffset = (uint64_t)Base.BaseOffset - *I;
3343 F.BaseOffset = (uint64_t)F.BaseOffset + Imm;
3373 if (Base.BaseOffset == INT64_MIN && Factor == -1)
3375 int64_t NewBaseOffset = (uint64_t)Base.BaseOffset * Factor;
3376 if (NewBaseOffset / Factor != Base.BaseOffset)
3388 F.BaseOffset = NewBaseOffset;
3395 F.BaseOffset = (uint64_t)F.BaseOffset + Offset - LU.MinOffset;
3461 !Base.HasBaseReg && Base.BaseOffset == 0 && !Base.BaseGV)
3643 int64_t Offset = (uint64_t)F.BaseOffset + Imm * (uint64_t)F.Scale;
3649 NewF.BaseOffset = Offset;
3660 (NewF.BaseOffset < 0) &&
3662 .ule(abs64(NewF.BaseOffset)))
3674 NewF.BaseOffset = (uint64_t)NewF.BaseOffset + Imm;
3691 if ((C->getValue()->getValue() + NewF.BaseOffset).abs().slt(
3692 abs64(NewF.BaseOffset)) &&
3694 NewF.BaseOffset).countTrailingZeros() >=
3695 countTrailingZeros<uint64_t>(NewF.BaseOffset))
3894 NewF.BaseOffset += C->getValue()->getSExtValue();
3952 if (F.BaseOffset == 0 || F.Scale != 0)
3959 if (!reconcileNewOffset(*LUThatHas, F.BaseOffset, /*HasBaseReg=*/ false,
3973 Fixup.Offset += F.BaseOffset;
4451 int64_t Offset = (uint64_t)F.BaseOffset + LF.Offset;