Home
last modified time | relevance | path

Searched refs:PtrDiff (Results 1 – 12 of 12) sorted by relevance

/llvm-project-15.0.7/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAGAddressAnalysis.cpp98 int64_t PtrDiff; in computeAliasing() local
100 BasePtr0.equalBaseIndex(BasePtr1, DAG, PtrDiff)) { in computeAliasing()
106 if (PtrDiff >= 0 && in computeAliasing()
111 IsAlias = !(*NumBytes0 <= PtrDiff); in computeAliasing()
114 if (PtrDiff < 0 && in computeAliasing()
119 IsAlias = !((PtrDiff + *NumBytes1) <= 0); in computeAliasing()
H A DDAGCombiner.cpp18165 int64_t PtrDiff; in getStoreMergeCandidates() local
18166 if (CandidateMatch(OtherStore, Ptr, PtrDiff) && in getStoreMergeCandidates()
18168 StoreNodes.push_back(MemOpLink(OtherStore, PtrDiff)); in getStoreMergeCandidates()
/llvm-project-15.0.7/llvm/lib/CodeGen/GlobalISel/
H A DLoadStoreOpt.cpp121 int64_t PtrDiff; in aliasIsKnownForLoadStore() local
123 PtrDiff = BasePtr1.Offset - BasePtr0.Offset; in aliasIsKnownForLoadStore()
129 if (PtrDiff >= 0 && in aliasIsKnownForLoadStore()
134 IsAlias = !(Size1 <= PtrDiff); in aliasIsKnownForLoadStore()
137 if (PtrDiff < 0 && in aliasIsKnownForLoadStore()
142 IsAlias = !((PtrDiff + Size2) <= 0); in aliasIsKnownForLoadStore()
/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DLoopDataPrefetch.cpp254 int64_t PtrDiff = 0) { in addInstruction()
268 if (isa<StoreInst>(I) && PtrDiff == 0) in addInstruction()
358 const SCEV *PtrDiff = SE->getMinusSCEV(LSCEVAddRec, Pref.LSCEVAddRec); in runOnLoop() local
360 dyn_cast<SCEVConstant>(PtrDiff)) { in runOnLoop()
/llvm-project-15.0.7/clang/lib/AST/
H A DItaniumCXXABI.cpp227 TargetInfo::IntType PtrDiff = Target.getPtrDiffType(0); in getMemberPointerInfo() local
229 MPI.Width = Target.getTypeWidth(PtrDiff); in getMemberPointerInfo()
230 MPI.Align = Target.getTypeAlign(PtrDiff); in getMemberPointerInfo()
/llvm-project-15.0.7/clang/unittests/Sema/
H A DCodeCompleteTest.cpp209 std::string PtrDiff; in TEST() local
210 auto Types = collectPreferredTypes(Code, &PtrDiff); in TEST()
211 EXPECT_THAT(Types, Each(PtrDiff)); in TEST()
/llvm-project-15.0.7/llvm/lib/Support/
H A DSourceMgr.cpp106 ptrdiff_t PtrDiff = Ptr - BufStart; in getLineNumberSpecialized() local
107 assert(PtrDiff >= 0 && in getLineNumberSpecialized()
108 static_cast<size_t>(PtrDiff) <= std::numeric_limits<T>::max()); in getLineNumberSpecialized()
109 T PtrOffset = static_cast<T>(PtrDiff); in getLineNumberSpecialized()
/llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/readability/
H A Didentifier-naming-hungarian-notation-cfgfile.cpp393 ptrdiff_t PtrDiff = NULL; variable
H A Didentifier-naming-hungarian-notation.cpp393 ptrdiff_t PtrDiff = NULL; variable
/llvm-project-15.0.7/clang/lib/Sema/
H A DOpenCLBuiltins.td372 def PtrDiff : Type<"ptrdiff_t", QualType<"Context.getPointerDiffType()">>;
1141 [AtomicUIntPtr, UIntPtr, PtrDiff]] in {
/llvm-project-15.0.7/llvm/lib/Transforms/Utils/
H A DSimplifyLibCalls.cpp2852 Value *PtrDiff = B.CreatePtrDiff(B.getInt8Ty(), V, Dest); in optimizeSPrintFString() local
2853 return B.CreateIntCast(PtrDiff, CI->getType(), false); in optimizeSPrintFString()
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCGOpenMPRuntimeGPU.cpp1811 llvm::Value *PtrDiff = Bld.CreatePtrDiff( in shuffleAndStore() local
1815 Bld.CreateCondBr(Bld.CreateICmpSGT(PtrDiff, Bld.getInt64(IntSize - 1)), in shuffleAndStore()