Lines Matching defs:rule

76 void ChainList::insert(const char *name, const char *cost, const char *rule) {
79 _rule.addName(rule);
92 bool ChainList::iter(const char * &name, const char * &cost, const char * &rule) {
102 rule = r;
116 const char *rule = NULL;
118 for(reset(); (iter(name,cost,rule)) == true; ) {
119 fprintf(fp, "Chain to <%s> at cost #%s using %s_rule\n",name, cost ? cost : "0", rule);
121 // Form *form = (Form *)_globalNames[rule];
123 // // chain_rule(fp, indent, name, cost, rule);
124 // chain_rule(fp, indent, name, cost, rule);
201 // Initialize match rule flags
407 MatchRule *rule = mrule;
425 // Look-up the operation in chain rule table
441 MatchRule *rule;
444 // If this is only a chain rule
457 rule = oper->_matrule;
459 rule = rule->_next;
461 const Form *form = _globalNames[rule->_opType];
464 add_chain_rule_entry(rule->_opType, oper->cost(), oper->_ident);
466 } while(rule->_next != NULL);
470 // Regardles of whether the first matchrule is a chain rule, check the list
471 rule = oper->_matrule;
473 rule = rule->_next;
475 const Form *form = _globalNames[rule->_opType];
479 add_chain_rule_entry(rule->_opType, oper->cost(), oper->_ident);
481 } while(rule->_next != NULL);
495 // Check for chain rule, and do not generate a match list for it
511 fprintf(stderr, "Invalid match rule %s <-- ( %s )\n",
520 // of the rule (each nesting of parentheses)
544 // Place this match rule at front of list
606 // Place this match rule at front of list
616 // Only interested in ones with non-NULL match rule
627 // Only interested in ones with non-NULL match rule
638 // Only interested in ones with non-NULL match rule