Lines Matching refs:Closure
604 /* Closure based interfaces. */
611 getValueProfDataSize(ValueProfRecordClosure *Closure) {
614 const void *Record = Closure->Record;
617 uint32_t NumValueSites = Closure->GetNumValueSites(Record, Kind);
621 Closure->GetNumValueData(Record, Kind));
628 * from the \c Closure and serialize the data into \c This record instance.
632 ValueProfRecordClosure *Closure,
635 const void *Record = Closure->Record;
641 uint32_t ND = Closure->GetNumValueDataForSite(Record, ValueKind, S);
643 Closure->GetValueForSite(Record, DstVD, ValueKind, S);
649 * Extract value profile data of a function from the \c Closure
651 * memory allocated by the \c Closure's allocator method. If \c
656 serializeValueProfDataFrom(ValueProfRecordClosure *Closure,
660 DstData ? DstData->TotalSize : getValueProfDataSize(Closure);
663 DstData ? DstData : Closure->AllocValueProfData(TotalSize);
666 VPD->NumValueKinds = Closure->GetNumValueKinds(Closure->Record);
669 uint32_t NumValueSites = Closure->GetNumValueSites(Closure->Record, Kind);
672 serializeValueProfRecordFrom(VR, Closure, Kind, NumValueSites);