Lines Matching refs:Closure
544 /* Closure based interfaces. */
551 getValueProfDataSize(ValueProfRecordClosure *Closure) {
554 const void *Record = Closure->Record;
557 uint32_t NumValueSites = Closure->GetNumValueSites(Record, Kind);
561 Closure->GetNumValueData(Record, Kind));
568 * from the \c Closure and serialize the data into \c This record instance.
572 ValueProfRecordClosure *Closure,
575 const void *Record = Closure->Record;
581 uint32_t ND = Closure->GetNumValueDataForSite(Record, ValueKind, S);
583 Closure->GetValueForSite(Record, DstVD, ValueKind, S);
589 * Extract value profile data of a function from the \c Closure
591 * memory allocated by the \c Closure's allocator method. If \c
596 serializeValueProfDataFrom(ValueProfRecordClosure *Closure,
600 DstData ? DstData->TotalSize : getValueProfDataSize(Closure);
603 DstData ? DstData : Closure->AllocValueProfData(TotalSize);
606 VPD->NumValueKinds = Closure->GetNumValueKinds(Closure->Record);
609 uint32_t NumValueSites = Closure->GetNumValueSites(Closure->Record, Kind);
612 serializeValueProfRecordFrom(VR, Closure, Kind, NumValueSites);