Home
last modified time | relevance | path

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

/llvm-project-15.0.7/llvm/lib/Transforms/Utils/
H A DVNCoercion.cpp186 uint64_t LoadSize = DL.getTypeSizeInBits(LoadTy).getFixedSize(); in analyzeLoadFromClobberingWrite() local
188 if ((WriteSizeInBits & 7) | (LoadSize & 7)) in analyzeLoadFromClobberingWrite()
191 LoadSize /= 8; in analyzeLoadFromClobberingWrite()
427 ShiftAmt = (StoreSize - LoadSize - Offset) * 8; in getStoreValueForLoadHelper()
432 if (LoadSize != StoreSize) in getStoreValueForLoadHelper()
467 if (Offset + LoadSize > SrcValStoreSize) { in getLoadValueForLoad()
472 unsigned NewLoadSize = Offset + LoadSize; in getLoadValueForLoad()
512 if (Offset + LoadSize > SrcValStoreSize) in getConstantLoadValueForLoad()
532 if (LoadSize != 1) in getMemInstValueForLoad()
538 for (unsigned NumBytesSet = 1; NumBytesSet != LoadSize;) { in getMemInstValueForLoad()
[all …]
/llvm-project-15.0.7/llvm/lib/Target/AMDGPU/
H A DAMDGPULowerKernelAttributes.cpp103 unsigned LoadSize = DL.getTypeStoreSize(Load->getType()); in processUse() local
108 if (LoadSize == 2) in processUse()
112 if (LoadSize == 2) in processUse()
116 if (LoadSize == 2) in processUse()
120 if (LoadSize == 4) in processUse()
124 if (LoadSize == 4) in processUse()
128 if (LoadSize == 4) in processUse()
H A DAMDGPUTargetTransformInfo.h119 unsigned getLoadVectorFactor(unsigned VF, unsigned LoadSize,
H A DAMDGPUTargetTransformInfo.cpp333 unsigned GCNTTIImpl::getLoadVectorFactor(unsigned VF, unsigned LoadSize, in getLoadVectorFactor() argument
336 unsigned VecRegBitWidth = VF * LoadSize; in getLoadVectorFactor()
339 return 128 / LoadSize; in getLoadVectorFactor()
H A DAMDGPURegisterBankInfo.cpp1054 unsigned LoadSize = LoadTy.getSizeInBits(); in applyMappingLoad() local
1062 if (LoadSize != 32 && LoadSize != 96) in applyMappingLoad()
1071 if (LoadSize == 32 && in applyMappingLoad()
1080 if (LoadSize == 32) { in applyMappingLoad()
1126 if (LoadSize <= MaxNonSmrdLoadSize) in applyMappingLoad()
1135 assert(LoadSize % MaxNonSmrdLoadSize == 0); in applyMappingLoad()
1352 unsigned LoadSize = Ty.getSizeInBits(); in applyMappingSBufferLoad() local
1354 if (LoadSize == 256 || LoadSize == 512) { in applyMappingSBufferLoad()
1355 NumLoads = LoadSize / 128; in applyMappingSBufferLoad()
H A DSIInstrInfo.cpp512 const unsigned LoadSize = NumBytes / NumLoads; in shouldClusterMemOps() local
513 const unsigned NumDWORDs = ((LoadSize + 3) / 4) * NumLoads; in shouldClusterMemOps()
/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DExpandMemCmp.cpp90 LoadEntry(unsigned LoadSize, uint64_t Offset) in LoadEntry()
91 : LoadSize(LoadSize), Offset(Offset) { in LoadEntry()
95 unsigned LoadSize; member
149 const unsigned LoadSize = LoadSizes.front(); in computeGreedyLoadSequence() local
150 const uint64_t NumLoadsForThisSize = Size / LoadSize; in computeGreedyLoadSequence()
160 LoadSequence.push_back({LoadSize, Offset}); in computeGreedyLoadSequence()
161 Offset += LoadSize; in computeGreedyLoadSequence()
163 if (LoadSize > 1) in computeGreedyLoadSequence()
165 Size = Size % LoadSize; in computeGreedyLoadSequence()
476 if (CurLoadEntry.LoadSize == 1) { in emitLoadCompareBlock()
[all …]
H A DStackSlotColoring.cpp440 unsigned LoadSize = 0; in RemoveDeadStores() local
442 if (!(LoadReg = TII->isLoadFromStackSlot(*I, FirstSS, LoadSize))) in RemoveDeadStores()
453 LoadSize != StoreSize) in RemoveDeadStores()
/llvm-project-15.0.7/llvm/lib/Analysis/
H A DLoads.cpp343 const uint64_t LoadSize = Size.getZExtValue(); in isSafeToLoadUnconditionally() local
393 LoadSize <= DL.getTypeStoreSize(AccessedTy)) in isSafeToLoadUnconditionally()
397 LoadSize <= DL.getTypeStoreSize(AccessedTy)) in isSafeToLoadUnconditionally()
511 TypeSize LoadSize = DL.getTypeSizeInBits(AccessTy); in getAvailableLoadStore() local
512 if (TypeSize::isKnownLE(LoadSize, StoreSize)) in getAvailableLoadStore()
H A DTargetTransformInfo.cpp1075 unsigned LoadSize, in getLoadVectorFactor() argument
1078 return TTIImpl->getLoadVectorFactor(VF, LoadSize, ChainSizeInBytes, VecTy); in getLoadVectorFactor()
/llvm-project-15.0.7/llvm/lib/Target/AArch64/
H A DAArch64LoadStoreOptimizer.cpp624 int LoadSize = TII->getMemScale(LoadInst); in isLdOffsetInRangeOfSt() local
633 : AArch64InstrInfo::getLdStOffsetOp(LoadInst).getImm() * LoadSize; in isLdOffsetInRangeOfSt()
635 (UnscaledLdOffset + LoadSize <= (UnscaledStOffset + StoreSize)); in isLdOffsetInRangeOfSt()
1072 int LoadSize = TII->getMemScale(*LoadI); in promoteLoadFromStore() local
1084 if (LoadSize == StoreSize && (LoadSize == 4 || LoadSize == 8)) { in promoteLoadFromStore()
1087 if (StRt == LdRt && LoadSize == 8) { in promoteLoadFromStore()
1117 assert(LoadSize <= StoreSize && "Invalid load size"); in promoteLoadFromStore()
1121 : AArch64InstrInfo::getLdStOffsetOp(*LoadI).getImm() * LoadSize; in promoteLoadFromStore()
1126 int Width = LoadSize * 8; in promoteLoadFromStore()
1133 (UnscaledLdOffset + LoadSize) <= UnscaledStOffset + StoreSize) && in promoteLoadFromStore()
/llvm-project-15.0.7/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()
/llvm-project-15.0.7/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()
/llvm-project-15.0.7/llvm/include/llvm/Analysis/
H A DTargetTransformInfo.h1397 unsigned getLoadVectorFactor(unsigned VF, unsigned LoadSize,
1825 virtual unsigned getLoadVectorFactor(unsigned VF, unsigned LoadSize,
2435 unsigned getLoadVectorFactor(unsigned VF, unsigned LoadSize, in getLoadVectorFactor() argument
2438 return Impl.getLoadVectorFactor(VF, LoadSize, ChainSizeInBytes, VecTy); in getLoadVectorFactor()
H A DTargetTransformInfoImpl.h780 unsigned getLoadVectorFactor(unsigned VF, unsigned LoadSize, in getLoadVectorFactor() argument
/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DLoopIdiomRecognize.cpp1298 int64_t LoadSize = in loadAndStoreMayFormMemmove() local
1300 if (BP1 != BP2 || LoadSize != int64_t(StoreSize)) in loadAndStoreMayFormMemmove()
1303 (IsNegStride && LoadOff + LoadSize > StoreOff)) in loadAndStoreMayFormMemmove()
H A DSROA.cpp1244 APInt LoadSize = APInt(APWidth, DL.getTypeStoreSize(LoadType).getFixedSize()); in isSafePHIToSpeculate() local
1267 if (isSafeToLoadUnconditionally(InVal, MaxAlign, LoadSize, DL, TI)) in isSafePHIToSpeculate()
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCGBuiltin.cpp438 CharUnits LoadSize = CGF.getContext().getTypeSizeInChars(ElTy); in EmitISOVolatileLoad() local
440 llvm::IntegerType::get(CGF.getLLVMContext(), LoadSize.getQuantity() * 8); in EmitISOVolatileLoad()
442 llvm::LoadInst *Load = CGF.Builder.CreateAlignedLoad(ITy, Ptr, LoadSize); in EmitISOVolatileLoad()