Home
last modified time | relevance | path

Searched refs:VPtr (Results 1 – 17 of 17) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DIndirectCallPromotion.cpp156 Instruction *VPtr; member
359 bool tryToPromoteWithFuncCmp(CallBase &CB, Instruction *VPtr,
370 CallBase &CB, Instruction *VPtr, ArrayRef<PromotionCandidate> Candidates,
400 void updateVPtrValueProfiles(Instruction *VPtr,
556 Instruction *VPtr = VirtualCallInfo.VPtr; in computeVTableInfos() local
564 getValueProfDataFromInst(*VirtualCallInfo.VPtr, IPVK_VTableTarget, in computeVTableInfos()
567 return VPtr; in computeVTableInfos()
605 return VPtr; in computeVTableInfos()
644 CallBase &CB, Instruction *VPtr, ArrayRef<PromotionCandidate> Candidates, in tryToPromoteWithFuncCmp() argument
685 updateVPtrValueProfiles(VPtr, VTableGUIDCounts); in tryToPromoteWithFuncCmp()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DIndirectCallVisitor.h70 Instruction *VPtr = in visitCallBase() local
72 if (VPtr) in visitCallBase()
73 ProfiledAddresses.push_back(VPtr); in visitCallBase()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DTypeMetadataUtils.cpp55 const Module *M, SmallVectorImpl<DevirtCallSite> &DevirtCalls, Value *VPtr, in findLoadCallsAtConstantOffset() argument
57 if (!VPtr->hasUseList()) in findLoadCallsAtConstantOffset()
60 for (const Use &U : VPtr->uses()) { in findLoadCallsAtConstantOffset()
68 if (VPtr == GEP->getPointerOperand() && GEP->hasAllConstantIndices()) { in findLoadCallsAtConstantOffset()
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/
H A DCallPromotionUtils.h75 LLVM_ABI CallBase &promoteCallWithVTableCmp(CallBase &CB, Instruction *VPtr,
/freebsd/contrib/llvm-project/llvm/lib/SandboxIR/
H A DContext.cpp35 Value *Context::registerValue(std::unique_ptr<Value> &&VPtr) { in registerValue() argument
36 assert(VPtr->getSubclassID() != Value::ClassID::User && in registerValue()
39 Value *V = VPtr.get(); in registerValue()
41 LLVMValueToValueMap.insert({VPtr->Val, std::move(VPtr)}); in registerValue()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DCallPromotionUtils.cpp664 CallBase &llvm::promoteCallWithVTableCmp(CallBase &CB, Instruction *VPtr, in promoteCallWithVTableCmp() argument
672 ICmps.push_back(Builder.CreateICmpEQ(VPtr, AddressPoint)); in promoteCallWithVTableCmp()
H A DInlineFunction.cpp2083 Instruction *VPtr = PGOIndirectCallVisitor::tryGetVTableInstruction(CB); in updateProfileCallee() local
2084 if (VPtr) in updateProfileCallee()
2085 scaleProfData(*VPtr, NewEntryCount, PriorEntryCount); in updateProfileCallee()
/freebsd/contrib/llvm-project/llvm/lib/ProfileData/
H A DInstrProfReader.cpp566 const IntPtrT VPtr = swap(I->VTablePointer); in createSymtab() local
567 if (!VPtr) in createSymtab()
573 Symtab.mapVTableAddress(VPtr, VPtr + swap(I->VTableSize), in createSymtab()
/freebsd/contrib/llvm-project/llvm/include/llvm/SandboxIR/
H A DContext.h122 LLVM_ABI Value *registerValue(std::unique_ptr<Value> &&VPtr);
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGClass.cpp2370 void CodeGenFunction::EmitVTableAssumptionLoad(const VPtr &Vptr, Address This) { in EmitVTableAssumptionLoad()
2394 for (const VPtr &Vptr : getVTablePointers(ClassDecl)) in EmitVTableAssumptionLoads()
2557 void CodeGenFunction::InitializeVTablePointer(const VPtr &Vptr) { in InitializeVTablePointer()
2633 VPtr Vptr = {Base, NearestVBase, OffsetFromNearestVBase, VTableClass}; in getVTablePointers()
2686 for (const VPtr &Vptr : getVTablePointers(RD)) in InitializeVTablePointers()
H A DCGCXXABI.h456 CodeGenFunction::VPtr Vptr) = 0;
H A DItaniumCXXABI.cpp292 CodeGenFunction::VPtr Vptr) override;
1747 llvm::Instruction *VPtr = CGF.Builder.CreateLoad( in emitExactDynamicCast() local
1750 VPtr, CGM.getTBAAVTablePtrAccessInfo(CGF.VoidPtrPtrTy)); in emitExactDynamicCast()
1752 VPtr, getVTableAddressPoint(BaseSubobject(SrcDecl, *Offset), DestDecl)); in emitExactDynamicCast()
2080 CodeGenFunction &CGF, CodeGenFunction::VPtr Vptr) { in isVirtualOffsetNeededForVTableField()
H A DCodeGenFunction.h2440 struct VPtr {
2448 void InitializeVTablePointer(const VPtr &vptr);
2450 typedef llvm::SmallVector<VPtr, 4> VPtrsVector;
3201 void EmitVTableAssumptionLoad(const VPtr &vptr, Address This);
H A DMicrosoftCXXABI.cpp315 CodeGenFunction::VPtr Vptr) override;
1784 CodeGenFunction &CGF, CodeGenFunction::VPtr Vptr) { in isVirtualOffsetNeededForVTableField()
1955 Address VPtr = in getVirtualFunctionPointer() local
1960 CGF.GetVTablePtr(VPtr, CGF.UnqualPtrTy, MethodDecl->getParent()); in getVirtualFunctionPointer()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DScalarizer.cpp1240 Scatterer VPtr = scatter(&SI, SI.getPointerOperand(), Layout->VS); in visitStoreInst() local
1247 Value *Ptr = VPtr[I]; in visitStoreInst()
/freebsd/contrib/llvm-project/lldb/source/Core/
H A DPluginManager.cpp75 template <typename FPtrTy> static FPtrTy CastToFPtr(void *VPtr) { in CastToFPtr() argument
76 return reinterpret_cast<FPtrTy>(VPtr); in CastToFPtr()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DAttributorAttributes.cpp9535 Value *VPtr = *SimplifiedOpV; in updateImpl() local
9539 *this, IRPosition::value(*VPtr, getCallBaseContext()), in updateImpl()
10892 Value *VPtr = &V; in addValue() local
10912 VPtr = *SimpleV; in addValue()
10915 if (isa<ConstantInt>(VPtr)) in addValue()
10917 if (!AA::isValidInScope(*VPtr, AnchorScope)) in addValue()
10920 State.unionAssumed({{*VPtr, CtxI}, S}); in addValue()