Home
last modified time | relevance | path

Searched refs:LoadSize (Results 1 – 20 of 20) sorted by relevance

/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPULowerKernelAttributes.cpp137 if (LoadSize == 4) in processUse()
141 if (LoadSize == 4) in processUse()
145 if (LoadSize == 4) in processUse()
149 if (LoadSize == 2) in processUse()
153 if (LoadSize == 2) in processUse()
157 if (LoadSize == 2) in processUse()
161 if (LoadSize == 2) in processUse()
165 if (LoadSize == 2) in processUse()
169 if (LoadSize == 2) in processUse()
178 if (LoadSize == 2) in processUse()
[all …]
H A DAMDGPUTargetTransformInfo.h124 unsigned getLoadVectorFactor(unsigned VF, unsigned LoadSize,
H A DAMDGPUTargetTransformInfo.cpp345 unsigned GCNTTIImpl::getLoadVectorFactor(unsigned VF, unsigned LoadSize, in getLoadVectorFactor() argument
348 unsigned VecRegBitWidth = VF * LoadSize; in getLoadVectorFactor()
351 return 128 / LoadSize; in getLoadVectorFactor()
H A DAMDGPURegisterBankInfo.cpp1061 unsigned LoadSize = LoadTy.getSizeInBits(); in applyMappingLoad() local
1069 if (LoadSize != 32 && (LoadSize != 96 || Subtarget.hasScalarDwordx3Loads())) in applyMappingLoad()
1078 if (LoadSize == 32 && in applyMappingLoad()
1082 if (LoadSize == 32 && in applyMappingLoad()
1093 if (LoadSize == 32) { in applyMappingLoad()
1136 if (LoadSize <= MaxNonSmrdLoadSize) in applyMappingLoad()
1145 assert(LoadSize % MaxNonSmrdLoadSize == 0); in applyMappingLoad()
1350 unsigned LoadSize = Ty.getSizeInBits(); in applyMappingSBufferLoad() local
1352 if (LoadSize == 256 || LoadSize == 512) { in applyMappingSBufferLoad()
1353 NumLoads = LoadSize / 128; in applyMappingSBufferLoad()
H A DSIInstrInfo.cpp580 const unsigned LoadSize = NumBytes / ClusterSize; in shouldClusterMemOps() local
581 const unsigned NumDWORDs = ((LoadSize + 3) / 4) * ClusterSize; in shouldClusterMemOps()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DVNCoercion.cpp189 uint64_t LoadSize = DL.getTypeSizeInBits(LoadTy).getFixedValue(); in analyzeLoadFromClobberingWrite() local
191 if ((WriteSizeInBits & 7) | (LoadSize & 7)) in analyzeLoadFromClobberingWrite()
194 LoadSize /= 8; in analyzeLoadFromClobberingWrite()
324 ShiftAmt = (StoreSize - LoadSize - Offset) * 8; in getStoreValueForLoadHelper()
329 if (LoadSize != StoreSize) in getStoreValueForLoadHelper()
340 unsigned LoadSize = DL.getTypeStoreSize(LoadTy).getFixedValue(); in getValueForLoad() local
341 assert(Offset + LoadSize <= SrcValSize); in getValueForLoad()
353 assert(Offset + LoadSize <= SrcValSize); in getConstantValueForLoad()
373 if (LoadSize != 1) in getMemInstValueForLoad()
379 for (unsigned NumBytesSet = 1; NumBytesSet != LoadSize;) { in getMemInstValueForLoad()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/
H A DExpandMemCmp.cpp94 LoadEntry(unsigned LoadSize, uint64_t Offset) in LoadEntry()
95 : LoadSize(LoadSize), Offset(Offset) { in LoadEntry()
99 unsigned LoadSize; member
158 const unsigned LoadSize = LoadSizes.front(); in computeGreedyLoadSequence() local
169 LoadSequence.push_back({LoadSize, Offset}); in computeGreedyLoadSequence()
170 Offset += LoadSize; in computeGreedyLoadSequence()
172 if (LoadSize > 1) in computeGreedyLoadSequence()
174 Size = Size % LoadSize; in computeGreedyLoadSequence()
240 auto LoadSize = Last.LoadSize + PreLast.LoadSize; in optimiseLoadSequence() local
241 if (find(Options.AllowedTailExpansions, LoadSize) == in optimiseLoadSequence()
[all …]
H A DStackSlotColoring.cpp470 unsigned LoadSize = 0; in RemoveDeadStores() local
472 if (!(LoadReg = TII->isLoadFromStackSlot(*I, FirstSS, LoadSize))) in RemoveDeadStores()
483 LoadSize != StoreSize) in RemoveDeadStores()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Analysis/
H A DLoads.cpp367 const TypeSize LoadSize = TypeSize::getFixed(Size.getZExtValue()); in isSafeToLoadUnconditionally() local
417 TypeSize::isKnownLE(LoadSize, DL.getTypeStoreSize(AccessedTy))) in isSafeToLoadUnconditionally()
421 TypeSize::isKnownLE(LoadSize, DL.getTypeStoreSize(AccessedTy))) in isSafeToLoadUnconditionally()
536 TypeSize LoadSize = DL.getTypeSizeInBits(AccessTy); in getAvailableLoadStore() local
537 if (TypeSize::isKnownLE(LoadSize, StoreSize)) in getAvailableLoadStore()
566 uint64_t LoadSize = LoadTypeSize.getFixedValue(); in getAvailableLoadStore() local
567 if ((Len->getValue() * 8).ult(LoadSize)) in getAvailableLoadStore()
570 APInt Splat = LoadSize >= 8 ? APInt::getSplat(LoadSize, Val->getValue()) in getAvailableLoadStore()
571 : Val->getValue().trunc(LoadSize); in getAvailableLoadStore()
H A DTargetTransformInfo.cpp1225 unsigned LoadSize, in getLoadVectorFactor() argument
1228 return TTIImpl->getLoadVectorFactor(VF, LoadSize, ChainSizeInBytes, VecTy); in getLoadVectorFactor()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/AggressiveInstCombine/
H A DAggressiveInstCombine.cpp620 uint64_t LoadSize = 0; member
701 Loc = Loc.getWithNewSize(LOps.LoadSize); in foldLoadsRecursive()
742 LoadSize1 = LOps.LoadSize; in foldLoadsRecursive()
744 LoadSize2 = LOps.LoadSize; in foldLoadsRecursive()
762 LOps.LoadSize = LoadSize1 + LoadSize2; in foldLoadsRecursive()
791 IntegerType *WiderType = IntegerType::get(I.getContext(), LOps.LoadSize); in foldConsecutiveLoads()
799 Allowed = TTI.allowsMisalignedMemoryAccesses(I.getContext(), LOps.LoadSize, in foldConsecutiveLoads()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/PowerPC/
H A DPPCHazardRecognizers.h94 bool isLoadOfStoredAddress(uint64_t LoadSize, int64_t LoadOffset,
H A DPPCHazardRecognizers.cpp298 isLoadOfStoredAddress(uint64_t LoadSize, int64_t LoadOffset, in isLoadOfStoredAddress() argument
313 if (int64_t(LoadOffset+LoadSize) > StoreOffset[i]) return true; in isLoadOfStoredAddress()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64LoadStoreOptimizer.cpp630 int LoadSize = TII->getMemScale(LoadInst); in isLdOffsetInRangeOfSt() local
639 : AArch64InstrInfo::getLdStOffsetOp(LoadInst).getImm() * LoadSize; in isLdOffsetInRangeOfSt()
641 (UnscaledLdOffset + LoadSize <= (UnscaledStOffset + StoreSize)); in isLdOffsetInRangeOfSt()
1142 int LoadSize = TII->getMemScale(*LoadI); in promoteLoadFromStore() local
1154 if (LoadSize == StoreSize && (LoadSize == 4 || LoadSize == 8)) { in promoteLoadFromStore()
1157 if (StRt == LdRt && LoadSize == 8) { in promoteLoadFromStore()
1187 assert(LoadSize <= StoreSize && "Invalid load size"); in promoteLoadFromStore()
1191 : AArch64InstrInfo::getLdStOffsetOp(*LoadI).getImm() * LoadSize; in promoteLoadFromStore()
1196 int Width = LoadSize * 8; in promoteLoadFromStore()
1203 (UnscaledLdOffset + LoadSize) <= UnscaledStOffset + StoreSize) && in promoteLoadFromStore()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86AvoidStoreForwardingBlocks.cpp619 static bool isBlockingStore(int64_t LoadDispImm, unsigned LoadSize, in isBlockingStore() argument
622 (StoreDispImm <= LoadDispImm + (LoadSize - StoreSize))); in isBlockingStore()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DTargetTransformInfo.h1618 unsigned getLoadVectorFactor(unsigned VF, unsigned LoadSize,
2092 virtual unsigned getLoadVectorFactor(unsigned VF, unsigned LoadSize,
2796 unsigned getLoadVectorFactor(unsigned VF, unsigned LoadSize, in getLoadVectorFactor() argument
2799 return Impl.getLoadVectorFactor(VF, LoadSize, ChainSizeInBytes, VecTy); in getLoadVectorFactor()
H A DTargetTransformInfoImpl.h877 unsigned getLoadVectorFactor(unsigned VF, unsigned LoadSize, in getLoadVectorFactor() argument
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DLoopIdiomRecognize.cpp1215 int64_t LoadSize = in loadAndStoreMayFormMemmove() local
1217 if (BP1 != BP2 || LoadSize != int64_t(StoreSize)) in loadAndStoreMayFormMemmove()
1220 (IsNegStride && LoadOff + LoadSize > StoreOff)) in loadAndStoreMayFormMemmove()
H A DSROA.cpp1339 TypeSize LoadSize = DL.getTypeStoreSize(LI->getType()); in hasUnsafePHIOrSelectUse() local
1340 if (LoadSize.isScalable()) { in hasUnsafePHIOrSelectUse()
1344 Size = std::max(Size, LoadSize.getFixedValue()); in hasUnsafePHIOrSelectUse()
1617 APInt LoadSize = in isSafePHIToSpeculate() local
1641 if (isSafeToLoadUnconditionally(InVal, MaxAlign, LoadSize, DL, TI)) in isSafePHIToSpeculate()
/freebsd-14.2/contrib/llvm-project/clang/lib/CodeGen/
H A DCGBuiltin.cpp468 CharUnits LoadSize = CGF.getContext().getTypeSizeInChars(ElTy); in EmitISOVolatileLoad() local
470 llvm::IntegerType::get(CGF.getLLVMContext(), LoadSize.getQuantity() * 8); in EmitISOVolatileLoad()
471 llvm::LoadInst *Load = CGF.Builder.CreateAlignedLoad(ITy, Ptr, LoadSize); in EmitISOVolatileLoad()