Lines Matching defs:fp

1266 void InstructForm::rep_var_format(FILE *fp, const char *rep_var) {
1269 fprintf(fp, "char reg[128]; ra->dump_register(in(mach_constant_base_node_input()), reg);\n");
1270 fprintf(fp, " st->print(\"%%s\", reg);\n");
1274 fprintf(fp, "st->print(\"#%%d\", constant_offset());\n");
1278 fprintf(fp, "st->print(\"constant table base + #%%d\", constant_offset());\n");
1306 fprintf(fp, " st->print(\"%s\");\n", first->_regname);
1312 fprintf(fp,"opnd_array(%d)->",idx);
1314 fprintf(fp,"int_format(ra, this, st); // %s\n", rep_var);
1316 fprintf(fp,"ext_format(ra, this,idx%d, st); // %s\n", idx, rep_var );
1396 void InstructForm::index_temps(FILE *fp, FormDict &globals, const char *prefix, const char *receiver) {
1404 fprintf(fp," // Start at oper_input_base() and count operands\n");
1405 fprintf(fp," unsigned %sidx0 = %d;\n", prefix, oper_input_base(globals));
1406 fprintf(fp," unsigned %sidx1 = %d;", prefix, oper_input_base(globals));
1407 fprintf(fp," \t// %s\n", unique_opnd_ident(1));
1412 fprintf(fp," unsigned %sidx%d = %sidx%d + opnd_array(%d)->num_edges();",
1415 fprintf(fp," unsigned %sidx%d = %sidx%d + %s_opnds[%d]->num_edges();",
1418 fprintf(fp," \t// %s\n", unique_opnd_ident(idx));
1425 fprintf(fp," unsigned %sidx%d = %sreq(); \n", prefix, idx, receiver);
1441 void InstructForm::output(FILE *fp) {
1442 fprintf(fp,"\nInstruction: %s\n", (_ident?_ident:""));
1443 if (_matrule) _matrule->output(fp);
1444 if (_insencode) _insencode->output(fp);
1445 if (_constant) _constant->output(fp);
1446 if (_opcode) _opcode->output(fp);
1447 if (_attribs) _attribs->output(fp);
1448 if (_predicate) _predicate->output(fp);
1450 fprintf(fp,"Effects\n");
1453 if (_exprule) _exprule->output(fp);
1454 if (_rewrule) _rewrule->output(fp);
1455 if (_format) _format->output(fp);
1456 if (_peephole) _peephole->output(fp);
1463 void MachNodeForm::output(FILE *fp) {
1464 fprintf(fp,"\nMachNode: %s\n", (_ident?_ident:""));
1565 void EncodeForm::output(FILE *fp) { // Write info to output files
1567 fprintf(fp,"\n");
1568 fprintf(fp,"-------------------- Dump EncodeForm --------------------\n");
1570 ((EncClass*)_encClass[name])->output(fp);
1572 fprintf(fp,"-------------------- end EncodeForm --------------------\n");
1632 void EncClass::output(FILE *fp) {
1633 fprintf(fp,"EncClass: %s", (_name ? _name : ""));
1640 fprintf(fp, " ( ");
1643 fprintf(fp, " %s %s,", type, name);
1645 fprintf(fp, " ) ");
1655 fprintf(fp,"($%s)", rep_var);
1658 fprintf(fp,"%s", code);
1685 bool Opcode::print_opcode(FILE *fp, Opcode::opcode_type desired_opcode) {
1711 fprintf(fp, "(%s /*%s*/)", value, description);
1721 void Opcode::output(FILE *fp) {
1722 if (_primary != NULL) fprintf(fp,"Primary opcode: %s\n", _primary);
1723 if (_secondary != NULL) fprintf(fp,"Secondary opcode: %s\n", _secondary);
1724 if (_tertiary != NULL) fprintf(fp,"Tertiary opcode: %s\n", _tertiary);
1768 void InsEncode::output(FILE *fp) {
1772 fprintf(fp,"InsEncode: ");
1777 fprintf(fp,"%s(", encoding->name() );
1784 if ( ! first_param ) fprintf(fp,", ");
1787 fprintf(fp,"%s", parameter);
1789 fprintf(fp,") ");
1792 fprintf(fp,"\n");
1850 void Effect::output(FILE *fp) { // Write info to output files
1851 fprintf(fp,"Effect: %s\n", (_name?_name:""));
1880 void ExpandRule::output(FILE *fp) { // Write info to output files
1884 fprintf(fp,"\nExpand Rule:\n");
1888 fprintf(fp,"%s(", expand_instr->name());
1892 fprintf(fp,"%s ", opid);
1894 fprintf(fp,");\n");
1908 void RewriteRule::output(FILE *fp) { // Write info to output files
1909 fprintf(fp,"\nRewrite Rule:\n%s\n%s\n",
1986 void OpClassForm::output(FILE *fp) {
1988 fprintf(fp,"\nOperand Class: %s\n", (_ident?_ident:""));
1989 fprintf(fp,"\nCount = %d\n", _oplst.count());
1991 fprintf(fp,"%s, ",name);
1993 fprintf(fp,"\n");
2413 void OperandForm::disp_is_oop(FILE *fp, FormDict &globals) {
2435 fprintf(fp," virtual bool disp_is_oop() const {");
2436 fprintf(fp, " return _c%d->isa_oop_ptr();", idx);
2437 fprintf(fp, " }\n");
2445 void OperandForm::int_format(FILE *fp, FormDict &globals, uint index) {
2450 fprintf(fp," { char reg_str[128];\n");
2451 fprintf(fp," ra->dump_register(node,reg_str);\n");
2452 fprintf(fp," st->print(\"%cs\",reg_str);\n",'%');
2453 fprintf(fp," }\n");
2455 format_constant( fp, index, dtype );
2458 fprintf(fp," { char reg_str[128];\n");
2459 fprintf(fp," ra->dump_register(node,reg_str);\n");
2460 fprintf(fp," st->print(\"%cs\",reg_str);\n",'%');
2461 fprintf(fp," }\n");
2463 fprintf(fp," st->print(\"No format defined for %s\n\");\n", _ident);
2464 fflush(fp);
2473 void OperandForm::ext_format(FILE *fp, FormDict &globals, uint index) {
2477 fprintf(fp," { char reg_str[128];\n");
2478 fprintf(fp," ra->dump_register(node->in(idx");
2479 if ( index != 0 ) fprintf(fp, "+%d",index);
2480 fprintf(fp, "),reg_str);\n");
2481 fprintf(fp," st->print(\"%cs\",reg_str);\n",'%');
2482 fprintf(fp," }\n");
2484 format_constant( fp, index, dtype );
2487 fprintf(fp," { char reg_str[128];\n");
2488 fprintf(fp," ra->dump_register(node->in(idx");
2489 if ( index != 0 ) fprintf(fp, "+%d",index);
2490 fprintf(fp, "),reg_str);\n");
2491 fprintf(fp," st->print(\"%cs\",reg_str);\n",'%');
2492 fprintf(fp," }\n");
2494 fprintf(fp," st->print(\"No format defined for %s\n\");\n", _ident);
2499 void OperandForm::format_constant(FILE *fp, uint const_index, uint const_type) {
2501 case Form::idealI: fprintf(fp," st->print(\"#%%d\", _c%d);\n", const_index); break;
2502 case Form::idealP: fprintf(fp," if (_c%d) _c%d->dump_on(st);\n", const_index, const_index); break;
2503 case Form::idealN: fprintf(fp," if (_c%d) _c%d->dump_on(st);\n", const_index, const_index); break;
2504 case Form::idealL: fprintf(fp," st->print(\"#%%lld\", _c%d);\n", const_index); break;
2505 case Form::idealF: fprintf(fp," st->print(\"#%%f\", _c%d);\n", const_index); break;
2506 case Form::idealD: fprintf(fp," st->print(\"#%%f\", _c%d);\n", const_index); break;
2576 void OperandForm::access_constant(FILE *fp, FormDict &globals,
2583 case idealI: fprintf(fp,"_c%d", const_index); break;
2584 case idealP: fprintf(fp,"_c%d->get_con()",const_index); break;
2585 case idealL: fprintf(fp,"_c%d", const_index); break;
2586 case idealF: fprintf(fp,"_c%d", const_index); break;
2587 case idealD: fprintf(fp,"_c%d", const_index); break;
2598 void OperandForm::output(FILE *fp) {
2599 fprintf(fp,"\nOperand: %s\n", (_ident?_ident:""));
2625 void Constraint::output(FILE *fp) { // Write info to output files
2627 fprintf(fp,"Constraint: %s ( %s )\n", _func, _arg);
2641 void Predicate::output(FILE *fp) {
2642 fprintf(fp,"Predicate"); // Write to output files
2684 void Interface::output(FILE *fp) {
2685 fprintf(fp,"Interface: %s\n", (_name ? _name : "") );
2699 void RegInterface::output(FILE *fp) {
2700 Interface::output(fp);
2714 void ConstInterface::output(FILE *fp) {
2715 Interface::output(fp);
2731 void MemInterface::output(FILE *fp) {
2732 Interface::output(fp);
2733 if ( _base != NULL ) fprintf(fp," base == %s\n", _base);
2734 if ( _index != NULL ) fprintf(fp," index == %s\n", _index);
2735 if ( _scale != NULL ) fprintf(fp," scale == %s\n", _scale);
2736 if ( _disp != NULL ) fprintf(fp," disp == %s\n", _disp);
2737 // fprintf(fp,"\n");
2764 void CondInterface::output(FILE *fp) {
2765 Interface::output(fp);
2766 if ( _equal != NULL ) fprintf(fp," equal == %s\n", _equal);
2767 if ( _not_equal != NULL ) fprintf(fp," not_equal == %s\n", _not_equal);
2768 if ( _less != NULL ) fprintf(fp," less == %s\n", _less);
2769 if ( _greater_equal != NULL ) fprintf(fp," greater_equal == %s\n", _greater_equal);
2770 if ( _less_equal != NULL ) fprintf(fp," less_equal == %s\n", _less_equal);
2771 if ( _greater != NULL ) fprintf(fp," greater == %s\n", _greater);
2772 // fprintf(fp,"\n");
2786 void ConstructRule::output(FILE *fp) {
2787 fprintf(fp,"\nConstruct Rule\n"); // Write to output files
2823 void AttributeForm::output(FILE *fp) {
2825 fprintf(fp,"\n// AttributeForm \nstatic const int %s = %s;\n",
2829 fprintf(fp,"\n// AttributeForm missing name %s or definition %s\n",
2872 void Component::output(FILE *fp) {
2873 fprintf(fp,"Component:"); // Write to output files
2874 fprintf(fp, " name = %s", _name);
2875 fprintf(fp, ", type = %s", _type);
2877 fprintf(fp, ", use/def = %s\n", getUsedefName());
3107 void ComponentList::output(FILE *fp) {
3109 fprintf(fp, "\n");
3112 component->output(fp);
3114 fprintf(fp, "\n");
3426 void MatchNode::output(FILE *fp) {
3428 fprintf(fp," %s",_name); // operand
3431 fprintf(fp," (%s ",_name); // " (opcodeName "
3432 if(_lChild) _lChild->output(fp); // left operand
3433 if(_rChild) _rChild->output(fp); // right operand
3434 fprintf(fp,")"); // ")"
4159 void MatchRule::output_short(FILE *fp) {
4160 fprintf(fp,"MatchRule: ( %s",_name);
4161 if (_lChild) _lChild->output(fp);
4162 if (_rChild) _rChild->output(fp);
4163 fprintf(fp," )");
4166 void MatchRule::output(FILE *fp) {
4167 output_short(fp);
4168 fprintf(fp,"\n nesting depth = %d\n", _depth);
4169 if (_result) fprintf(fp," Result Type = %s", _result);
4170 fprintf(fp,"\n");
4195 void Attribute::output(FILE *fp) {
4196 fprintf(fp,"Attribute: %s %s\n", (_ident?_ident:""), (_val?_val:""));
4211 void FormatRule::output(FILE *fp) {
4212 fprintf(fp,"\nFormat Rule: \n%s", (_temp?_temp:""));
4213 fprintf(fp,"\n");