Lines Matching defs:VPtr
156 Instruction *VPtr;
290 // Try to sink instructions after VPtr to the indirect call fallback.
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;
564 getValueProfDataFromInst(*VirtualCallInfo.VPtr, IPVK_VTableTarget,
567 return VPtr;
605 return VPtr;
644 CallBase &CB, Instruction *VPtr, ArrayRef<PromotionCandidate> Candidates,
685 updateVPtrValueProfiles(VPtr, VTableGUIDCounts);
701 Instruction *VPtr, VTableGUIDCountsMap &VTableGUIDCounts) {
702 if (!EnableVTableProfileUse || VPtr == nullptr ||
703 !VPtr->getMetadata(LLVMContext::MD_prof))
705 VPtr->setMetadata(LLVMContext::MD_prof, nullptr);
720 annotateValueSite(M, *VPtr, VTableValueProfiles, TotalVTableCount,
725 CallBase &CB, Instruction *VPtr, ArrayRef<PromotionCandidate> Candidates,
740 CB, VPtr, Candidate.TargetFunction, Candidate.AddressPoints,
789 // Update value profiles for 'CB' and 'VPtr', assuming that each 'CB' has a
790 // a distinct 'VPtr'.
811 updateVPtrValueProfiles(VPtr, VTableGUIDCounts);
833 Instruction *VPtr =
837 Changed |= tryToPromoteWithVTableCmp(*CB, VPtr, PromotionCandidates,
841 Changed |= tryToPromoteWithFuncCmp(*CB, VPtr, PromotionCandidates,