Home
last modified time | relevance | path

Searched refs:OldPtr (Results 1 – 7 of 7) sorted by relevance

/freebsd/contrib/llvm-project/compiler-rt/lib/scudo/standalone/
H A Dcombined.h491 void *reallocate(void *OldPtr, uptr NewSize, uptr Alignment = MinAlignment) {
502 DCHECK_NE(OldPtr, nullptr);
506 if (UNLIKELY(GuardedAlloc.pointerIsMine(OldPtr))) {
507 uptr OldSize = GuardedAlloc.getSize(OldPtr);
510 memcpy(NewPtr, OldPtr, (NewSize < OldSize) ? NewSize : OldSize);
511 GuardedAlloc.deallocate(OldPtr);
520 void *OldTaggedPtr = OldPtr;
521 OldPtr = getHeaderTaggedPointer(OldPtr);
523 if (UNLIKELY(!isAligned(reinterpret_cast<uptr>(OldPtr), MinAlignment)))
524 reportMisalignedPointer(AllocatorAction::Reallocating, OldPtr);
[all …]
H A Dwrappers_c.inc209 reportReallocAllocation(/*OldPtr=*/ptr, NewPtr, size);
213 reportReallocAllocation(/*OldPtr=*/ptr, /*NewPtr=*/ptr,
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DUser.cpp85 auto *OldPtr = reinterpret_cast<char *>(OldOps + OldNumUses); in growHungoffUses() local
87 std::copy(OldPtr, OldPtr + (OldNumUses * sizeof(BasicBlock *)), NewPtr); in growHungoffUses()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DSROA.cpp2748 Instruction *OldPtr = nullptr; member in __anondf5662880e11::AllocaSliceRewriter
2825 OldPtr = cast<Instruction>(OldUse->get()); in visit()
2856 StringRef OldName = OldPtr->getName(); in getNewAllocaSlicePtr()
2952 assert(OldOp == OldPtr); in visitLoadInst()
3133 assert(OldOp == OldPtr); in visitStoreInst()
3235 assert(II.getRawDest() == OldPtr); in visitMemSetInst()
3244 II.setDest(getNewAllocaSlicePtr(IRB, OldPtr->getType())); in visitMemSetInst()
3252 deleteIfTriviallyDead(OldPtr); in visitMemSetInst()
3285 getNewAllocaSlicePtr(IRB, OldPtr->getType()), II.getValue(), Size, in visitMemSetInst()
3384 assert((IsDest && II.getRawDest() == OldPtr) || in visitMemTransferInst()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Lex/
H A DLexer.cpp2664 const char *OldPtr = CurPtr; in SkipLineComment() local
2672 if (C != 0 && CurPtr == OldPtr+1) { in SkipLineComment()
2680 if (CurPtr != OldPtr + 1 && C != '/' && in SkipLineComment()
2682 for (; OldPtr != CurPtr; ++OldPtr) in SkipLineComment()
2683 if (OldPtr[0] == '\n' || OldPtr[0] == '\r') { in SkipLineComment()
2695 Diag(OldPtr-1, diag::ext_multi_line_line_comment); in SkipLineComment()
/freebsd/contrib/ntp/util/
H A Dtg2.c599 int OldPtr = 0; local
1526 OldPtr = 0;
/freebsd/contrib/llvm-project/clang/lib/AST/ByteCode/
H A DInterp.h3260 const FromT &OldPtr = S.Stk.pop<FromT>(); in DecayPtr() local
3264 S.Stk.push<Pointer>(OldPtr.getFunction(), OldPtr.getOffset()); in DecayPtr()
3268 if (OldPtr.isFunctionPointer()) { in DecayPtr()
3269 S.Stk.push<FunctionPointer>(OldPtr.asFunctionPointer().getFunction(), in DecayPtr()
3270 OldPtr.getByteOffset()); in DecayPtr()
3275 S.Stk.push<ToT>(ToT(OldPtr.getIntegerRepresentation(), nullptr)); in DecayPtr()