/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Utils/ |
D | VNCoercion.cpp | 177 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/ |
D | PPCHazardRecognizers.cpp | 92 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()
|
D | PPCHazardRecognizers.h | 66 bool isLoadOfStoredAddress(unsigned LoadSize,
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AMDGPU/ |
D | AMDGPULowerKernelAttributes.cpp | 113 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()
|
D | AMDGPUInstructionSelector.cpp | 449 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 …]
|
D | AMDGPUTargetTransformInfo.cpp | 234 unsigned GCNTTIImpl::getLoadVectorFactor(unsigned VF, unsigned LoadSize, in getLoadVectorFactor() argument 237 unsigned VecRegBitWidth = VF * LoadSize; in getLoadVectorFactor() 240 return 128 / LoadSize; in getLoadVectorFactor()
|
D | AMDGPUTargetTransformInfo.h | 140 unsigned getLoadVectorFactor(unsigned VF, unsigned LoadSize,
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/ |
D | ExpandMemCmp.cpp | 73 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 …]
|
D | StackSlotColoring.cpp | 448 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/ |
D | GVN.cpp | 700 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/ |
D | GVN.cpp | 844 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/ |
D | AArch64LoadStoreOptimizer.cpp | 565 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/ |
D | AArch64LoadStoreOptimizer.cpp | 605 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/ |
D | Loads.cpp | 239 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()
|
D | TargetTransformInfo.cpp | 607 unsigned LoadSize, in getLoadVectorFactor() argument 610 return TTIImpl->getLoadVectorFactor(VF, LoadSize, ChainSizeInBytes, VecTy); in getLoadVectorFactor()
|
/external/llvm/lib/Analysis/ |
D | Loads.cpp | 223 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/ |
D | Loads.cpp | 118 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/ |
D | PPCHazardRecognizers.h | 95 bool isLoadOfStoredAddress(uint64_t LoadSize, int64_t LoadOffset,
|
D | PPCHazardRecognizers.cpp | 301 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/ |
D | PPCHazardRecognizers.h | 95 bool isLoadOfStoredAddress(uint64_t LoadSize, int64_t LoadOffset,
|
D | PPCHazardRecognizers.cpp | 301 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/ |
D | TargetTransformInfo.h | 955 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()
|
D | TargetTransformInfoImpl.h | 551 unsigned getLoadVectorFactor(unsigned VF, unsigned LoadSize, in getLoadVectorFactor() argument
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/X86/ |
D | X86AvoidStoreForwardingBlocks.cpp | 623 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/ |
D | MipsISelLowering.cpp | 1867 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()
|