Home | History | Annotate | Download | only in tools

Lines Matching defs:ME

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