Home
last modified time | relevance | path

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

12

/external/llvm-project/llvm/lib/Transforms/Utils/
DVNCoercion.cpp200 uint64_t LoadSize = DL.getTypeSizeInBits(LoadTy).getFixedSize(); in analyzeLoadFromClobberingWrite() local
202 if ((WriteSizeInBits & 7) | (LoadSize & 7)) in analyzeLoadFromClobberingWrite()
205 LoadSize /= 8; in analyzeLoadFromClobberingWrite()
211 isAAFailure = LoadOffset + int64_t(LoadSize) <= StoreOffset; in analyzeLoadFromClobberingWrite()
221 StoreOffset + StoreSize < LoadOffset + LoadSize) in analyzeLoadFromClobberingWrite()
357 unsigned LoadSize = DL.getTypeStoreSize(LoadTy).getFixedSize(); in analyzeLoadFromClobberingLoad() local
360 getLoadLoadClobberFullWidthSize(LoadBase, LoadOffs, LoadSize, DepLI); in analyzeLoadFromClobberingLoad()
445 uint64_t LoadSize = (DL.getTypeSizeInBits(LoadTy).getFixedSize() + 7) / 8; in getStoreValueForLoadHelper() local
458 ShiftAmt = (StoreSize - LoadSize - Offset) * 8; in getStoreValueForLoadHelper()
463 if (LoadSize != StoreSize) in getStoreValueForLoadHelper()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/
DVNCoercion.cpp187 uint64_t LoadSize = DL.getTypeSizeInBits(LoadTy); in analyzeLoadFromClobberingWrite() local
189 if ((WriteSizeInBits & 7) | (LoadSize & 7)) in analyzeLoadFromClobberingWrite()
192 LoadSize /= 8; in analyzeLoadFromClobberingWrite()
198 isAAFailure = LoadOffset + int64_t(LoadSize) <= StoreOffset; in analyzeLoadFromClobberingWrite()
208 StoreOffset + StoreSize < LoadOffset + LoadSize) in analyzeLoadFromClobberingWrite()
268 unsigned LoadSize = DL.getTypeStoreSize(LoadTy); in analyzeLoadFromClobberingLoad() local
271 LoadBase, LoadOffs, LoadSize, DepLI); in analyzeLoadFromClobberingLoad()
359 uint64_t LoadSize = (DL.getTypeSizeInBits(LoadTy) + 7) / 8; in getStoreValueForLoadHelper() local
372 ShiftAmt = (StoreSize - LoadSize - Offset) * 8; in getStoreValueForLoadHelper()
377 if (LoadSize != StoreSize) in getStoreValueForLoadHelper()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/
DAMDGPULowerKernelAttributes.cpp112 unsigned LoadSize = DL.getTypeStoreSize(Load->getType()); in processUse() local
117 if (LoadSize == 2) in processUse()
121 if (LoadSize == 2) in processUse()
125 if (LoadSize == 2) in processUse()
129 if (LoadSize == 4) in processUse()
133 if (LoadSize == 4) in processUse()
137 if (LoadSize == 4) in processUse()
DAMDGPUTargetTransformInfo.cpp236 unsigned GCNTTIImpl::getLoadVectorFactor(unsigned VF, unsigned LoadSize, in getLoadVectorFactor() argument
239 unsigned VecRegBitWidth = VF * LoadSize; in getLoadVectorFactor()
242 return 128 / LoadSize; in getLoadVectorFactor()
DAMDGPUTargetTransformInfo.h152 unsigned getLoadVectorFactor(unsigned VF, unsigned LoadSize,
/external/llvm-project/llvm/lib/Target/AMDGPU/
DAMDGPULowerKernelAttributes.cpp112 unsigned LoadSize = DL.getTypeStoreSize(Load->getType()); in processUse() local
117 if (LoadSize == 2) in processUse()
121 if (LoadSize == 2) in processUse()
125 if (LoadSize == 2) in processUse()
129 if (LoadSize == 4) in processUse()
133 if (LoadSize == 4) in processUse()
137 if (LoadSize == 4) in processUse()
DAMDGPUTargetTransformInfo.cpp291 unsigned GCNTTIImpl::getLoadVectorFactor(unsigned VF, unsigned LoadSize, in getLoadVectorFactor() argument
294 unsigned VecRegBitWidth = VF * LoadSize; in getLoadVectorFactor()
297 return 128 / LoadSize; in getLoadVectorFactor()
DAMDGPUTargetTransformInfo.h173 unsigned getLoadVectorFactor(unsigned VF, unsigned LoadSize,
/external/llvm-project/llvm/lib/CodeGen/
DExpandMemCmp.cpp83 LoadEntry(unsigned LoadSize, uint64_t Offset) in LoadEntry()
84 : LoadSize(LoadSize), Offset(Offset) { in LoadEntry()
88 unsigned LoadSize; member
141 const unsigned LoadSize = LoadSizes.front(); in computeGreedyLoadSequence() local
142 const uint64_t NumLoadsForThisSize = Size / LoadSize; in computeGreedyLoadSequence()
152 LoadSequence.push_back({LoadSize, Offset}); in computeGreedyLoadSequence()
153 Offset += LoadSize; in computeGreedyLoadSequence()
155 if (LoadSize > 1) in computeGreedyLoadSequence()
157 Size = Size % LoadSize; in computeGreedyLoadSequence()
380 IntegerType::get(CI->getContext(), CurLoadEntry.LoadSize * 8), in getCompareLoadPairs()
[all …]
DStackSlotColoring.cpp449 unsigned LoadSize = 0; in RemoveDeadStores() local
451 if (!(LoadReg = TII->isLoadFromStackSlot(*I, FirstSS, LoadSize))) in RemoveDeadStores()
462 LoadSize != StoreSize) in RemoveDeadStores()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/
DExpandMemCmp.cpp81 LoadEntry(unsigned LoadSize, uint64_t Offset) in LoadEntry()
82 : LoadSize(LoadSize), Offset(Offset) { in LoadEntry()
86 unsigned LoadSize; member
135 const unsigned LoadSize = LoadSizes.front(); in computeGreedyLoadSequence() local
136 const uint64_t NumLoadsForThisSize = Size / LoadSize; in computeGreedyLoadSequence()
146 LoadSequence.push_back({LoadSize, Offset}); in computeGreedyLoadSequence()
147 Offset += LoadSize; in computeGreedyLoadSequence()
149 if (LoadSize > 1) in computeGreedyLoadSequence()
151 Size = Size % LoadSize; in computeGreedyLoadSequence()
345 IntegerType::get(CI->getContext(), CurLoadEntry.LoadSize * 8); in getCompareLoadPairs()
[all …]
DStackSlotColoring.cpp448 unsigned LoadSize = 0; in RemoveDeadStores() local
450 if (!(LoadReg = TII->isLoadFromStackSlot(*I, FirstSS, LoadSize))) in RemoveDeadStores()
461 LoadSize != StoreSize) in RemoveDeadStores()
/external/llvm/lib/Transforms/Scalar/
DGVN.cpp844 uint64_t LoadSize = DL.getTypeSizeInBits(LoadTy); in AnalyzeLoadFromClobberingWrite() local
846 if ((WriteSizeInBits & 7) | (LoadSize & 7)) in AnalyzeLoadFromClobberingWrite()
849 LoadSize >>= 3; in AnalyzeLoadFromClobberingWrite()
856 isAAFailure = LoadOffset+int64_t(LoadSize) <= StoreOffset; in AnalyzeLoadFromClobberingWrite()
875 StoreOffset+StoreSize < LoadOffset+LoadSize) in AnalyzeLoadFromClobberingWrite()
918 unsigned LoadSize = DL.getTypeStoreSize(LoadTy); in AnalyzeLoadFromClobberingLoad() local
921 LoadBase, LoadOffs, LoadSize, DepLI); in AnalyzeLoadFromClobberingLoad()
992 uint64_t LoadSize = (DL.getTypeSizeInBits(LoadTy) + 7) / 8; in GetStoreValueForLoad() local
1009 ShiftAmt = (StoreSize-LoadSize-Offset)*8; in GetStoreValueForLoad()
1014 if (LoadSize != StoreSize) in GetStoreValueForLoad()
[all …]
/external/llvm/lib/Analysis/
DLoads.cpp223 uint64_t LoadSize = DL.getTypeStoreSize(AddrTy->getElementType()); in isSafeToLoadUnconditionally() local
235 if (ByteOffset + LoadSize <= DL.getTypeAllocSize(BaseType) && in isSafeToLoadUnconditionally()
287 LoadSize <= DL.getTypeStoreSize(AccessedTy)) in isSafeToLoadUnconditionally()
/external/llvm/lib/Target/AArch64/
DAArch64LoadStoreOptimizer.cpp605 int LoadSize = getMemScale(LoadInst); in isLdOffsetInRangeOfSt() local
612 : getLdStOffsetOp(LoadInst).getImm() * LoadSize; in isLdOffsetInRangeOfSt()
614 (UnscaledLdOffset + LoadSize <= (UnscaledStOffset + StoreSize)); in isLdOffsetInRangeOfSt()
933 int LoadSize = getMemScale(*LoadI); in promoteLoadFromStore() local
944 if (LoadSize == StoreSize && (LoadSize == 4 || LoadSize == 8)) { in promoteLoadFromStore()
947 if (StRt == LdRt && LoadSize == 8) { in promoteLoadFromStore()
969 assert(LoadSize <= StoreSize && "Invalid load size"); in promoteLoadFromStore()
972 : getLdStOffsetOp(*LoadI).getImm() * LoadSize; in promoteLoadFromStore()
976 int Width = LoadSize * 8; in promoteLoadFromStore()
985 (UnscaledLdOffset + LoadSize) <= UnscaledStOffset + StoreSize) && in promoteLoadFromStore()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AArch64/
DAArch64LoadStoreOptimizer.cpp580 int LoadSize = TII->getMemScale(LoadInst); in isLdOffsetInRangeOfSt() local
587 : getLdStOffsetOp(LoadInst).getImm() * LoadSize; in isLdOffsetInRangeOfSt()
589 (UnscaledLdOffset + LoadSize <= (UnscaledStOffset + StoreSize)); in isLdOffsetInRangeOfSt()
1014 int LoadSize = TII->getMemScale(*LoadI); in promoteLoadFromStore() local
1026 if (LoadSize == StoreSize && (LoadSize == 4 || LoadSize == 8)) { in promoteLoadFromStore()
1029 if (StRt == LdRt && LoadSize == 8) { in promoteLoadFromStore()
1059 assert(LoadSize <= StoreSize && "Invalid load size"); in promoteLoadFromStore()
1062 : getLdStOffsetOp(*LoadI).getImm() * LoadSize; in promoteLoadFromStore()
1066 int Width = LoadSize * 8; in promoteLoadFromStore()
1073 (UnscaledLdOffset + LoadSize) <= UnscaledStOffset + StoreSize) && in promoteLoadFromStore()
/external/llvm-project/llvm/lib/Target/AArch64/
DAArch64LoadStoreOptimizer.cpp581 int LoadSize = TII->getMemScale(LoadInst); in isLdOffsetInRangeOfSt() local
588 : getLdStOffsetOp(LoadInst).getImm() * LoadSize; in isLdOffsetInRangeOfSt()
590 (UnscaledLdOffset + LoadSize <= (UnscaledStOffset + StoreSize)); in isLdOffsetInRangeOfSt()
1014 int LoadSize = TII->getMemScale(*LoadI); in promoteLoadFromStore() local
1026 if (LoadSize == StoreSize && (LoadSize == 4 || LoadSize == 8)) { in promoteLoadFromStore()
1029 if (StRt == LdRt && LoadSize == 8) { in promoteLoadFromStore()
1059 assert(LoadSize <= StoreSize && "Invalid load size"); in promoteLoadFromStore()
1062 : getLdStOffsetOp(*LoadI).getImm() * LoadSize; in promoteLoadFromStore()
1066 int Width = LoadSize * 8; in promoteLoadFromStore()
1073 (UnscaledLdOffset + LoadSize) <= UnscaledStOffset + StoreSize) && in promoteLoadFromStore()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
DLoads.cpp280 const uint64_t LoadSize = Size.getZExtValue(); in isSafeToLoadUnconditionally() local
331 LoadSize <= DL.getTypeStoreSize(AccessedTy)) in isSafeToLoadUnconditionally()
335 LoadSize <= DL.getTypeStoreSize(AccessedTy)) in isSafeToLoadUnconditionally()
/external/llvm/lib/Target/PowerPC/
DPPCHazardRecognizers.h95 bool isLoadOfStoredAddress(uint64_t LoadSize, int64_t LoadOffset,
DPPCHazardRecognizers.cpp301 isLoadOfStoredAddress(uint64_t LoadSize, int64_t LoadOffset, in isLoadOfStoredAddress() argument
316 if (int64_t(LoadOffset+LoadSize) > StoreOffset[i]) return true; in isLoadOfStoredAddress()
/external/llvm-project/llvm/lib/Target/PowerPC/
DPPCHazardRecognizers.h94 bool isLoadOfStoredAddress(uint64_t LoadSize, int64_t LoadOffset,
DPPCHazardRecognizers.cpp298 isLoadOfStoredAddress(uint64_t LoadSize, int64_t LoadOffset, in isLoadOfStoredAddress() argument
313 if (int64_t(LoadOffset+LoadSize) > StoreOffset[i]) return true; in isLoadOfStoredAddress()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/PowerPC/
DPPCHazardRecognizers.h94 bool isLoadOfStoredAddress(uint64_t LoadSize, int64_t LoadOffset,
DPPCHazardRecognizers.cpp298 isLoadOfStoredAddress(uint64_t LoadSize, int64_t LoadOffset, in isLoadOfStoredAddress() argument
313 if (int64_t(LoadOffset+LoadSize) > StoreOffset[i]) return true; in isLoadOfStoredAddress()
/external/llvm-project/llvm/lib/Analysis/
DLoads.cpp312 const uint64_t LoadSize = Size.getZExtValue(); in isSafeToLoadUnconditionally() local
362 LoadSize <= DL.getTypeStoreSize(AccessedTy)) in isSafeToLoadUnconditionally()
366 LoadSize <= DL.getTypeStoreSize(AccessedTy)) in isSafeToLoadUnconditionally()

12