Home
last modified time | relevance | path

Searched refs:NewPtr (Results 1 – 24 of 24) sorted by relevance

/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DScalarizeMaskedMemIntrin.cpp670 Value *NewPtr = in scalarizeMaskedExpandLoad() local
672 InsertElt = Builder.CreateAlignedLoad(EltTy, NewPtr, Align(1), in scalarizeMaskedExpandLoad()
730 Value *NewPtr; in scalarizeMaskedExpandLoad() local
732 NewPtr = Builder.CreateConstInBoundsGEP1_32(EltTy, Ptr, 1); in scalarizeMaskedExpandLoad()
750 PtrPhi->addIncoming(NewPtr, CondBlock); in scalarizeMaskedExpandLoad()
790 Value *NewPtr = Builder.CreateConstInBoundsGEP1_32(EltTy, Ptr, MemIndex); in scalarizeMaskedCompressStore() local
791 Builder.CreateAlignedStore(OneElt, NewPtr, Align(1)); in scalarizeMaskedCompressStore()
840 Value *NewPtr; in scalarizeMaskedCompressStore() local
842 NewPtr = Builder.CreateConstInBoundsGEP1_32(EltTy, Ptr, 1); in scalarizeMaskedCompressStore()
855 PtrPhi->addIncoming(NewPtr, CondBlock); in scalarizeMaskedCompressStore()
H A DInferAddressSpaces.cpp558 Value *NewPtr = operandWithNewAddressSpaceOrCreateUndef( in cloneInstructionWithNewAddressSpace() local
562 TTI->rewriteIntrinsicWithAddressSpace(II, II->getArgOperand(0), NewPtr); in cloneInstructionWithNewAddressSpace()
H A DSROA.cpp2730 Value *NewPtr = getNewAllocaSlicePtr(IRB, V->getType()->getPointerTo(AS)); in visitStoreInst() local
2732 IRB.CreateAlignedStore(V, NewPtr, getSliceAlign(), SI.isVolatile()); in visitStoreInst()
3200 Value *NewPtr = getNewAllocaSlicePtr(IRB, OldPtr->getType()); in visitPHINode() local
3202 std::replace(PN.op_begin(), PN.op_end(), cast<Value>(OldPtr), NewPtr); in visitPHINode()
3224 Value *NewPtr = getNewAllocaSlicePtr(IRB, OldPtr->getType()); in visitSelectInst() local
3227 SI.setOperand(1, NewPtr); in visitSelectInst()
3229 SI.setOperand(2, NewPtr); in visitSelectInst()
/freebsd-13.1/contrib/llvm-project/compiler-rt/lib/scudo/
H A Dscudo_allocator.cpp500 void *NewPtr = allocate(NewSize, MinAlignment, FromMalloc); in reallocate() local
501 if (NewPtr) in reallocate()
502 memcpy(NewPtr, OldPtr, (NewSize < OldSize) ? NewSize : OldSize); in reallocate()
504 return NewPtr; in reallocate()
534 void *NewPtr = allocate(NewSize, MinAlignment, FromMalloc); in reallocate() local
535 if (NewPtr) { in reallocate()
538 memcpy(NewPtr, OldPtr, Min(NewSize, UsableSize)); in reallocate()
541 return NewPtr; in reallocate()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUOpenCLEnqueuedBlockLowering.cpp131 auto *NewPtr = ConstantExpr::getPointerCast(GV, BitCast->getType()); in runOnModule() local
132 BitCast->replaceAllUsesWith(NewPtr); in runOnModule()
H A DAMDGPULateCodeGenPrepare.cpp167 auto *NewPtr = IRB.CreateBitCast( in visitLoadInst() local
173 LoadInst *NewLd = IRB.CreateAlignedLoad(IRB.getInt32Ty(), NewPtr, Align(4)); in visitLoadInst()
H A DR600ISelLowering.cpp1727 SDValue NewPtr = DAG.getNode(ISD::ADD, DL, Ptr.getValueType(), Ptr, in constBufferLoad() local
1729 Slots[i] = DAG.getNode(AMDGPUISD::CONST_ADDRESS, DL, MVT::i32, NewPtr); in constBufferLoad()
H A DSIISelLowering.cpp8926 SDValue NewPtr = performSHLPtrCombine(Ptr.getNode(), N->getAddressSpace(), in performMemSDNodeCombine() local
8928 if (NewPtr) { in performMemSDNodeCombine()
8931 NewOps[PtrIdx] = NewPtr; in performMemSDNodeCombine()
/freebsd-13.1/contrib/llvm-project/compiler-rt/lib/scudo/standalone/
H A Dcombined.h580 if (NewPtr)
581 memcpy(NewPtr, OldPtr, (NewSize < OldSize) ? NewSize : OldSize);
587 return NewPtr;
656 void *NewPtr = allocate(NewSize, Chunk::Origin::Malloc, Alignment); variable
657 if (LIKELY(NewPtr)) {
658 memcpy(NewPtr, OldTaggedPtr, Min(NewSize, OldSize));
661 return NewPtr;
1182 void resizeTaggedChunk(uptr OldPtr, uptr NewPtr, uptr NewSize, in resizeTaggedChunk() argument
1186 if (RoundOldPtr >= NewPtr) { in resizeTaggedChunk()
1189 RoundNewPtr = roundUpTo(NewPtr, archMemoryTagGranuleSize()); in resizeTaggedChunk()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/IR/
H A DUser.cpp80 auto *NewPtr = reinterpret_cast<char *>(NewOps + NewNumUses); in growHungoffUses() local
81 std::copy(OldPtr, OldPtr + (OldNumUses * sizeof(BasicBlock *)), NewPtr); in growHungoffUses()
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DMemoryLocation.h292 MemoryLocation getWithNewPtr(const Value *NewPtr) const { in getWithNewPtr() argument
294 Copy.Ptr = NewPtr; in getWithNewPtr()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/PowerPC/
H A DPPCLoopInstrFormPrep.cpp648 GetElementPtrInst *NewPtr = GetElementPtrInst::Create( in rewriteLoadStores() local
652 NewPtr->insertAfter(cast<Instruction>(PtrInc)); in rewriteLoadStores()
653 NewPtr->setIsInBounds(IsPtrInBounds(Ptr)); in rewriteLoadStores()
654 RealNewPtr = NewPtr; in rewriteLoadStores()
/freebsd-13.1/contrib/llvm-project/clang/lib/CodeGen/
H A DCGExprCXX.cpp957 QualType AllocType, Address NewPtr, in StoreAnyExprIntoOneUnit() argument
963 CGF.MakeAddrLValue(NewPtr, AllocType), false); in StoreAnyExprIntoOneUnit()
966 CGF.EmitComplexExprIntoLValue(Init, CGF.MakeAddrLValue(NewPtr, AllocType), in StoreAnyExprIntoOneUnit()
971 = AggValueSlot::forAddr(NewPtr, AllocType.getQualifiers(), in StoreAnyExprIntoOneUnit()
1296 Address NewPtr, llvm::Value *NumElements, in EmitNewInitializer() argument
1300 CGF.EmitNewArrayInitializer(E, ElementType, ElementTy, NewPtr, NumElements, in EmitNewInitializer()
1303 StoreAnyExprIntoOneUnit(CGF, Init, E->getAllocatedType(), NewPtr, in EmitNewInitializer()
1491 Address NewPtr, in EnterNewDeleteCleanup() argument
1513 NewPtr.getPointer(), in EnterNewDeleteCleanup()
1527 DominatingValue<RValue>::save(CGF, RValue::get(NewPtr.getPointer())); in EnterNewDeleteCleanup()
H A DCGCXXABI.cpp176 Address NewPtr, in InitializeArrayCookie() argument
H A DCGCXXABI.h529 Address NewPtr,
H A DItaniumCXXABI.cpp314 Address NewPtr,
487 Address NewPtr,
2199 Address NewPtr, in InitializeArrayCookie() argument
2205 unsigned AS = NewPtr.getAddressSpace(); in InitializeArrayCookie()
2216 Address CookiePtr = NewPtr; in InitializeArrayCookie()
2241 return CGF.Builder.CreateConstInBoundsByteGEP(NewPtr, CookieSize); in InitializeArrayCookie()
3881 llvm::Constant *NewPtr = in BuildTypeInfo() local
3883 OldGV->replaceAllUsesWith(NewPtr); in BuildTypeInfo()
H A DCodeGenFunction.h2863 llvm::Type *ElementTy, Address NewPtr,
H A DMicrosoftCXXABI.cpp444 Address NewPtr,
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineLoadStoreAlloca.cpp479 Value *NewPtr = nullptr; in combineLoadToNewType() local
480 if (!(match(Ptr, m_BitCast(m_Value(NewPtr))) && in combineLoadToNewType()
481 NewPtr->getType() == NewPtrTy)) in combineLoadToNewType()
482 NewPtr = Builder.CreateBitCast(Ptr, NewPtrTy); in combineLoadToNewType()
485 NewTy, NewPtr, LI.getAlign(), LI.isVolatile(), LI.getName() + Suffix); in combineLoadToNewType()
H A DInstCombineVectorOps.cpp474 Value *NewPtr = GEP->getPointerOperand(); in visitExtractElementInst() local
475 if (isa<VectorType>(NewPtr->getType())) in visitExtractElementInst()
476 NewPtr = Builder.CreateExtractElement(NewPtr, IndexC); in visitExtractElementInst()
488 cast<PointerType>(NewPtr->getType())->getElementType(), NewPtr, in visitExtractElementInst()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DGlobalOpt.cpp608 Value *NewPtr = NewGlobals[ElementIdx]; in SRAGlobal() local
618 NewPtr = in SRAGlobal()
619 ConstantExpr::getGetElementPtr(NewTy, cast<Constant>(NewPtr), Idxs); in SRAGlobal()
626 NewPtr = GetElementPtrInst::Create( in SRAGlobal()
627 NewTy, NewPtr, Idxs, GEPI->getName() + "." + Twine(ElementIdx), in SRAGlobal()
631 GEP->replaceAllUsesWith(NewPtr); in SRAGlobal()
634 for (User *U : NewPtr->users()) { in SRAGlobal()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64StackTagging.cpp518 auto *NewPtr = new BitCastInst(NewAI, Info.AI->getType(), "", Info.AI); in alignAndPadAlloca() local
519 Info.AI->replaceAllUsesWith(NewPtr); in alignAndPadAlloca()
/freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DDAGCombiner.cpp9053 SDValue NewPtr = DAG.getMemBasePlusOffset( in visitFunnelShift() local
9055 AddToWorklist(NewPtr.getNode()); in visitFunnelShift()
9057 VT, DL, RHS->getChain(), NewPtr, in visitFunnelShift()
11946 SDValue NewPtr = DAG.getMemBasePlusOffset(LN0->getBasePtr(), in ReduceLoadWidth() local
11948 AddToWorklist(NewPtr.getNode()); in ReduceLoadWidth()
11952 Load = DAG.getLoad(VT, DL, LN0->getChain(), NewPtr, in ReduceLoadWidth()
11956 Load = DAG.getExtLoad(ExtType, DL, VT, LN0->getChain(), NewPtr, in ReduceLoadWidth()
16739 SDValue NewPtr = in ReduceLoadOpStoreWidth() local
16742 DAG.getLoad(NewVT, SDLoc(N0), LD->getChain(), NewPtr, in ReduceLoadOpStoreWidth()
16749 DAG.getStore(Chain, SDLoc(N), NewVal, NewPtr, in ReduceLoadOpStoreWidth()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/ARM/
H A DARMISelLowering.cpp5524 SDValue NewPtr = DAG.getNode(ISD::ADD, dl, in expandf64Toi32() local
5526 RetVal2 = DAG.getLoad(MVT::i32, dl, Ld->getChain(), NewPtr, in expandf64Toi32()
15674 SDValue NewPtr = in PerformSplittingToNarrowingStores() local
15687 Ch, DL, Extract, NewPtr, St->getPointerInfo().getWithOffset(NewOffset), in PerformSplittingToNarrowingStores()
15723 SDValue NewPtr = in PerformSplittingMVETruncToNarrowingStores() local
15728 Ch, DL, Extract, NewPtr, St->getPointerInfo().getWithOffset(NewOffset), in PerformSplittingMVETruncToNarrowingStores()
16671 SDValue NewPtr = in PerformSplittingToWideningLoad() local
16675 DAG.getLoad(ISD::UNINDEXED, NewExtType, NewToVT, DL, Ch, NewPtr, Offset, in PerformSplittingToWideningLoad()
17533 SDValue NewPtr = in PerformSplittingMVEEXTToWideningLoad() local
17537 DAG.getLoad(ISD::UNINDEXED, NewExtType, NewToVT, DL, Ch, NewPtr, Offset, in PerformSplittingMVEEXTToWideningLoad()