Lines Matching refs:ME
118 static int dumpInfo(bcinfo::MetadataExtractor *ME) { in dumpInfo() argument
119 if (!ME) { in dumpInfo()
129 fprintf(info, "exportVarCount: %zu\n", ME->getExportVarCount()); in dumpInfo()
130 const char **varNameList = ME->getExportVarNameList(); in dumpInfo()
131 for (size_t i = 0; i < ME->getExportVarCount(); i++) { in dumpInfo()
135 fprintf(info, "exportFuncCount: %zu\n", ME->getExportFuncCount()); in dumpInfo()
136 const char **funcNameList = ME->getExportFuncNameList(); in dumpInfo()
137 for (size_t i = 0; i < ME->getExportFuncCount(); i++) { in dumpInfo()
142 ME->getExportForEachSignatureCount()); in dumpInfo()
143 const char **nameList = ME->getExportForEachNameList(); in dumpInfo()
144 const uint32_t *sigList = ME->getExportForEachSignatureList(); in dumpInfo()
145 const uint32_t *inputCountList = ME->getExportForEachInputCountList(); in dumpInfo()
146 for (size_t i = 0; i < ME->getExportForEachSignatureCount(); i++) { in dumpInfo()
151 fprintf(info, "exportReduceCount: %zu\n", ME->getExportReduceCount()); in dumpInfo()
153 ME->getExportReduceList(); in dumpInfo()
154 for (size_t i = 0; i < ME->getExportReduceCount(); i++) { in dumpInfo()
165 fprintf(info, "objectSlotCount: %zu\n", ME->getObjectSlotCount()); in dumpInfo()
166 const uint32_t *slotList = ME->getObjectSlotList(); in dumpInfo()
167 for (size_t i = 0; i < ME->getObjectSlotCount(); i++) { in dumpInfo()
176 static void dumpMetadata(bcinfo::MetadataExtractor *ME) { in dumpMetadata() argument
177 if (!ME) { in dumpMetadata()
182 switch (ME->getRSFloatPrecision()) { in dumpMetadata()
194 printf("exportVarCount: %zu\n", ME->getExportVarCount()); in dumpMetadata()
195 const char **varNameList = ME->getExportVarNameList(); in dumpMetadata()
196 for (size_t i = 0; i < ME->getExportVarCount(); i++) { in dumpMetadata()
201 printf("exportFuncCount: %zu\n", ME->getExportFuncCount()); in dumpMetadata()
202 const char **funcNameList = ME->getExportFuncNameList(); in dumpMetadata()
203 for (size_t i = 0; i < ME->getExportFuncCount(); i++) { in dumpMetadata()
209 ME->getExportForEachSignatureCount()); in dumpMetadata()
210 const char **nameList = ME->getExportForEachNameList(); in dumpMetadata()
211 const uint32_t *sigList = ME->getExportForEachSignatureList(); in dumpMetadata()
212 const uint32_t *inputCountList = ME->getExportForEachInputCountList(); in dumpMetadata()
213 for (size_t i = 0; i < ME->getExportForEachSignatureCount(); i++) { in dumpMetadata()
219 printf("exportReduceCount: %zu\n", ME->getExportReduceCount()); in dumpMetadata()
220 const bcinfo::MetadataExtractor::Reduce *reduceList = ME->getExportReduceList(); in dumpMetadata()
221 for (size_t i = 0; i < ME->getExportReduceCount(); i++) { in dumpMetadata()
233 printf("pragmaCount: %zu\n", ME->getPragmaCount()); in dumpMetadata()
234 const char **keyList = ME->getPragmaKeyList(); in dumpMetadata()
235 const char **valueList = ME->getPragmaValueList(); in dumpMetadata()
236 for (size_t i = 0; i < ME->getPragmaCount(); i++) { in dumpMetadata()
241 printf("objectSlotCount: %zu\n", ME->getObjectSlotCount()); in dumpMetadata()
242 const uint32_t *slotList = ME->getObjectSlotList(); in dumpMetadata()
243 for (size_t i = 0; i < ME->getObjectSlotCount(); i++) { in dumpMetadata()
331 std::unique_ptr<bcinfo::MetadataExtractor> ME; in main() local
332 ME.reset(new bcinfo::MetadataExtractor(BT->getTranslatedBitcode(), in main()
334 if (!ME->extract()) { in main()
340 dumpMetadata(ME.get()); in main()
384 if (dumpInfo(ME.get()) != 0) { in main()