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.cpp107 int64_t PtrDiff; in computeAliasing() local
109 BasePtr0.equalBaseIndex(BasePtr1, DAG, PtrDiff)) { in computeAliasing()
115 if (PtrDiff >= 0 && in computeAliasing()
120 IsAlias = !(*NumBytes0 <= PtrDiff); in computeAliasing()
123 if (PtrDiff < 0 && in computeAliasing()
128 IsAlias = !((PtrDiff + *NumBytes1) <= 0); in computeAliasing()
H A DDAGCombiner.cpp20159 int64_t PtrDiff; in getStoreMergeCandidates() local
20160 if (CandidateMatch(OtherStore, Ptr, PtrDiff) && in getStoreMergeCandidates()
20162 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 && in aliasIsKnownForLoadStore()
136 IsAlias = !(Size1 <= PtrDiff); in aliasIsKnownForLoadStore()
139 if (PtrDiff < 0 && in aliasIsKnownForLoadStore()
144 IsAlias = !((PtrDiff + Size2) <= 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/CodeGen/
H A DCGOpenMPRuntimeGPU.cpp1513 llvm::Value *PtrDiff = Bld.CreatePtrDiff( in shuffleAndStore() local
1517 Bld.CreateCondBr(Bld.CreateICmpSGT(PtrDiff, Bld.getInt64(IntSize - 1)), in shuffleAndStore()
/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.cpp3107 Value *PtrDiff = B.CreatePtrDiff(B.getInt8Ty(), V, Dest); in optimizeSPrintFString() local
3108 return B.CreateIntCast(PtrDiff, CI->getType(), false); in optimizeSPrintFString()
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVISelLowering.cpp14855 using PtrDiff = std::pair<std::variant<int64_t, SDValue>, bool>; in performCONCAT_VECTORSCombine() typedef
14857 LoadSDNode *Ld2) -> std::optional<PtrDiff> { in performCONCAT_VECTORSCombine()