Home
last modified time | relevance | path

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

12

/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Utils/
DVNCoercion.cpp177 uint64_t LoadSize = DL.getTypeSizeInBits(LoadTy); in analyzeLoadFromClobberingWrite() local
179 if ((WriteSizeInBits & 7) | (LoadSize & 7)) in analyzeLoadFromClobberingWrite()
182 LoadSize /= 8; in analyzeLoadFromClobberingWrite()
188 isAAFailure = LoadOffset + int64_t(LoadSize) <= StoreOffset; in analyzeLoadFromClobberingWrite()
198 StoreOffset + StoreSize < LoadOffset + LoadSize) in analyzeLoadFromClobberingWrite()
242 unsigned LoadSize = DL.getTypeStoreSize(LoadTy); in analyzeLoadFromClobberingLoad() local
245 LoadBase, LoadOffs, LoadSize, DepLI); in analyzeLoadFromClobberingLoad()
321 uint64_t LoadSize = (DL.getTypeSizeInBits(LoadTy) + 7) / 8; in getStoreValueForLoadHelper() local
334 ShiftAmt = (StoreSize - LoadSize - Offset) * 8; in getStoreValueForLoadHelper()
339 if (LoadSize != StoreSize) in getStoreValueForLoadHelper()
[all …]
/external/swiftshader/third_party/LLVM/lib/Target/PowerPC/
DPPCHazardRecognizers.cpp92 isLoadOfStoredAddress(unsigned LoadSize, SDValue Ptr1, SDValue Ptr2) const { in isLoadOfStoredAddress() argument
112 if (int(LoadOffs+LoadSize) > StoreOffs) return true; in isLoadOfStoredAddress()
172 unsigned LoadSize; in getHazardType() local
180 LoadSize = 1; in getHazardType()
192 LoadSize = 2; in getHazardType()
204 LoadSize = 4; in getHazardType()
210 LoadSize = 8; in getHazardType()
214 LoadSize = 16; in getHazardType()
218 if (isLoadOfStoredAddress(LoadSize, in getHazardType()
DPPCHazardRecognizers.h66 bool isLoadOfStoredAddress(unsigned LoadSize,
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AMDGPU/
DAMDGPULowerKernelAttributes.cpp113 unsigned LoadSize = DL.getTypeStoreSize(Load->getType()); in processUse() local
118 if (LoadSize == 2) in processUse()
122 if (LoadSize == 2) in processUse()
126 if (LoadSize == 2) in processUse()
130 if (LoadSize == 4) in processUse()
134 if (LoadSize == 4) in processUse()
138 if (LoadSize == 4) in processUse()
DAMDGPUInstructionSelector.cpp449 static unsigned getSmrdOpcode(unsigned BaseOpcode, unsigned LoadSize) { in getSmrdOpcode() argument
451 if (LoadSize == 32) in getSmrdOpcode()
456 switch (LoadSize) { in getSmrdOpcode()
468 switch (LoadSize) { in getSmrdOpcode()
480 switch (LoadSize) { in getSmrdOpcode()
526 unsigned LoadSize = RBI.getSizeInBits(DstReg, MRI, TRI); in selectSMRD() local
535 Opcode = getSmrdOpcode(AMDGPU::S_LOAD_DWORD_IMM, LoadSize); in selectSMRD()
546 Opcode = getSmrdOpcode(AMDGPU::S_LOAD_DWORD_IMM_ci, LoadSize); in selectSMRD()
555 Opcode = getSmrdOpcode(AMDGPU::S_LOAD_DWORD_SGPR, LoadSize); in selectSMRD()
569 Opcode = getSmrdOpcode(AMDGPU::S_LOAD_DWORD_IMM, LoadSize); in selectSMRD()
[all …]
DAMDGPUTargetTransformInfo.cpp234 unsigned GCNTTIImpl::getLoadVectorFactor(unsigned VF, unsigned LoadSize, in getLoadVectorFactor() argument
237 unsigned VecRegBitWidth = VF * LoadSize; in getLoadVectorFactor()
240 return 128 / LoadSize; in getLoadVectorFactor()
DAMDGPUTargetTransformInfo.h140 unsigned getLoadVectorFactor(unsigned VF, unsigned LoadSize,
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/
DExpandMemCmp.cpp73 LoadEntry(unsigned LoadSize, uint64_t Offset) in LoadEntry()
74 : LoadSize(LoadSize), Offset(Offset) { in LoadEntry()
75 assert(Offset % LoadSize == 0 && "invalid load entry"); in LoadEntry()
78 uint64_t getGEPIndex() const { return Offset / LoadSize; } in getGEPIndex()
81 const unsigned LoadSize; member
146 const unsigned LoadSize = Options.LoadSizes[LoadSizeIndex]; in MemCmpExpansion() local
147 assert(LoadSize > 0 && "zero load size"); in MemCmpExpansion()
148 const uint64_t NumLoadsForThisSize = CurSize / LoadSize; in MemCmpExpansion()
159 LoadSequence.push_back({LoadSize, Offset}); in MemCmpExpansion()
160 Offset += LoadSize; in MemCmpExpansion()
[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/swiftshader/third_party/LLVM/lib/Transforms/Scalar/
DGVN.cpp700 uint64_t LoadSize = TD.getTypeSizeInBits(LoadedTy); in CoerceAvailableValueToLoadType() local
703 if (StoreSize == LoadSize) { in CoerceAvailableValueToLoadType()
731 assert(StoreSize >= LoadSize && "CanCoerceMustAliasedValueToLoad fail"); in CoerceAvailableValueToLoadType()
748 Constant *Val = ConstantInt::get(StoredVal->getType(), StoreSize-LoadSize); in CoerceAvailableValueToLoadType()
753 Type *NewIntTy = IntegerType::get(StoredValTy->getContext(), LoadSize); in CoerceAvailableValueToLoadType()
808 uint64_t LoadSize = TD.getTypeSizeInBits(LoadTy); in AnalyzeLoadFromClobberingWrite() local
810 if ((WriteSizeInBits & 7) | (LoadSize & 7)) in AnalyzeLoadFromClobberingWrite()
813 LoadSize >>= 3; in AnalyzeLoadFromClobberingWrite()
820 isAAFailure = LoadOffset+int64_t(LoadSize) <= StoreOffset; in AnalyzeLoadFromClobberingWrite()
839 StoreOffset+StoreSize < LoadOffset+LoadSize) in AnalyzeLoadFromClobberingWrite()
[all …]
/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/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AArch64/
DAArch64LoadStoreOptimizer.cpp565 int LoadSize = getMemScale(LoadInst); in isLdOffsetInRangeOfSt() local
572 : getLdStOffsetOp(LoadInst).getImm() * LoadSize; in isLdOffsetInRangeOfSt()
574 (UnscaledLdOffset + LoadSize <= (UnscaledStOffset + StoreSize)); in isLdOffsetInRangeOfSt()
884 int LoadSize = getMemScale(*LoadI); in promoteLoadFromStore() local
896 if (LoadSize == StoreSize && (LoadSize == 4 || LoadSize == 8)) { in promoteLoadFromStore()
899 if (StRt == LdRt && LoadSize == 8) { in promoteLoadFromStore()
929 assert(LoadSize <= StoreSize && "Invalid load size"); in promoteLoadFromStore()
932 : getLdStOffsetOp(*LoadI).getImm() * LoadSize; in promoteLoadFromStore()
936 int Width = LoadSize * 8; in promoteLoadFromStore()
945 (UnscaledLdOffset + LoadSize) <= UnscaledStOffset + StoreSize) && in promoteLoadFromStore()
/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-7.0/llvm/lib/Analysis/
DLoads.cpp239 uint64_t LoadSize = DL.getTypeStoreSize(AddrTy->getElementType()); in isSafeToLoadUnconditionally() local
251 if (ByteOffset + LoadSize <= DL.getTypeAllocSize(BaseType) && in isSafeToLoadUnconditionally()
303 LoadSize <= DL.getTypeStoreSize(AccessedTy)) in isSafeToLoadUnconditionally()
DTargetTransformInfo.cpp607 unsigned LoadSize, in getLoadVectorFactor() argument
610 return TTIImpl->getLoadVectorFactor(VF, LoadSize, ChainSizeInBytes, VecTy); in getLoadVectorFactor()
/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/swiftshader/third_party/LLVM/lib/Analysis/
DLoads.cpp118 uint64_t LoadSize = TD->getTypeStoreSize(AddrTy->getElementType()); in isSafeToLoadUnconditionally() local
119 if (ByteOffset + LoadSize <= TD->getTypeAllocSize(BaseType) && in isSafeToLoadUnconditionally()
/external/swiftshader/third_party/llvm-7.0/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/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/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Analysis/
DTargetTransformInfo.h955 unsigned getLoadVectorFactor(unsigned VF, unsigned LoadSize,
1171 virtual unsigned getLoadVectorFactor(unsigned VF, unsigned LoadSize,
1560 unsigned getLoadVectorFactor(unsigned VF, unsigned LoadSize, in getLoadVectorFactor() argument
1563 return Impl.getLoadVectorFactor(VF, LoadSize, ChainSizeInBytes, VecTy); in getLoadVectorFactor()
DTargetTransformInfoImpl.h551 unsigned getLoadVectorFactor(unsigned VF, unsigned LoadSize, in getLoadVectorFactor() argument
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/X86/
DX86AvoidStoreForwardingBlocks.cpp623 static bool isBlockingStore(int64_t LoadDispImm, unsigned LoadSize, in isBlockingStore() argument
626 (StoreDispImm <= LoadDispImm + (LoadSize - StoreSize))); in isBlockingStore()
/external/swiftshader/third_party/LLVM/lib/Target/Mips/
DMipsISelLowering.cpp1867 unsigned LoadSize = (RemainingSize == 3 ? 2 : RemainingSize); in WriteByValArg() local
1873 MVT::getIntegerVT(LoadSize * 8), false, in WriteByValArg()
1881 DAG.getConstant(32 - LoadSize * 8, MVT::i32)); in WriteByValArg()
1883 Offset += LoadSize; in WriteByValArg()
1884 RemainingSize -= LoadSize; in WriteByValArg()

12