Lines Matching refs:Closure
545 /* Closure based interfaces. */
552 getValueProfDataSize(ValueProfRecordClosure *Closure) {
555 const void *Record = Closure->Record;
558 uint32_t NumValueSites = Closure->GetNumValueSites(Record, Kind);
562 Closure->GetNumValueData(Record, Kind));
569 * from the \c Closure and serialize the data into \c This record instance.
573 ValueProfRecordClosure *Closure,
576 const void *Record = Closure->Record;
582 uint32_t ND = Closure->GetNumValueDataForSite(Record, ValueKind, S);
584 Closure->GetValueForSite(Record, DstVD, ValueKind, S);
590 * Extract value profile data of a function from the \c Closure
592 * memory allocated by the \c Closure's allocator method. If \c
597 serializeValueProfDataFrom(ValueProfRecordClosure *Closure,
601 DstData ? DstData->TotalSize : getValueProfDataSize(Closure);
604 DstData ? DstData : Closure->AllocValueProfData(TotalSize);
607 VPD->NumValueKinds = Closure->GetNumValueKinds(Closure->Record);
610 uint32_t NumValueSites = Closure->GetNumValueSites(Closure->Record, Kind);
613 serializeValueProfRecordFrom(VR, Closure, Kind, NumValueSites);