Lines Matching refs:idx
286 function defineOpcode(line, count, parts, idx) {
290 idx = parseHex(parts[1]);
291 if (idx < 0) return -1;
294 hex[idx] = parts[1];
295 name[idx] = parts[2];
296 format[idx] = parts[3];
297 hasResult[idx] = (parts[4] == "n") ? "false" : "true";
298 indexType[idx] = parts[5];
299 flags[idx] = parts[6];
303 constName[idx] = toupper(name[idx]);
304 gsub("[/-]", "_", constName[idx]); # Dash and slash become underscore.
305 gsub("[+^]", "", constName[idx]); # Plus and caret are removed.
306 split(name[idx], parts, "/");
308 family[idx] = toupper(parts[1]);
309 gsub("-", "_", family[idx]); # Dash becomes underscore.
310 gsub("[+^]", "", family[idx]); # Plus and caret are removed.
312 split(format[idx], parts, ""); # Width is the first format char.
313 width[idx] = parts[1];
316 familyFormat[family[idx],format[idx]] = idx;
320 if (nextFormat[format[idx]] == "") {
321 printf("unknown format: %s\n", format[idx]) >"/dev/stderr";
325 if (indexTypeValues[indexType[idx]] == "") {
326 printf("unknown index type: %s\n", indexType[idx]) >"/dev/stderr";
330 if (flagsToC(flags[idx]) == "") {
331 printf("bogus flags: %s\n", flags[idx]) >"/dev/stderr";
380 function findNextOpcode(idx, fam, fmt, result) {
382 fam = family[idx];
383 fmt = format[idx];
388 for (fmt = nextFormat[format[idx]]; fmt != "none"; fmt = nextFormat[fmt]) {
424 function unpackOpcode(idx) {
427 if (idx <= 255) {
428 return idx;
430 idx -= 256;
431 return (idx * 256) + 255;
439 function unusedName(idx) {
440 if (idx <= 255) {
441 return sprintf("unused-%02x", idx);
443 return sprintf("unused-%04x", idx);
450 function unusedConstName(idx) {
451 if (idx <= 255) {
452 return toupper(sprintf("UNUSED_%02x", idx));
454 return toupper(sprintf("UNUSED_%04x", idx));
530 function isOptimized(idx, parts, f) {
532 split(flags[idx], parts, /\|/); # Split flags[idx] at pipes.
540 function isUnused(idx) {
541 return (name[idx] == "");