Home
last modified time | relevance | path

Searched refs:LoadPtr (Results 1 – 25 of 27) sorted by relevance

12

/external/llvm-project/llvm/lib/Transforms/Utils/
DVNCoercion.cpp176 static int analyzeLoadFromClobberingWrite(Type *LoadTy, Value *LoadPtr, in analyzeLoadFromClobberingWrite() argument
188 Value *LoadBase = GetPointerBaseWithConstantOffset(LoadPtr, LoadOffset, DL); in analyzeLoadFromClobberingWrite()
231 int analyzeLoadFromClobberingStore(Type *LoadTy, Value *LoadPtr, in analyzeLoadFromClobberingStore() argument
245 return analyzeLoadFromClobberingWrite(LoadTy, LoadPtr, StorePtr, StoreSize, in analyzeLoadFromClobberingStore()
337 int analyzeLoadFromClobberingLoad(Type *LoadTy, Value *LoadPtr, LoadInst *DepLI, in analyzeLoadFromClobberingLoad() argument
348 int R = analyzeLoadFromClobberingWrite(LoadTy, LoadPtr, DepPtr, DepSize, DL); in analyzeLoadFromClobberingLoad()
356 GetPointerBaseWithConstantOffset(LoadPtr, LoadOffs, DL); in analyzeLoadFromClobberingLoad()
369 return analyzeLoadFromClobberingWrite(LoadTy, LoadPtr, DepPtr, Size * 8, DL); in analyzeLoadFromClobberingLoad()
372 int analyzeLoadFromClobberingMemInst(Type *LoadTy, Value *LoadPtr, in analyzeLoadFromClobberingMemInst() argument
388 return analyzeLoadFromClobberingWrite(LoadTy, LoadPtr, MI->getDest(), in analyzeLoadFromClobberingMemInst()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/
DVNCoercion.cpp163 static int analyzeLoadFromClobberingWrite(Type *LoadTy, Value *LoadPtr, in analyzeLoadFromClobberingWrite() argument
175 Value *LoadBase = GetPointerBaseWithConstantOffset(LoadPtr, LoadOffset, DL); in analyzeLoadFromClobberingWrite()
218 int analyzeLoadFromClobberingStore(Type *LoadTy, Value *LoadPtr, in analyzeLoadFromClobberingStore() argument
239 return analyzeLoadFromClobberingWrite(LoadTy, LoadPtr, StorePtr, StoreSize, in analyzeLoadFromClobberingStore()
246 int analyzeLoadFromClobberingLoad(Type *LoadTy, Value *LoadPtr, LoadInst *DepLI, in analyzeLoadFromClobberingLoad() argument
259 int R = analyzeLoadFromClobberingWrite(LoadTy, LoadPtr, DepPtr, DepSize, DL); in analyzeLoadFromClobberingLoad()
267 GetPointerBaseWithConstantOffset(LoadPtr, LoadOffs, DL); in analyzeLoadFromClobberingLoad()
280 return analyzeLoadFromClobberingWrite(LoadTy, LoadPtr, DepPtr, Size * 8, DL); in analyzeLoadFromClobberingLoad()
283 int analyzeLoadFromClobberingMemInst(Type *LoadTy, Value *LoadPtr, in analyzeLoadFromClobberingMemInst() argument
299 return analyzeLoadFromClobberingWrite(LoadTy, LoadPtr, MI->getDest(), in analyzeLoadFromClobberingMemInst()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Transforms/Utils/
DVNCoercion.h54 int analyzeLoadFromClobberingStore(Type *LoadTy, Value *LoadPtr,
62 int analyzeLoadFromClobberingLoad(Type *LoadTy, Value *LoadPtr, LoadInst *DepLI,
70 int analyzeLoadFromClobberingMemInst(Type *LoadTy, Value *LoadPtr,
/external/llvm-project/llvm/include/llvm/Transforms/Utils/
DVNCoercion.h54 int analyzeLoadFromClobberingStore(Type *LoadTy, Value *LoadPtr,
62 int analyzeLoadFromClobberingLoad(Type *LoadTy, Value *LoadPtr, LoadInst *DepLI,
70 int analyzeLoadFromClobberingMemInst(Type *LoadTy, Value *LoadPtr,
/external/llvm/lib/Transforms/Scalar/
DGVN.cpp810 static int AnalyzeLoadFromClobberingWrite(Type *LoadTy, Value *LoadPtr, in AnalyzeLoadFromClobberingWrite() argument
822 Value *LoadBase = GetPointerBaseWithConstantOffset(LoadPtr, LoadOffset, DL); in AnalyzeLoadFromClobberingWrite()
836 << "Load Ptr = " << *LoadPtr << "\n"; in AnalyzeLoadFromClobberingWrite()
864 << "Load Ptr = " << *LoadPtr << "\n"; in AnalyzeLoadFromClobberingWrite()
885 static int AnalyzeLoadFromClobberingStore(Type *LoadTy, Value *LoadPtr, in AnalyzeLoadFromClobberingStore() argument
895 return AnalyzeLoadFromClobberingWrite(LoadTy, LoadPtr, in AnalyzeLoadFromClobberingStore()
902 static int AnalyzeLoadFromClobberingLoad(Type *LoadTy, Value *LoadPtr, in AnalyzeLoadFromClobberingLoad() argument
910 int R = AnalyzeLoadFromClobberingWrite(LoadTy, LoadPtr, DepPtr, DepSize, DL); in AnalyzeLoadFromClobberingLoad()
917 GetPointerBaseWithConstantOffset(LoadPtr, LoadOffs, DL); in AnalyzeLoadFromClobberingLoad()
929 return AnalyzeLoadFromClobberingWrite(LoadTy, LoadPtr, DepPtr, Size*8, DL); in AnalyzeLoadFromClobberingLoad()
[all …]
DLoopLoadElimination.cpp67 Value *LoadPtr = Load->getPointerOperand(); in isDependenceDistanceOfOne() local
69 Type *LoadPtrType = LoadPtr->getType(); in isDependenceDistanceOfOne()
80 if (getPtrStride(PSE, LoadPtr, L) != 1 || in isDependenceDistanceOfOne()
87 auto *LoadPtrSCEV = cast<SCEVAddRecExpr>(PSE.getSCEV(LoadPtr)); in isDependenceDistanceOfOne()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
DLoopLoadElimination.cpp100 Value *LoadPtr = Load->getPointerOperand(); in isDependenceDistanceOfOne() local
102 Type *LoadPtrType = LoadPtr->getType(); in isDependenceDistanceOfOne()
113 if (getPtrStride(PSE, LoadPtr, L) != 1 || in isDependenceDistanceOfOne()
120 auto *LoadPtrSCEV = cast<SCEVAddRecExpr>(PSE.getSCEV(LoadPtr)); in isDependenceDistanceOfOne()
DGVN.cpp1175 Value *LoadPtr = LI->getPointerOperand(); in PerformLoadPRE() local
1178 PHITransAddr Address(LoadPtr, DL, AC); in PerformLoadPRE()
1179 LoadPtr = Address.PHITranslateWithInsertion( in PerformLoadPRE()
1181 if (!LoadPtr) { in PerformLoadPRE()
1188 if (LoadPtr) { in PerformLoadPRE()
1189 PHITransAddr Address(LoadPtr, DL, AC); in PerformLoadPRE()
1190 LoadPtr = Address.PHITranslateWithInsertion(LoadBB, UnavailablePred, *DT, in PerformLoadPRE()
1195 if (!LoadPtr) { in PerformLoadPRE()
1202 PredLoad.second = LoadPtr; in PerformLoadPRE()
1244 Value *LoadPtr = PredLoad.second; in PerformLoadPRE() local
[all …]
DNewGVN.cpp1416 NewGVN::performSymbolicLoadCoercion(Type *LoadType, Value *LoadPtr, in performSymbolicLoadCoercion() argument
1427 int Offset = analyzeLoadFromClobberingStore(LoadType, LoadPtr, DepSI, DL); in performSymbolicLoadCoercion()
1441 int Offset = analyzeLoadFromClobberingLoad(LoadType, LoadPtr, DepLI, DL); in performSymbolicLoadCoercion()
1453 int Offset = analyzeLoadFromClobberingMemInst(LoadType, LoadPtr, DepMI, DL); in performSymbolicLoadCoercion()
1466 if (LoadPtr != lookupOperandLeader(DepInst) && in performSymbolicLoadCoercion()
1467 !AA->isMustAlias(LoadPtr, DepInst)) in performSymbolicLoadCoercion()
/external/llvm-project/llvm/lib/Transforms/Scalar/
DLoopLoadElimination.cpp101 Value *LoadPtr = Load->getPointerOperand(); in isDependenceDistanceOfOne() local
103 Type *LoadPtrType = LoadPtr->getType(); in isDependenceDistanceOfOne()
114 if (getPtrStride(PSE, LoadPtr, L) != 1 || in isDependenceDistanceOfOne()
121 auto *LoadPtrSCEV = cast<SCEVAddRecExpr>(PSE.getSCEV(LoadPtr)); in isDependenceDistanceOfOne()
DGVN.cpp1297 Value *LoadPtr = LI->getPointerOperand(); in PerformLoadPRE() local
1300 PHITransAddr Address(LoadPtr, DL, AC); in PerformLoadPRE()
1301 LoadPtr = Address.PHITranslateWithInsertion( in PerformLoadPRE()
1303 if (!LoadPtr) { in PerformLoadPRE()
1310 if (LoadPtr) { in PerformLoadPRE()
1311 PHITransAddr Address(LoadPtr, DL, AC); in PerformLoadPRE()
1312 LoadPtr = Address.PHITranslateWithInsertion(LoadBB, UnavailablePred, *DT, in PerformLoadPRE()
1317 if (!LoadPtr) { in PerformLoadPRE()
1324 PredLoad.second = LoadPtr; in PerformLoadPRE()
1365 Value *LoadPtr = PredLoad.second; in PerformLoadPRE() local
[all …]
DNewGVN.cpp1417 NewGVN::performSymbolicLoadCoercion(Type *LoadType, Value *LoadPtr, in performSymbolicLoadCoercion() argument
1428 int Offset = analyzeLoadFromClobberingStore(LoadType, LoadPtr, DepSI, DL); in performSymbolicLoadCoercion()
1442 int Offset = analyzeLoadFromClobberingLoad(LoadType, LoadPtr, DepLI, DL); in performSymbolicLoadCoercion()
1454 int Offset = analyzeLoadFromClobberingMemInst(LoadType, LoadPtr, DepMI, DL); in performSymbolicLoadCoercion()
1467 if (LoadPtr != lookupOperandLeader(DepInst) && in performSymbolicLoadCoercion()
1468 !AA->isMustAlias(LoadPtr, DepInst)) in performSymbolicLoadCoercion()
/external/llvm-project/llvm/lib/Analysis/
DLoads.cpp410 Value *LoadPtr, Type *LoadTy, Value *StorePtr, Type *StoreTy, in AreNonOverlapSameBaseLoadAndStore() argument
412 APInt LoadOffset(DL.getTypeSizeInBits(LoadPtr->getType()), 0); in AreNonOverlapSameBaseLoadAndStore()
414 Value *LoadBase = LoadPtr->stripAndAccumulateConstantOffsets( in AreNonOverlapSameBaseLoadAndStore()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/GlobalISel/
DCombinerHelper.cpp1163 Register LoadPtr = Src; in optimizeMemcpy() local
1168 LoadPtr = MIB.buildPtrAdd(PtrTy, Src, Offset).getReg(0); in optimizeMemcpy()
1170 auto LdVal = MIB.buildLoad(CopyTy, LoadPtr, *LoadMMO); in optimizeMemcpy()
1261 Register LoadPtr = Src; in optimizeMemmove() local
1265 LoadPtr = MIB.buildPtrAdd(PtrTy, Src, Offset).getReg(0); in optimizeMemmove()
1267 LoadVals.push_back(MIB.buildLoad(CopyTy, LoadPtr, *LoadMMO).getReg(0)); in optimizeMemmove()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/
DR600ISelLowering.cpp1166 SDValue LoadPtr = BasePtr; in lowerPrivateTruncStore() local
1168 LoadPtr = DAG.getNode(ISD::ADD, DL, MVT::i32, BasePtr, Offset); in lowerPrivateTruncStore()
1173 SDValue Ptr = DAG.getNode(ISD::AND, DL, MVT::i32, LoadPtr, in lowerPrivateTruncStore()
1184 SDValue ByteIdx = DAG.getNode(ISD::AND, DL, MVT::i32, LoadPtr, in lowerPrivateTruncStore()
1396 SDValue LoadPtr = BasePtr; in lowerPrivateExtLoad() local
1398 LoadPtr = DAG.getNode(ISD::ADD, DL, MVT::i32, BasePtr, Offset); in lowerPrivateExtLoad()
1403 SDValue Ptr = DAG.getNode(ISD::AND, DL, MVT::i32, LoadPtr, in lowerPrivateExtLoad()
1413 LoadPtr, DAG.getConstant(0x3, DL, MVT::i32)); in lowerPrivateExtLoad()
/external/llvm-project/llvm/lib/Target/AMDGPU/
DR600ISelLowering.cpp1171 SDValue LoadPtr = BasePtr; in lowerPrivateTruncStore() local
1173 LoadPtr = DAG.getNode(ISD::ADD, DL, MVT::i32, BasePtr, Offset); in lowerPrivateTruncStore()
1178 SDValue Ptr = DAG.getNode(ISD::AND, DL, MVT::i32, LoadPtr, in lowerPrivateTruncStore()
1189 SDValue ByteIdx = DAG.getNode(ISD::AND, DL, MVT::i32, LoadPtr, in lowerPrivateTruncStore()
1402 SDValue LoadPtr = BasePtr; in lowerPrivateExtLoad() local
1404 LoadPtr = DAG.getNode(ISD::ADD, DL, MVT::i32, BasePtr, Offset); in lowerPrivateExtLoad()
1409 SDValue Ptr = DAG.getNode(ISD::AND, DL, MVT::i32, LoadPtr, in lowerPrivateExtLoad()
1419 LoadPtr, DAG.getConstant(0x3, DL, MVT::i32)); in lowerPrivateExtLoad()
/external/llvm-project/llvm/lib/CodeGen/GlobalISel/
DCombinerHelper.cpp1258 Register LoadPtr = Src; in optimizeMemcpy() local
1263 LoadPtr = MIB.buildPtrAdd(PtrTy, Src, Offset).getReg(0); in optimizeMemcpy()
1265 auto LdVal = MIB.buildLoad(CopyTy, LoadPtr, *LoadMMO); in optimizeMemcpy()
1354 Register LoadPtr = Src; in optimizeMemmove() local
1358 LoadPtr = MIB.buildPtrAdd(PtrTy, Src, Offset).getReg(0); in optimizeMemmove()
1360 LoadVals.push_back(MIB.buildLoad(CopyTy, LoadPtr, *LoadMMO).getReg(0)); in optimizeMemmove()
/external/llvm-project/llvm/lib/Transforms/InstCombine/
DInstCombineCalls.cpp280 Value *LoadPtr = II.getArgOperand(0); in simplifyMaskedLoad() local
287 return Builder.CreateAlignedLoad(II.getType(), LoadPtr, Alignment, in simplifyMaskedLoad()
292 if (isDereferenceablePointer(LoadPtr, II.getType(), in simplifyMaskedLoad()
294 Value *LI = Builder.CreateAlignedLoad(II.getType(), LoadPtr, Alignment, in simplifyMaskedLoad()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/
DInstCombineCalls.cpp1057 Value *LoadPtr = II.getArgOperand(0); in simplifyMaskedLoad() local
1063 return Builder.CreateAlignedLoad(II.getType(), LoadPtr, Alignment, in simplifyMaskedLoad()
1069 LoadPtr, II.getType(), MaybeAlign(Alignment), in simplifyMaskedLoad()
1071 Value *LI = Builder.CreateAlignedLoad(II.getType(), LoadPtr, Alignment, in simplifyMaskedLoad()
/external/llvm-project/llvm/lib/Target/Hexagon/
DHexagonLoopIdiomRecognition.cpp1971 Value *LoadPtr = LI->getPointerOperand(); in isLegalStore() local
1972 auto *LoadEv = dyn_cast<SCEVAddRecExpr>(SE->getSCEV(LoadPtr)); in isLegalStore()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Hexagon/
DHexagonLoopIdiomRecognition.cpp1952 Value *LoadPtr = LI->getPointerOperand(); in isLegalStore() local
1953 auto *LoadEv = dyn_cast<SCEVAddRecExpr>(SE->getSCEV(LoadPtr)); in isLegalStore()
/external/llvm/lib/Target/Mips/
DMipsISelLowering.cpp3791 SDValue LoadPtr = DAG.getNode(ISD::ADD, DL, PtrTy, Arg, in passByValArg() local
3793 SDValue LoadVal = DAG.getLoad(RegTy, DL, Chain, LoadPtr, in passByValArg()
3817 SDValue LoadPtr = DAG.getNode(ISD::ADD, DL, PtrTy, Arg, in passByValArg() local
3821 ISD::ZEXTLOAD, DL, RegTy, Chain, LoadPtr, MachinePointerInfo(), in passByValArg()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Mips/
DMipsISelLowering.cpp4378 SDValue LoadPtr = DAG.getNode(ISD::ADD, DL, PtrTy, Arg, in passByValArg() local
4380 SDValue LoadVal = DAG.getLoad(RegTy, DL, Chain, LoadPtr, in passByValArg()
4403 SDValue LoadPtr = DAG.getNode(ISD::ADD, DL, PtrTy, Arg, in passByValArg() local
4407 ISD::ZEXTLOAD, DL, RegTy, Chain, LoadPtr, MachinePointerInfo(), in passByValArg()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineCalls.cpp1062 Value *LoadPtr = II.getArgOperand(0); in simplifyMaskedLoad() local
1064 return Builder.CreateAlignedLoad(LoadPtr, Alignment, "unmaskedload"); in simplifyMaskedLoad()
/external/llvm-project/llvm/lib/Target/Mips/
DMipsISelLowering.cpp4393 SDValue LoadPtr = DAG.getNode(ISD::ADD, DL, PtrTy, Arg, in passByValArg() local
4395 SDValue LoadVal = DAG.getLoad(RegTy, DL, Chain, LoadPtr, in passByValArg()
4418 SDValue LoadPtr = DAG.getNode(ISD::ADD, DL, PtrTy, Arg, in passByValArg() local
4422 ISD::ZEXTLOAD, DL, RegTy, Chain, LoadPtr, MachinePointerInfo(), in passByValArg()

12