/external/llvm-project/llvm/lib/Transforms/Utils/ |
D | VNCoercion.cpp | 176 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/ |
D | VNCoercion.cpp | 163 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/ |
D | VNCoercion.h | 54 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/ |
D | VNCoercion.h | 54 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/ |
D | GVN.cpp | 810 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 …]
|
D | LoopLoadElimination.cpp | 67 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/ |
D | LoopLoadElimination.cpp | 100 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()
|
D | GVN.cpp | 1175 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 …]
|
D | NewGVN.cpp | 1416 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/ |
D | LoopLoadElimination.cpp | 101 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()
|
D | GVN.cpp | 1297 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 …]
|
D | NewGVN.cpp | 1417 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/ |
D | Loads.cpp | 410 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/ |
D | CombinerHelper.cpp | 1163 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/ |
D | R600ISelLowering.cpp | 1166 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/ |
D | R600ISelLowering.cpp | 1171 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/ |
D | CombinerHelper.cpp | 1258 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/ |
D | InstCombineCalls.cpp | 280 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/ |
D | InstCombineCalls.cpp | 1057 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/ |
D | HexagonLoopIdiomRecognition.cpp | 1971 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/ |
D | HexagonLoopIdiomRecognition.cpp | 1952 Value *LoadPtr = LI->getPointerOperand(); in isLegalStore() local 1953 auto *LoadEv = dyn_cast<SCEVAddRecExpr>(SE->getSCEV(LoadPtr)); in isLegalStore()
|
/external/llvm/lib/Target/Mips/ |
D | MipsISelLowering.cpp | 3791 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/ |
D | MipsISelLowering.cpp | 4378 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/ |
D | InstCombineCalls.cpp | 1062 Value *LoadPtr = II.getArgOperand(0); in simplifyMaskedLoad() local 1064 return Builder.CreateAlignedLoad(LoadPtr, Alignment, "unmaskedload"); in simplifyMaskedLoad()
|
/external/llvm-project/llvm/lib/Target/Mips/ |
D | MipsISelLowering.cpp | 4393 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()
|