Lines Matching refs:fp

173 void RegisterForm::output(FILE *fp) {          // Write info to output files
175 fprintf(fp,"\n");
176 fprintf(fp,"-------------------- Dump RegisterForm --------------------\n");
178 ((RegDef*)_regDef[name])->output(fp);
180 fprintf(fp,"\n");
182 ((RegClass*)_regClass[name])->output(fp);
184 fprintf(fp,"\n");
186 ((AllocClass*)_allocClass[name])->output(fp);
188 fprintf(fp,"-------------------- end RegisterForm --------------------\n");
224 void RegDef::output(FILE *fp) { // Write info to output files
225 fprintf(fp,"RegDef: %s (%s) encode as %s using number %d\n",
227 fprintf(fp,"\n");
306 void RegClass::output(FILE *fp) { // Write info to output files
307 fprintf(fp,"RegClass: %s\n",_classid);
310 ((RegDef*)_regDef[name])->output(fp);
312 fprintf(fp,"--- done with entries for reg_class %s\n\n",_classid);
315 void RegClass::declare_register_masks(FILE* fp) {
318 fprintf(fp, "extern const RegMask _%s%s_mask;\n", prefix, rc_name_to_upper);
319 fprintf(fp, "inline const RegMask &%s%s_mask() { return _%s%s_mask; }\n", prefix, rc_name_to_upper, prefix, rc_name_to_upper);
321 fprintf(fp, "extern const RegMask _%sSTACK_OR_%s_mask;\n", prefix, rc_name_to_upper);
322 fprintf(fp, "inline const RegMask &%sSTACK_OR_%s_mask() { return _%sSTACK_OR_%s_mask; }\n", prefix, rc_name_to_upper, prefix, rc_name_to_upper);
327 void RegClass::build_register_masks(FILE* fp) {
331 fprintf(fp, "const RegMask _%s%s_mask(", prefix, rc_name_to_upper);
335 fprintf(fp," 0x%x,", regs_in_word(i, false));
337 fprintf(fp," 0x%x );\n", regs_in_word(i, false));
340 fprintf(fp, "const RegMask _%sSTACK_OR_%s_mask(", prefix, rc_name_to_upper);
342 fprintf(fp," 0x%x,", regs_in_word(i, true));
344 fprintf(fp," 0x%x );\n", regs_in_word(i, true));
357 void CodeSnippetRegClass::declare_register_masks(FILE* fp) {
360 fprintf(fp, "inline const RegMask &%s%s_mask() { %s }\n", prefix, rc_name_to_upper, _code_snippet);
372 void ConditionalRegClass::declare_register_masks(FILE* fp) {
377 fprintf(fp, "inline const RegMask &%s%s_mask() {"
386 fprintf(fp, "inline const RegMask &%sSTACK_OR_%s_mask() {"
418 void AllocClass::output(FILE *fp) { // Write info to output files
419 fprintf(fp,"AllocClass: %s \n",_classid);
422 ((RegDef*)_regDef[name])->output(fp);
424 fprintf(fp,"--- done with entries for alloc_class %s\n\n",_classid);
451 void FrameForm::output(FILE *fp) { // Write info to output files
452 fprintf(fp,"\nFrame:\n");
485 void PipelineForm::output(FILE *fp) { // Write info to output files
492 fprintf(fp,"\nPipeline:");
495 fprintf(fp," variable-sized instructions in %d byte units", _instrUnitSize);
497 fprintf(fp," variable-sized instructions");
500 fprintf(fp," fixed-sized instructions of %d bytes", _instrUnitSize);
502 fprintf(fp," fixed-sized bundles of %d bytes", _bundleUnitSize);
504 fprintf(fp," fixed-sized instructions");
506 fprintf(fp,", branch has delay slot");
508 fprintf(fp,", max of %d instruction%s in parallel",
511 fprintf(fp,", max of %d bundle%s in parallel",
514 fprintf(fp, ", fetch %d x % d bytes per cycle", _instrFetchUnits, _instrFetchUnitSize);
516 fprintf(fp,"\nResource:");
518 fprintf(fp," %s(0x%08x)", res, _resdict[res]->is_resource()->mask());
519 fprintf(fp,"\n");
521 fprintf(fp,"\nDescription:\n");
523 fprintf(fp," %s(%d)", stage, count++);
524 fprintf(fp,"\n");
526 fprintf(fp,"\nClasses:\n");
528 _classdict[cls]->is_pipeclass()->output(fp);
530 fprintf(fp,"\nNop Instructions:");
532 fprintf(fp, " \"%s\"", nop);
533 fprintf(fp,"\n");
552 void ResourceForm::output(FILE *fp) { // Write info to output files
553 fprintf(fp, "resource: 0x%08x;\n", mask());
563 void PipeClassOperandForm::output(FILE *fp) { // Write info to output files
570 fprintf(fp,"PipeClassOperandForm: %s", _stage);
572 fprintf(fp,"+%d", _more_instrs);
573 fprintf(fp," (%s)\n", _iswrite ? "write" : "read");
583 void PipeClassResourceForm::output(FILE *fp) { // Write info to output files
584 fprintf(fp,"PipeClassResourceForm: %s at stage %s for %d cycles\n",
615 void PipeClassForm::output(FILE *fp) { // Write info to output files
616 fprintf(fp,"PipeClassForm: #%03d", _num);
618 fprintf(fp," \"%s\":", _ident);
620 fprintf(fp," latency %d", _fixed_latency);
622 fprintf(fp, ", force serialization");
624 fprintf(fp, ", may have no code");
625 fprintf(fp, ", %d instruction%s\n", InstructionCount(), InstructionCount() != 1 ? "s" : "");
673 void Peephole::output(FILE *fp) { // Write info to output files
674 fprintf(fp,"Peephole:\n");
675 if( _match != NULL ) _match->output(fp);
676 if( _constraint != NULL ) _constraint->output(fp);
677 if( _replace != NULL ) _replace->output(fp);
679 if( _next ) _next->output(fp);
734 void PeepMatch::output(FILE *fp) { // Write info to output files
735 fprintf(fp,"PeepMatch:\n");
776 void PeepConstraint::output(FILE *fp) { // Write info to output files
777 fprintf(fp,"PeepConstraint:\n");
821 void PeepReplace::output(FILE *fp) { // Write info to output files
822 fprintf(fp,"PeepReplace:\n");