Lines Matching refs:AccessTy
701 MemAccessTy AccessTy(Inst->getType(), MemAccessTy::UnknownAddressSpace);
703 AccessTy.MemTy = SI->getOperand(0)->getType();
704 AccessTy.AddrSpace = SI->getPointerAddressSpace();
706 AccessTy.AddrSpace = LI->getPointerAddressSpace();
716 AccessTy.MemTy = II->getArgOperand(0)->getType();
723 if (PointerType *PTy = dyn_cast<PointerType>(AccessTy.MemTy))
724 AccessTy.MemTy = PointerType::get(IntegerType::get(PTy->getContext(), 1),
727 return AccessTy;
1219 MemAccessTy AccessTy;
1251 : Kind(K), AccessTy(AT), MinOffset(INT64_MAX), MaxOffset(INT64_MIN),
1342 if (AccessTy.MemTy->isPointerTy())
1345 OS << *AccessTy.MemTy;
1348 OS << " in addrspace(" << AccessTy.AddrSpace << ')';
1373 LSRUse::KindType Kind, MemAccessTy AccessTy,
1378 return TTI.isLegalAddressingMode(AccessTy.MemTy, BaseGV, BaseOffset,
1379 HasBaseReg, Scale, AccessTy.AddrSpace);
1426 LSRUse::KindType Kind, MemAccessTy AccessTy,
1439 return isAMCompletelyFolded(TTI, Kind, AccessTy, BaseGV, MinOffset,
1441 isAMCompletelyFolded(TTI, Kind, AccessTy, BaseGV, MaxOffset,
1447 LSRUse::KindType Kind, MemAccessTy AccessTy,
1457 return isAMCompletelyFolded(TTI, MinOffset, MaxOffset, Kind, AccessTy,
1464 MemAccessTy AccessTy, GlobalValue *BaseGV,
1467 return isAMCompletelyFolded(TTI, MinOffset, MaxOffset, Kind, AccessTy, BaseGV,
1472 isAMCompletelyFolded(TTI, MinOffset, MaxOffset, Kind, AccessTy,
1478 MemAccessTy AccessTy, const Formula &F) {
1479 return isLegalUse(TTI, MinOffset, MaxOffset, Kind, AccessTy, F.BaseGV,
1486 LU.AccessTy, F.BaseGV, F.BaseOffset, F.HasBaseReg,
1498 LU.AccessTy, F))
1505 LU.AccessTy.MemTy, F.BaseGV, F.BaseOffset + LU.MinOffset, F.HasBaseReg,
1506 F.Scale, LU.AccessTy.AddrSpace);
1508 LU.AccessTy.MemTy, F.BaseGV, F.BaseOffset + LU.MaxOffset, F.HasBaseReg,
1509 F.Scale, LU.AccessTy.AddrSpace);
1527 LSRUse::KindType Kind, MemAccessTy AccessTy,
1544 return isAMCompletelyFolded(TTI, Kind, AccessTy, BaseGV, BaseOffset,
1551 MemAccessTy AccessTy, const SCEV *S,
1571 return isAMCompletelyFolded(TTI, MinOffset, MaxOffset, Kind, AccessTy, BaseGV,
1707 LSRUse::KindType Kind, MemAccessTy AccessTy);
1710 MemAccessTy AccessTy);
2157 MemAccessTy AccessTy = getAccessType(UI->getUser());
2159 if (TTI.isLegalAddressingMode(AccessTy.MemTy, /*BaseGV=*/nullptr,
2162 AccessTy.AddrSpace))
2165 if (TTI.isLegalAddressingMode(AccessTy.MemTy, /*BaseGV=*/nullptr,
2168 AccessTy.AddrSpace))
2224 MemAccessTy AccessTy) {
2227 MemAccessTy NewAccessTy = AccessTy;
2239 if (AccessTy != LU.AccessTy)
2240 NewAccessTy = MemAccessTy::getUnknown(AccessTy.MemTy->getContext());
2259 LU.AccessTy = NewAccessTy;
2270 MemAccessTy AccessTy) {
2275 if (!isAlwaysFoldable(TTI, Kind, AccessTy, /*BaseGV=*/ nullptr,
2287 if (reconcileNewOffset(LU, Offset, /*HasBaseReg=*/true, Kind, AccessTy))
2295 Uses.push_back(LSRUse(Kind, AccessTy));
2333 LU.Kind == OrigLU.Kind && OrigLU.AccessTy == LU.AccessTy &&
2837 MemAccessTy AccessTy = getAccessType(UserInst);
2839 if (!isAlwaysFoldable(TTI, LSRUse::Address, AccessTy, /*BaseGV=*/nullptr,
2967 MemAccessTy AccessTy;
2970 AccessTy = getAccessType(LF.UserInst);
3013 std::pair<size_t, int64_t> P = getUse(S, Kind, AccessTy);
3071 assert(isLegalUse(TTI, LU.MinOffset, LU.MaxOffset, LU.Kind, LU.AccessTy, F) &&
3260 LU.AccessTy, *J, Base.getNumRegs() > 1))
3273 LU.AccessTy, InnerAddOps[0], Base.getNumRegs() > 1))
3377 if (!isLegalUse(TTI, LU.MinOffset, LU.MaxOffset, LU.Kind, LU.AccessTy, F))
3408 LU.AccessTy, F)) {
3433 if (!isLegalUse(TTI, LU.MinOffset, LU.MaxOffset, LU.Kind, LU.AccessTy, F))
3504 if (!isLegalUse(TTI, Offset, Offset, LU.Kind, LU.AccessTy, F))
3564 if (!isLegalUse(TTI, LU.MinOffset, LU.MaxOffset, LU.Kind, LU.AccessTy,
3570 LU.AccessTy, Base) &&
3767 if (!isLegalUse(TTI, LU.MinOffset, LU.MaxOffset, LU.Kind, LU.AccessTy,
3793 LU.Kind, LU.AccessTy, NewF)) {
4068 LU.Kind, LU.AccessTy))
4099 LUThatHas->Kind, LUThatHas->AccessTy, F)) {
4870 assert(isLegalUse(TTI, LU.MinOffset, LU.MaxOffset, LU.Kind, LU.AccessTy,