Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAGAddressAnalysis.cpp106 int64_t PtrDiff; in computeAliasing() local
107 if (BasePtr0.equalBaseIndex(BasePtr1, DAG, PtrDiff)) { in computeAliasing()
111 if (PtrDiff >= 0 && NumBytes0.hasValue() && !NumBytes0.isScalable()) { in computeAliasing()
116 PtrDiff); in computeAliasing()
119 if (PtrDiff < 0 && NumBytes1.hasValue() && !NumBytes1.isScalable()) { in computeAliasing()
123 IsAlias = !((PtrDiff + static_cast<int64_t>( in computeAliasing()
H A DDAGCombiner.cpp20518 int64_t PtrDiff; in getStoreMergeCandidates() local
20519 if (CandidateMatch(OtherStore, Ptr, PtrDiff) && in getStoreMergeCandidates()
20521 StoreNodes.push_back(MemOpLink(OtherStore, PtrDiff)); in getStoreMergeCandidates()
/freebsd/contrib/llvm-project/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()
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DItaniumCXXABI.cpp228 TargetInfo::IntType PtrDiff = Target.getPtrDiffType(LangAS::Default); in getMemberPointerInfo() local
230 MPI.Width = Target.getTypeWidth(PtrDiff); in getMemberPointerInfo()
231 MPI.Align = Target.getTypeAlign(PtrDiff); in getMemberPointerInfo()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DLoadStoreOpt.cpp122 int64_t PtrDiff; in aliasIsKnownForLoadStore() local
125 PtrDiff = BasePtr1.getOffset() - BasePtr0.getOffset(); in aliasIsKnownForLoadStore()
131 if (PtrDiff >= 0 && Size1.hasValue() && !Size1.isScalable()) { in aliasIsKnownForLoadStore()
135 IsAlias = !((int64_t)Size1.getValue() <= PtrDiff); in aliasIsKnownForLoadStore()
138 if (PtrDiff < 0 && Size2.hasValue() && !Size2.isScalable()) { in aliasIsKnownForLoadStore()
142 IsAlias = !((PtrDiff + (int64_t)Size2.getValue()) <= 0); in aliasIsKnownForLoadStore()
/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DSourceMgr.cpp110 ptrdiff_t PtrDiff = Ptr - BufStart; in getLineNumberSpecialized() local
111 assert(PtrDiff >= 0 && in getLineNumberSpecialized()
112 static_cast<size_t>(PtrDiff) <= std::numeric_limits<T>::max()); in getLineNumberSpecialized()
113 T PtrOffset = static_cast<T>(PtrDiff); in getLineNumberSpecialized()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DOpenCLBuiltins.td373 def PtrDiff : Type<"ptrdiff_t", QualType<"Context.getPointerDiffType()">>;
1142 [AtomicUIntPtr, UIntPtr, PtrDiff]] in {
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DSimplifyLibCalls.cpp3341 Value *PtrDiff = B.CreatePtrDiff(B.getInt8Ty(), V, Dest); in optimizeSPrintFString() local
3342 return B.CreateIntCast(PtrDiff, CI->getType(), false); in optimizeSPrintFString()
/freebsd/contrib/llvm-project/llvm/lib/Frontend/OpenMP/
H A DOMPIRBuilder.cpp2333 Value *PtrDiff = Builder.CreatePtrDiff( in shuffleAndStore() local
2337 Builder.CreateICmpSGT(PtrDiff, Builder.getInt64(IntSize - 1)), ThenBB, in shuffleAndStore()
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVISelLowering.cpp16199 using PtrDiff = std::pair<std::variant<int64_t, SDValue>, bool>; in performCONCAT_VECTORSCombine()
16201 LoadSDNode *Ld2) -> std::optional<PtrDiff> { in performCONCAT_VECTORSCombine()
16196 using PtrDiff = std::pair<std::variant<int64_t, SDValue>, bool>; performCONCAT_VECTORSCombine() typedef