Lines Matching refs:Struct

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