Lines Matching refs:AccessTy

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