54 std::string get_live_stage(
int stage,
int maxStages) {
55 if (stage == -1)
return "parser";
56 if (stage >= maxStages)
return "deparser";
57 return std::to_string(stage);
59 std::string get_live_start(
int maxStages) {
60 return (parsed ?
"parser" : get_live_stage(live_start, maxStages));
62 std::string get_live_end(
int maxStages) {
63 return (deparsed ?
"deparser" : get_live_stage(live_end, maxStages));
69 typedef std::map<PHV::Container, FieldUses> LiveRangePerContainer[2];
70 void getLiveRanges(LiveRangePerContainer &c)
const;
72 void emit_gress(std::ostream &out, gress_t gress)
const;
73 friend std::ostream &operator<<(std::ostream &,
const PhvAsmOutput &);
81 bool have_ghost =
false);
PhvAsmOutput(const PhvInfo &p, const FieldDefUse &defuse, const TableSummary &tbl_summary, const LiveRangeReport *live_range_report, bool have_ghost=false)
Definition phv/asm_output.cpp:32