Lines Matching defs:Struct
24 //===-- Struct field access counter runtime -------------------------------===//
48 StructInfo *Struct;
83 StructInfo *Struct = Handle->Struct;
87 if (strncmp(Struct->StructName, "union.", 6) == 0)
90 if (strncmp(Struct->StructName, "class.", 6) == 0) {
92 start = &Struct->StructName[6];
95 start = &Struct->StructName[7];
102 Struct->Size, Handle->Count, Handle->Ratio, *Struct->ArrayCounter);
103 if (Struct->hasAuxFieldInfo()) {
104 for (u32 i = 0; i < Struct->NumFields; ++i) {
107 i, Struct->FieldOffset[i], Struct->FieldSize[i],
108 Struct->FieldCounters[i], TypePrintLimit, Struct->FieldTypeName[i]);
111 for (u32 i = 0; i < Struct->NumFields; ++i) {
112 Report(" #%2u: count = %llu\n", i, Struct->FieldCounters[i]);
119 Handle->Count = Handle->Struct->FieldCounters[0];
120 for (u32 i = 1; i < Handle->Struct->NumFields; ++i) {
121 Handle->Count += Handle->Struct->FieldCounters[i];
123 Handle->Struct->FieldCounters[i - 1], Handle->Struct->FieldCounters[i]);
133 StructInfo *Struct = &CacheFrag->Structs[i];
134 StructHashMap::Handle H(&Ctx->StructMap, (uptr)Struct->FieldCounters);
136 VPrintf(2, " Register %s: %u fields\n", Struct->StructName,
137 Struct->NumFields);
138 H->Struct = Struct;
141 VPrintf(2, " Duplicated %s: %u fields\n", Struct->StructName,
142 Struct->NumFields);
151 StructInfo *Struct = &CacheFrag->Structs[i];
152 StructHashMap::Handle H(&Ctx->StructMap, (uptr)Struct->FieldCounters, true);
154 VPrintf(2, " Unregister %s: %u fields\n", Struct->StructName,
155 Struct->NumFields);
161 VPrintf(2, " Duplicated %s: %u fields\n", Struct->StructName,
162 Struct->NumFields);