Lines Matching defs:BaseGV
40 // TODO: Should the addressing mode BaseGV be changed to a ConstantExpr instead
247 GlobalValue *BaseGV;
280 : BaseGV(nullptr), BaseOffset(0), HasBaseReg(false), Scale(0),
436 BaseGV ? BaseGV->getType() :
468 if (BaseGV) {
470 BaseGV
1034 if (F.BaseGV)
1374 GlobalValue *BaseGV, int64_t BaseOffset,
1378 return TTI.isLegalAddressingMode(AccessTy.MemTy, BaseGV, BaseOffset,
1384 if (BaseGV)
1414 return !BaseGV && Scale == 0 && BaseOffset == 0;
1418 return !BaseGV && (Scale == 0 || Scale == -1) && BaseOffset == 0;
1427 GlobalValue *BaseGV, int64_t BaseOffset,
1439 return isAMCompletelyFolded(TTI, Kind, AccessTy, BaseGV, MinOffset,
1441 isAMCompletelyFolded(TTI, Kind, AccessTy, BaseGV, MaxOffset,
1458 F.BaseGV, F.BaseOffset, F.HasBaseReg, F.Scale);
1464 MemAccessTy AccessTy, GlobalValue *BaseGV,
1467 return isAMCompletelyFolded(TTI, MinOffset, MaxOffset, Kind, AccessTy, BaseGV,
1473 BaseGV, BaseOffset, true, 0));
1479 return isLegalUse(TTI, MinOffset, MaxOffset, Kind, AccessTy, F.BaseGV,
1486 LU.AccessTy, F.BaseGV, F.BaseOffset, F.HasBaseReg,
1505 LU.AccessTy.MemTy, F.BaseGV, F.BaseOffset + LU.MinOffset, F.HasBaseReg,
1508 LU.AccessTy.MemTy, F.BaseGV, F.BaseOffset + LU.MaxOffset, F.HasBaseReg,
1528 GlobalValue *BaseGV, int64_t BaseOffset,
1531 if (BaseOffset == 0 && !BaseGV) return true;
1544 return isAMCompletelyFolded(TTI, Kind, AccessTy, BaseGV, BaseOffset,
1559 GlobalValue *BaseGV = ExtractSymbol(S, SE);
1565 if (BaseOffset == 0 && !BaseGV) return true;
1571 return isAMCompletelyFolded(TTI, MinOffset, MaxOffset, Kind, AccessTy, BaseGV,
2159 if (TTI.isLegalAddressingMode(AccessTy.MemTy, /*BaseGV=*/nullptr,
2165 if (TTI.isLegalAddressingMode(AccessTy.MemTy, /*BaseGV=*/nullptr,
2245 if (!isAlwaysFoldable(TTI, Kind, NewAccessTy, /*BaseGV=*/nullptr,
2250 if (!isAlwaysFoldable(TTI, Kind, NewAccessTy, /*BaseGV=*/nullptr,
2275 if (!isAlwaysFoldable(TTI, Kind, AccessTy, /*BaseGV=*/ nullptr,
2342 F.BaseGV == OrigF.BaseGV &&
2839 if (!isAlwaysFoldable(TTI, LSRUse::Address, AccessTy, /*BaseGV=*/nullptr,
3376 F.BaseGV = GV;
3390 if (Base.BaseGV) return;
3473 assert(!Base.BaseGV && "ICmpZero use is not legal!");
3579 !Base.HasBaseReg && Base.BaseOffset == 0 && !Base.BaseGV)
3609 if (Base.BaseGV) return;
4018 if (!F.BaseGV) {
4020 NewF.BaseGV = GV;
4536 if (F.BaseGV) {
4543 Ops.push_back(SE.getUnknown(F.BaseGV));
4596 assert(!F.BaseGV && "ICmp does not support folding a global value and "