Home
last modified time | relevance | path

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

/external/llvm-project/compiler-rt/lib/scudo/
Dscudo_allocator.cpp491 void *reallocate(void *OldPtr, uptr NewSize) { in reallocate()
495 if (UNLIKELY(GuardedAlloc.pointerIsMine(OldPtr))) { in reallocate()
496 size_t OldSize = GuardedAlloc.getSize(OldPtr); in reallocate()
499 memcpy(NewPtr, OldPtr, (NewSize < OldSize) ? NewSize : OldSize); in reallocate()
500 GuardedAlloc.deallocate(OldPtr); in reallocate()
505 if (UNLIKELY(!Chunk::isAligned(OldPtr))) in reallocate()
507 OldPtr); in reallocate()
509 Chunk::loadHeader(OldPtr, &OldHeader); in reallocate()
512 OldPtr); in reallocate()
516 "%p\n", OldPtr); in reallocate()
[all …]
/external/llvm-project/compiler-rt/lib/scudo/standalone/
Dcombined.h522 void *reallocate(void *OldPtr, uptr NewSize, uptr Alignment = MinAlignment) {
532 void *OldTaggedPtr = OldPtr;
533 OldPtr = untagPointerMaybe(OldPtr);
536 DCHECK_NE(OldPtr, nullptr);
540 if (UNLIKELY(GuardedAlloc.pointerIsMine(OldPtr))) {
541 uptr OldSize = GuardedAlloc.getSize(OldPtr);
544 memcpy(NewPtr, OldPtr, (NewSize < OldSize) ? NewSize : OldSize);
545 GuardedAlloc.deallocate(OldPtr);
550 if (UNLIKELY(!isAligned(reinterpret_cast<uptr>(OldPtr), MinAlignment)))
551 reportMisalignedPointer(AllocatorAction::Reallocating, OldPtr);
[all …]
Dmemtag.h158 inline void resizeTaggedChunk(uptr OldPtr, uptr NewPtr, uptr BlockEnd) { in resizeTaggedChunk() argument
159 uptr RoundOldPtr = roundUpTo(OldPtr, 16); in resizeTaggedChunk()
246 inline void resizeTaggedChunk(uptr OldPtr, uptr NewPtr, uptr BlockEnd) { in resizeTaggedChunk() argument
247 (void)OldPtr; in resizeTaggedChunk()
/external/scudo/standalone/
Dcombined.h566 void *reallocate(void *OldPtr, uptr NewSize, uptr Alignment = MinAlignment) {
576 void *OldTaggedPtr = OldPtr;
577 OldPtr = getHeaderTaggedPointer(OldPtr);
580 DCHECK_NE(OldPtr, nullptr);
584 if (UNLIKELY(GuardedAlloc.pointerIsMine(OldPtr))) {
585 uptr OldSize = GuardedAlloc.getSize(OldPtr);
588 memcpy(NewPtr, OldPtr, (NewSize < OldSize) ? NewSize : OldSize);
589 GuardedAlloc.deallocate(OldPtr);
598 if (UNLIKELY(!isAligned(reinterpret_cast<uptr>(OldPtr), MinAlignment)))
599 reportMisalignedPointer(AllocatorAction::Reallocating, OldPtr);
[all …]
/external/llvm-project/llvm/lib/IR/
DUser.cpp75 auto *OldPtr = reinterpret_cast<char *>(OldOps + OldNumUses); in growHungoffUses() local
77 std::copy(OldPtr, OldPtr + (OldNumUses * sizeof(BasicBlock *)), NewPtr); in growHungoffUses()
/external/llvm/lib/IR/
DUser.cpp81 auto *OldPtr = in growHungoffUses() local
85 std::copy(OldPtr, OldPtr + (OldNumUses * sizeof(BasicBlock *)), NewPtr); in growHungoffUses()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/IR/
DUser.cpp76 auto *OldPtr = in growHungoffUses() local
80 std::copy(OldPtr, OldPtr + (OldNumUses * sizeof(BasicBlock *)), NewPtr); in growHungoffUses()
/external/compiler-rt/lib/scudo/
Dscudo_allocator.cpp465 void *reallocate(void *OldPtr, uptr NewSize) { in reallocate()
469 uptr Size = getUsableSize(OldPtr, &OldHeader); in reallocate()
470 uptr ChunkBeg = reinterpret_cast<uptr>(OldPtr); in reallocate()
482 return OldPtr; in reallocate()
489 memcpy(NewPtr, OldPtr, Min(NewSize, OldSize)); in reallocate()
/external/llvm/lib/Transforms/Scalar/
DSROA.cpp2188 Instruction *OldPtr; member in llvm::sroa::AllocaSliceRewriter
2219 OldPtr(), PHIUsers(PHIUsers), SelectUsers(SelectUsers), in AllocaSliceRewriter()
2249 OldPtr = cast<Instruction>(OldUse->get()); in visit()
2279 StringRef OldName = OldPtr->getName(); in getNewAllocaSlicePtr()
2373 assert(OldOp == OldPtr); in visitLoadInst()
2498 assert(OldOp == OldPtr); in visitStoreInst()
2597 assert(II.getRawDest() == OldPtr); in visitMemSetInst()
2604 II.setDest(getNewAllocaSlicePtr(IRB, OldPtr->getType())); in visitMemSetInst()
2608 deleteIfTriviallyDead(OldPtr); in visitMemSetInst()
2629 getNewAllocaSlicePtr(IRB, OldPtr->getType()), II.getValue(), Size, in visitMemSetInst()
[all …]
/external/llvm-project/llvm/lib/Transforms/Scalar/
DSROA.cpp2326 Instruction *OldPtr = nullptr; member in llvm::sroa::AllocaSliceRewriter
2388 OldPtr = cast<Instruction>(OldUse->get()); in visit()
2419 StringRef OldName = OldPtr->getName(); in getNewAllocaSlicePtr()
2512 assert(OldOp == OldPtr); in visitLoadInst()
2673 assert(OldOp == OldPtr); in visitStoreInst()
2782 assert(II.getRawDest() == OldPtr); in visitMemSetInst()
2792 II.setDest(getNewAllocaSlicePtr(IRB, OldPtr->getType())); in visitMemSetInst()
2795 deleteIfTriviallyDead(OldPtr); in visitMemSetInst()
2827 getNewAllocaSlicePtr(IRB, OldPtr->getType()), II.getValue(), Size, in visitMemSetInst()
2914 assert((IsDest && II.getRawDest() == OldPtr) || in visitMemTransferInst()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
DSROA.cpp2306 Instruction *OldPtr = nullptr; member in llvm::sroa::AllocaSliceRewriter
2366 OldPtr = cast<Instruction>(OldUse->get()); in visit()
2396 StringRef OldName = OldPtr->getName(); in getNewAllocaSlicePtr()
2494 assert(OldOp == OldPtr); in visitLoadInst()
2651 assert(OldOp == OldPtr); in visitStoreInst()
2759 assert(II.getRawDest() == OldPtr); in visitMemSetInst()
2769 II.setDest(getNewAllocaSlicePtr(IRB, OldPtr->getType())); in visitMemSetInst()
2772 deleteIfTriviallyDead(OldPtr); in visitMemSetInst()
2804 getNewAllocaSlicePtr(IRB, OldPtr->getType()), II.getValue(), Size, in visitMemSetInst()
2888 assert((IsDest && II.getRawDest() == OldPtr) || in visitMemTransferInst()
[all …]
/external/clang/lib/Lex/
DLexer.cpp2096 const char *OldPtr = CurPtr; in SkipLineComment() local
2104 if (C != 0 && CurPtr == OldPtr+1) { in SkipLineComment()
2112 if (CurPtr != OldPtr+1 && C != '/' && CurPtr[0] != '/') { in SkipLineComment()
2113 for (; OldPtr != CurPtr; ++OldPtr) in SkipLineComment()
2114 if (OldPtr[0] == '\n' || OldPtr[0] == '\r') { in SkipLineComment()
2126 Diag(OldPtr-1, diag::ext_multi_line_line_comment); in SkipLineComment()
/external/llvm-project/clang/lib/Lex/
DLexer.cpp2326 const char *OldPtr = CurPtr; in SkipLineComment() local
2334 if (C != 0 && CurPtr == OldPtr+1) { in SkipLineComment()
2342 if (CurPtr != OldPtr + 1 && C != '/' && in SkipLineComment()
2344 for (; OldPtr != CurPtr; ++OldPtr) in SkipLineComment()
2345 if (OldPtr[0] == '\n' || OldPtr[0] == '\r') { in SkipLineComment()
2357 Diag(OldPtr-1, diag::ext_multi_line_line_comment); in SkipLineComment()