Lines Matching refs:Closure
524 /* Closure based interfaces. */
531 getValueProfDataSize(ValueProfRecordClosure *Closure) {
534 const void *Record = Closure->Record;
537 uint32_t NumValueSites = Closure->GetNumValueSites(Record, Kind);
541 Closure->GetNumValueData(Record, Kind));
548 * from the \c Closure and serialize the data into \c This record instance.
552 ValueProfRecordClosure *Closure,
555 const void *Record = Closure->Record;
561 uint32_t ND = Closure->GetNumValueDataForSite(Record, ValueKind, S);
563 Closure->GetValueForSite(Record, DstVD, ValueKind, S);
569 * Extract value profile data of a function from the \c Closure
571 * memory allocated by the \c Closure's allocator method. If \c
576 serializeValueProfDataFrom(ValueProfRecordClosure *Closure,
580 DstData ? DstData->TotalSize : getValueProfDataSize(Closure);
583 DstData ? DstData : Closure->AllocValueProfData(TotalSize);
586 VPD->NumValueKinds = Closure->GetNumValueKinds(Closure->Record);
589 uint32_t NumValueSites = Closure->GetNumValueSites(Closure->Record, Kind);
592 serializeValueProfRecordFrom(VR, Closure, Kind, NumValueSites);