Lines Matching refs:name
79 struct string_entry *name; member
102 struct string_entry *name; member
190 char *name; /* Resource name. */ member
215 char *name; /* Instruction class name. */ member
326 insert_resource (const char *name, enum ia64_dependency_mode type) in insert_resource() argument
336 rdeps[rdepslen]->name = xstrdup (name); in insert_resource()
462 char *name; in fetch_insn_class() local
472 name = xstrdup (full_name + 3); in fetch_insn_class()
476 name = xstrdup (full_name); in fetch_insn_class()
478 if ((xsect = strchr(name, '\\')) != NULL) in fetch_insn_class()
480 if ((comment = strchr(name, '[')) != NULL) in fetch_insn_class()
482 if ((notestr = strchr(name, '+')) != NULL) in fetch_insn_class()
521 if (strcmp (name, ics[i]->name) == 0 in fetch_insn_class()
543 ics[ind]->name = xstrdup (name); in fetch_insn_class()
561 char *subname = name; in fetch_insn_class()
585 free (name); in fetch_insn_class()
606 return strcmp (ic1->name, ic2->name); in sub_compare()
624 char *name; in load_insn_classes() local
633 name = tmp = buf; in load_insn_classes()
642 iclass = fetch_insn_class (name, 1); in load_insn_classes()
645 if (strcmp (name, "none") == 0) in load_insn_classes()
714 char *name; in parse_resource_users() local
718 name = tmp; in parse_resource_users()
724 xsect = strchr (name, '\\'); in parse_resource_users()
725 if ((notestr = strstr (name, "+")) != NULL) in parse_resource_users()
749 if (! CONST_STRNEQ (name, "IC:") || xsect != NULL) in parse_resource_users()
752 iclass = fetch_insn_class (name, create); in parse_resource_users()
764 printf("Class %s not found\n", name); in parse_resource_users()
796 add_dep (const char *name, const char *chk, const char *reg, in add_dep() argument
801 rs = insert_resource (name, mode); in add_dep()
823 char *name, *tmp; in load_depfile() local
834 name = tmp = buf; in load_depfile()
863 add_dep (name, chkp, regp, semantics, mode, extra, 0); in load_depfile()
864 add_dep (name, regp, chkp, semantics, mode, extra, 1); in load_depfile()
868 add_dep (name, chkp, regp, semantics, mode, extra, 0); in load_depfile()
916 int plain_mov = strcmp (idesc->name, "mov") == 0; in in_iclass_mov_x()
921 switch (ic->name[4]) in in_iclass_mov_x()
927 int i = strcmp (idesc->name, "mov.i") == 0; in in_iclass_mov_x()
928 int m = strcmp (idesc->name, "mov.m") == 0; in in_iclass_mov_x()
977 if (ic->name[5] == 'n') in in_iclass_mov_x()
986 else if (ic->name[5] == 'p') in in_iclass_mov_x()
994 if (ic->name[5] == 'r') in in_iclass_mov_x()
1006 else if (ic->name[5] == 's') in in_iclass_mov_x()
1072 int is_mov = CONST_STRNEQ (idesc->name, "mov"); in in_iclass()
1073 int plain_mov = strcmp (idesc->name, "mov") == 0; in in_iclass()
1074 int len = strlen(ic->name); in in_iclass()
1076 resolved = ((strncmp (ic->name, idesc->name, len) == 0) in in_iclass()
1077 && (idesc->name[len] == '\0' in in_iclass()
1078 || idesc->name[len] == '.')); in in_iclass()
1082 (strcmp (ic->name, "break") == 0 in in_iclass()
1083 || strcmp (ic->name, "nop") == 0 in in_iclass()
1084 || strcmp (ic->name, "hint") == 0)) in in_iclass()
1085 resolved = strcmp (ic->name, idesc->name) == 0; in in_iclass()
1096 if ((sf = strstr (idesc->name, ".s")) != 0) in in_iclass()
1102 if (strstr (idesc->name, "fault") != NULL) in in_iclass()
1110 if (strstr (idesc->name, "or.andcm")) in in_iclass()
1112 else if (strstr (idesc->name, "and.orcm")) in in_iclass()
1114 else if (strstr (idesc->name, "orcm")) in in_iclass()
1116 else if (strstr (idesc->name, "or")) in in_iclass()
1118 else if (strstr (idesc->name, "andcm")) in in_iclass()
1120 else if (strstr (idesc->name, "and")) in in_iclass()
1122 else if (strstr (idesc->name, "unc")) in in_iclass()
1131 if (CONST_STRNEQ (idesc->name, "dep") in in_iclass()
1134 else if (CONST_STRNEQ (idesc->name, "chk") in in_iclass()
1137 else if (CONST_STRNEQ (idesc->name, "lfetch")) in in_iclass()
1141 else if (CONST_STRNEQ (idesc->name, "br.call") in in_iclass()
1144 else if (CONST_STRNEQ (idesc->name, "br.call") in in_iclass()
1147 else if (CONST_STRNEQ (idesc->name, "brp") in in_iclass()
1150 else if (strcmp (ic->name, "invala") == 0) in in_iclass()
1151 resolved = strcmp (idesc->name, ic->name) == 0; in in_iclass()
1152 else if (CONST_STRNEQ (idesc->name, "st") in in_iclass()
1156 else if (CONST_STRNEQ (idesc->name, "ld") in in_iclass()
1168 && (strcmp (idesc->name, "brl") == 0 in in_iclass()
1169 || CONST_STRNEQ (idesc->name, "brl.")) in in_iclass()
1170 && strcmp (ic->name, "brl.cond") == 0) in in_iclass()
1177 && (strcmp (idesc->name, "br") == 0 in in_iclass()
1178 || CONST_STRNEQ (idesc->name, "br.")) in in_iclass()
1179 && strcmp (ic->name, "br.cond") == 0) in in_iclass()
1191 if (!resolved && CONST_STRNEQ (idesc->name, "probe")) in in_iclass()
1193 resolved = strcmp (ic->name, "probe") == 0 in in_iclass()
1194 && !((strstr (idesc->name, "fault") != NULL) in in_iclass()
1204 if (strcmp (ic->name, "fmerge") == 0) in in_iclass()
1210 else if (strcmp (ic->name, "adds") == 0) in in_iclass()
1217 else if (strcmp (ic->name, "addl") == 0) in in_iclass()
1225 if (!resolved && CONST_STRNEQ (ic->name, "mov_")) in in_iclass()
1245 printf ("%s is in IC %s\n", idesc->name, ic->name); in in_iclass()
1259 *notep, ic->note, ic->name); in in_iclass()
1270 lookup_regindex (const char *name, int specifier) in lookup_regindex() argument
1275 if (strstr (name, "[RSC]")) in lookup_regindex()
1277 if (strstr (name, "[BSP]")) in lookup_regindex()
1279 else if (strstr (name, "[BSPSTORE]")) in lookup_regindex()
1281 else if (strstr (name, "[RNAT]")) in lookup_regindex()
1283 else if (strstr (name, "[FCR]")) in lookup_regindex()
1285 else if (strstr (name, "[EFLAG]")) in lookup_regindex()
1287 else if (strstr (name, "[CSD]")) in lookup_regindex()
1289 else if (strstr (name, "[SSD]")) in lookup_regindex()
1291 else if (strstr (name, "[CFLG]")) in lookup_regindex()
1293 else if (strstr (name, "[FSR]")) in lookup_regindex()
1295 else if (strstr (name, "[FIR]")) in lookup_regindex()
1297 else if (strstr (name, "[FDR]")) in lookup_regindex()
1299 else if (strstr (name, "[CCV]")) in lookup_regindex()
1301 else if (strstr (name, "[ITC]")) in lookup_regindex()
1303 else if (strstr (name, "[RUC]")) in lookup_regindex()
1305 else if (strstr (name, "[PFS]")) in lookup_regindex()
1307 else if (strstr (name, "[LC]")) in lookup_regindex()
1309 else if (strstr (name, "[EC]")) in lookup_regindex()
1313 if (strstr (name, "[DCR]")) in lookup_regindex()
1315 else if (strstr (name, "[ITM]")) in lookup_regindex()
1317 else if (strstr (name, "[IVA]")) in lookup_regindex()
1319 else if (strstr (name, "[PTA]")) in lookup_regindex()
1321 else if (strstr (name, "[GPTA]")) in lookup_regindex()
1323 else if (strstr (name, "[IPSR]")) in lookup_regindex()
1325 else if (strstr (name, "[ISR]")) in lookup_regindex()
1327 else if (strstr (name, "[IIP]")) in lookup_regindex()
1329 else if (strstr (name, "[IFA]")) in lookup_regindex()
1331 else if (strstr (name, "[ITIR]")) in lookup_regindex()
1333 else if (strstr (name, "[IIPA]")) in lookup_regindex()
1335 else if (strstr (name, "[IFS]")) in lookup_regindex()
1337 else if (strstr (name, "[IIM]")) in lookup_regindex()
1339 else if (strstr (name, "[IHA]")) in lookup_regindex()
1341 else if (strstr (name, "[LID]")) in lookup_regindex()
1343 else if (strstr (name, "[IVR]")) in lookup_regindex()
1345 else if (strstr (name, "[TPR]")) in lookup_regindex()
1347 else if (strstr (name, "[EOI]")) in lookup_regindex()
1349 else if (strstr (name, "[ITV]")) in lookup_regindex()
1351 else if (strstr (name, "[PMV]")) in lookup_regindex()
1353 else if (strstr (name, "[CMCV]")) in lookup_regindex()
1357 if (strstr (name, ".be")) in lookup_regindex()
1359 else if (strstr (name, ".up")) in lookup_regindex()
1361 else if (strstr (name, ".ac")) in lookup_regindex()
1363 else if (strstr (name, ".mfl")) in lookup_regindex()
1365 else if (strstr (name, ".mfh")) in lookup_regindex()
1367 else if (strstr (name, ".ic")) in lookup_regindex()
1369 else if (strstr (name, ".i")) in lookup_regindex()
1371 else if (strstr (name, ".pk")) in lookup_regindex()
1373 else if (strstr (name, ".dt")) in lookup_regindex()
1375 else if (strstr (name, ".dfl")) in lookup_regindex()
1377 else if (strstr (name, ".dfh")) in lookup_regindex()
1379 else if (strstr (name, ".sp")) in lookup_regindex()
1381 else if (strstr (name, ".pp")) in lookup_regindex()
1383 else if (strstr (name, ".di")) in lookup_regindex()
1385 else if (strstr (name, ".si")) in lookup_regindex()
1387 else if (strstr (name, ".db")) in lookup_regindex()
1389 else if (strstr (name, ".lp")) in lookup_regindex()
1391 else if (strstr (name, ".tb")) in lookup_regindex()
1393 else if (strstr (name, ".rt")) in lookup_regindex()
1395 else if (strstr (name, ".cpl")) in lookup_regindex()
1397 else if (strstr (name, ".rs")) in lookup_regindex()
1399 else if (strstr (name, ".mc")) in lookup_regindex()
1401 else if (strstr (name, ".it")) in lookup_regindex()
1403 else if (strstr (name, ".id")) in lookup_regindex()
1405 else if (strstr (name, ".da")) in lookup_regindex()
1407 else if (strstr (name, ".dd")) in lookup_regindex()
1409 else if (strstr (name, ".ss")) in lookup_regindex()
1411 else if (strstr (name, ".ri")) in lookup_regindex()
1413 else if (strstr (name, ".ed")) in lookup_regindex()
1415 else if (strstr (name, ".bn")) in lookup_regindex()
1417 else if (strstr (name, ".ia")) in lookup_regindex()
1419 else if (strstr (name, ".vm")) in lookup_regindex()
1430 lookup_specifier (const char *name) in lookup_specifier() argument
1432 if (strchr (name, '%')) in lookup_specifier()
1434 if (strstr (name, "AR[K%]") != NULL) in lookup_specifier()
1436 if (strstr (name, "AR[UNAT]") != NULL) in lookup_specifier()
1438 if (strstr (name, "AR%, % in 8") != NULL) in lookup_specifier()
1440 if (strstr (name, "AR%, % in 48") != NULL) in lookup_specifier()
1442 if (strstr (name, "BR%") != NULL) in lookup_specifier()
1444 if (strstr (name, "CR[IIB%]") != NULL) in lookup_specifier()
1446 if (strstr (name, "CR[IRR%]") != NULL) in lookup_specifier()
1448 if (strstr (name, "CR[LRR%]") != NULL) in lookup_specifier()
1450 if (strstr (name, "CR%") != NULL) in lookup_specifier()
1452 if (strstr (name, "DAHR%, % in 0") != NULL) in lookup_specifier()
1454 if (strstr (name, "FR%, % in 0") != NULL) in lookup_specifier()
1456 if (strstr (name, "FR%, % in 2") != NULL) in lookup_specifier()
1458 if (strstr (name, "GR%") != NULL) in lookup_specifier()
1460 if (strstr (name, "PR%, % in 1 ") != NULL) in lookup_specifier()
1462 if (strstr (name, "PR%, % in 16 ") != NULL) in lookup_specifier()
1466 name); in lookup_specifier()
1468 else if (strchr (name, '#')) in lookup_specifier()
1470 if (strstr (name, "CPUID#") != NULL) in lookup_specifier()
1472 if (strstr (name, "DBR#") != NULL) in lookup_specifier()
1474 if (strstr (name, "IBR#") != NULL) in lookup_specifier()
1476 if (strstr (name, "MSR#") != NULL) in lookup_specifier()
1478 if (strstr (name, "PKR#") != NULL) in lookup_specifier()
1480 if (strstr (name, "PMC#") != NULL) in lookup_specifier()
1482 if (strstr (name, "PMD#") != NULL) in lookup_specifier()
1484 if (strstr (name, "RR#") != NULL) in lookup_specifier()
1488 name); in lookup_specifier()
1490 else if (CONST_STRNEQ (name, "AR[FPSR]")) in lookup_specifier()
1492 else if (CONST_STRNEQ (name, "AR[")) in lookup_specifier()
1494 else if (CONST_STRNEQ (name, "CR[")) in lookup_specifier()
1496 else if (CONST_STRNEQ (name, "PSR.")) in lookup_specifier()
1498 else if (strcmp (name, "InService*") == 0) in lookup_specifier()
1500 else if (strcmp (name, "GR0") == 0) in lookup_specifier()
1502 else if (strcmp (name, "CFM") == 0) in lookup_specifier()
1504 else if (strcmp (name, "PR63") == 0) in lookup_specifier()
1506 else if (strcmp (name, "RSE") == 0) in lookup_specifier()
1527 ics[i]->name, ics[i]->comment); in print_dependency_table()
1530 ics[i]->name); in print_dependency_table()
1539 ics[i]->name, ics[i]->comment); in print_dependency_table()
1542 ics[i]->name); in print_dependency_table()
1553 ics[i]->name); in print_dependency_table()
1566 rdeps[i]->name, mode_str[rdeps[i]->mode]); in print_dependency_table()
1569 rdeps[i]->name, mode_str[rdeps[i]->mode]); in print_dependency_table()
1573 rdeps[i]->name, mode_str[rdeps[i]->mode]); in print_dependency_table()
1583 int specifier = lookup_specifier (rdeps[i]->name); in print_dependency_table()
1584 int regindex = lookup_regindex (rdeps[i]->name, specifier); in print_dependency_table()
1587 rdeps[i]->name, specifier, in print_dependency_table()
2227 if (ent1->name->num != ent2->name->num in completer_entries_eq()
2277 if (ent->name->num < glist[0]->name->num) in insert_gclist()
2279 else if (ent->name->num > glist[end - 1]->name->num) in insert_gclist()
2288 c = ent->name->num - glist[i]->name->num; in insert_gclist()
2295 && ent->name->num == glist[i - 1]->name->num) in insert_gclist()
2311 if (ent->name->num != glist[i]->name->num) in insert_gclist()
2323 if (ent->name->num >= glist[i - 1]->name->num) in insert_gclist()
2327 if (ent->name->num < glist[i]->name->num) in insert_gclist()
2340 get_prefix_len (const char *name) in get_prefix_len() argument
2344 if (name[0] == '\0') in get_prefix_len()
2347 c = strchr (name, '.'); in get_prefix_len()
2349 return c - name; in get_prefix_len()
2351 return strlen (name); in get_prefix_len()
2446 if (strcmp (opc->name, "cmp.eq.and") == 0 in insert_opcode_dependencies()
2447 && CONST_STRNEQ (rs->name, "PR%") in insert_opcode_dependencies()
2458 if (ic_note == 11 && ! CONST_STRNEQ (rs->name, "PR")) in insert_opcode_dependencies()
2465 ic_note, opc->name, ics[rs->regs[j]]->name, in insert_opcode_dependencies()
2466 rs->name, rs->regnotes[j]); in insert_opcode_dependencies()
2486 if (ic_note == 11 && ! CONST_STRNEQ (rs->name, "PR")) in insert_opcode_dependencies()
2493 ic_note, opc->name, ics[rs->chks[j]]->name, in insert_opcode_dependencies()
2494 rs->name, rs->chknotes[j]); in insert_opcode_dependencies()
2507 opc->name, in insert_opcode_dependencies()
2522 if (strlen (opc->name) > 128) in insert_completer_entry()
2525 strcpy (pcopy, opc->name); in insert_completer_entry()
2543 int cmpres = sent->num - (*ptr)->name->num; in insert_completer_entry()
2558 nent->name = sent; in insert_completer_entry()
2607 ent->name->num, in print_completer_entry()
2641 plen1 = get_prefix_len (opc1->name); in opcodes_eq()
2642 plen2 = get_prefix_len (opc2->name); in opcodes_eq()
2644 if (plen1 == plen2 && (memcmp (opc1->name, opc2->name, plen1) == 0)) in opcodes_eq()
2654 struct string_entry *name; in add_opcode_entry() local
2658 if (strlen (opc->name) > 128) in add_opcode_entry()
2662 strcpy (prefix, opc->name); in add_opcode_entry()
2664 name = insert_string (prefix); in add_opcode_entry()
2672 if ((*place)->name->num == name->num in add_opcode_entry()
2678 if ((*place)->name->num > name->num) in add_opcode_entry()
2687 nent->name = name; in add_opcode_entry()
2715 ptr->name->num, in print_main_table()
2742 for (curr_opcode = 0; table[curr_opcode].name != NULL; curr_opcode++) in shrink()