yosys-master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
TestCellPass Struct Reference
+ Inheritance diagram for TestCellPass:
+ Collaboration diagram for TestCellPass:

Public Member Functions

 TestCellPass ()
 
virtual void help ()
 
virtual void execute (std::vector< std::string > args, RTLIL::Design *)
 
pre_post_exec_state_t pre_execute ()
 
void post_execute (pre_post_exec_state_t state)
 
void cmd_log_args (const std::vector< std::string > &args)
 
void cmd_error (const std::vector< std::string > &args, size_t argidx, std::string msg)
 
void extra_args (std::vector< std::string > args, size_t argidx, RTLIL::Design *design, bool select=true)
 
virtual void run_register ()
 

Static Public Member Functions

static void call (RTLIL::Design *design, std::string command)
 
static void call (RTLIL::Design *design, std::vector< std::string > args)
 
static void call_on_selection (RTLIL::Design *design, const RTLIL::Selection &selection, std::string command)
 
static void call_on_selection (RTLIL::Design *design, const RTLIL::Selection &selection, std::vector< std::string > args)
 
static void call_on_module (RTLIL::Design *design, RTLIL::Module *module, std::string command)
 
static void call_on_module (RTLIL::Design *design, RTLIL::Module *module, std::vector< std::string > args)
 
static void init_register ()
 
static void done_register ()
 

Data Fields

std::string pass_name
 
std::string short_help
 
int call_counter
 
int64_t runtime_ns
 
Passnext_queued_pass
 

Detailed Description

Definition at line 499 of file test_cell.cc.

Constructor & Destructor Documentation

TestCellPass::TestCellPass ( )
inline

Definition at line 500 of file test_cell.cc.

500 : Pass("test_cell", "automatically test the implementation of a cell type") { }
Pass(std::string name, std::string short_help="** document me **")
Definition: register.cc:40

Member Function Documentation

void Pass::call ( RTLIL::Design design,
std::string  command 
)
staticinherited

Definition at line 146 of file register.cc.

147 {
148  std::vector<std::string> args;
149 
150  std::string cmd_buf = command;
151  std::string tok = next_token(cmd_buf, " \t\r\n");
152 
153  if (tok.empty() || tok[0] == '#')
154  return;
155 
156  if (tok[0] == '!') {
157  cmd_buf = command.substr(command.find('!') + 1);
158  while (!cmd_buf.empty() && (cmd_buf.back() == ' ' || cmd_buf.back() == '\t' ||
159  cmd_buf.back() == '\r' || cmd_buf.back() == '\n'))
160  cmd_buf.resize(cmd_buf.size()-1);
161  log_header("Shell command: %s\n", cmd_buf.c_str());
162  int retCode = run_command(cmd_buf);
163  if (retCode != 0)
164  log_cmd_error("Shell command returned error code %d.\n", retCode);
165  return;
166  }
167 
168  while (!tok.empty()) {
169  if (tok == "#")
170  break;
171  if (tok.back() == ';') {
172  int num_semikolon = 0;
173  while (!tok.empty() && tok.back() == ';')
174  tok.resize(tok.size()-1), num_semikolon++;
175  if (!tok.empty())
176  args.push_back(tok);
177  call(design, args);
178  args.clear();
179  if (num_semikolon == 2)
180  call(design, "clean");
181  if (num_semikolon == 3)
182  call(design, "clean -purge");
183  } else
184  args.push_back(tok);
185  tok = next_token(cmd_buf, " \t\r\n");
186  }
187 
188  call(design, args);
189 }
static std::string next_token(bool pass_newline=false)
Definition: preproc.cc:96
void log_header(const char *format,...)
Definition: log.cc:188
int run_command(const std::string &command, std::function< void(const std::string &)> process_line)
Definition: yosys.cc:195
void log_cmd_error(const char *format,...)
Definition: log.cc:211
static void call(RTLIL::Design *design, std::string command)
Definition: register.cc:146

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void Pass::call ( RTLIL::Design design,
std::vector< std::string >  args 
)
staticinherited

Definition at line 191 of file register.cc.

192 {
193  if (args.size() == 0 || args[0][0] == '#')
194  return;
195 
196  if (echo_mode) {
197  log("%s", create_prompt(design, 0));
198  for (size_t i = 0; i < args.size(); i++)
199  log("%s%s", i ? " " : "", args[i].c_str());
200  log("\n");
201  }
202 
203  if (pass_register.count(args[0]) == 0)
204  log_cmd_error("No such command: %s (type 'help' for a command overview)\n", args[0].c_str());
205 
206  size_t orig_sel_stack_pos = design->selection_stack.size();
207  auto state = pass_register[args[0]]->pre_execute();
208  pass_register[args[0]]->execute(args, design);
209  pass_register[args[0]]->post_execute(state);
210  while (design->selection_stack.size() > orig_sel_stack_pos)
211  design->selection_stack.pop_back();
212 
213  design->check();
214 }
bool echo_mode
Definition: register.cc:30
std::vector< RTLIL::Selection > selection_stack
Definition: rtlil.h:509
const char * create_prompt(RTLIL::Design *design, int recursion_counter)
Definition: yosys.cc:400
void check()
Definition: rtlil.cc:357
void log_cmd_error(const char *format,...)
Definition: log.cc:211
void log(const char *format,...)
Definition: log.cc:180
std::map< std::string, Pass * > pass_register
Definition: register.cc:35

+ Here is the call graph for this function:

void Pass::call_on_module ( RTLIL::Design design,
RTLIL::Module module,
std::string  command 
)
staticinherited

Definition at line 240 of file register.cc.

241 {
242  std::string backup_selected_active_module = design->selected_active_module;
243  design->selected_active_module = module->name.str();
244  design->selection_stack.push_back(RTLIL::Selection(false));
245  design->selection_stack.back().select(module);
246 
247  Pass::call(design, command);
248 
249  design->selection_stack.pop_back();
250  design->selected_active_module = backup_selected_active_module;
251 }
std::string str() const
Definition: rtlil.h:182
std::vector< RTLIL::Selection > selection_stack
Definition: rtlil.h:509
RTLIL::IdString name
Definition: rtlil.h:599
std::string selected_active_module
Definition: rtlil.h:511
static void call(RTLIL::Design *design, std::string command)
Definition: register.cc:146

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void Pass::call_on_module ( RTLIL::Design design,
RTLIL::Module module,
std::vector< std::string >  args 
)
staticinherited

Definition at line 253 of file register.cc.

254 {
255  std::string backup_selected_active_module = design->selected_active_module;
256  design->selected_active_module = module->name.str();
257  design->selection_stack.push_back(RTLIL::Selection(false));
258  design->selection_stack.back().select(module);
259 
260  Pass::call(design, args);
261 
262  design->selection_stack.pop_back();
263  design->selected_active_module = backup_selected_active_module;
264 }
std::string str() const
Definition: rtlil.h:182
std::vector< RTLIL::Selection > selection_stack
Definition: rtlil.h:509
RTLIL::IdString name
Definition: rtlil.h:599
std::string selected_active_module
Definition: rtlil.h:511
static void call(RTLIL::Design *design, std::string command)
Definition: register.cc:146

+ Here is the call graph for this function:

void Pass::call_on_selection ( RTLIL::Design design,
const RTLIL::Selection selection,
std::string  command 
)
staticinherited

Definition at line 216 of file register.cc.

217 {
218  std::string backup_selected_active_module = design->selected_active_module;
219  design->selected_active_module.clear();
220  design->selection_stack.push_back(selection);
221 
222  Pass::call(design, command);
223 
224  design->selection_stack.pop_back();
225  design->selected_active_module = backup_selected_active_module;
226 }
std::vector< RTLIL::Selection > selection_stack
Definition: rtlil.h:509
std::string selected_active_module
Definition: rtlil.h:511
static void call(RTLIL::Design *design, std::string command)
Definition: register.cc:146

+ Here is the call graph for this function:

void Pass::call_on_selection ( RTLIL::Design design,
const RTLIL::Selection selection,
std::vector< std::string >  args 
)
staticinherited

Definition at line 228 of file register.cc.

229 {
230  std::string backup_selected_active_module = design->selected_active_module;
231  design->selected_active_module.clear();
232  design->selection_stack.push_back(selection);
233 
234  Pass::call(design, args);
235 
236  design->selection_stack.pop_back();
237  design->selected_active_module = backup_selected_active_module;
238 }
std::vector< RTLIL::Selection > selection_stack
Definition: rtlil.h:509
std::string selected_active_module
Definition: rtlil.h:511
static void call(RTLIL::Design *design, std::string command)
Definition: register.cc:146

+ Here is the call graph for this function:

void Pass::cmd_error ( const std::vector< std::string > &  args,
size_t  argidx,
std::string  msg 
)
inherited

Definition at line 110 of file register.cc.

111 {
112  std::string command_text;
113  int error_pos = 0;
114 
115  for (size_t i = 0; i < args.size(); i++) {
116  if (i < argidx)
117  error_pos += args[i].size() + 1;
118  command_text = command_text + (command_text.empty() ? "" : " ") + args[i];
119  }
120 
121  log("\nSyntax error in command `%s':\n", command_text.c_str());
122  help();
123 
124  log_cmd_error("Command syntax error: %s\n> %s\n> %*s^\n",
125  msg.c_str(), command_text.c_str(), error_pos, "");
126 }
virtual void help()
Definition: register.cc:93
void log_cmd_error(const char *format,...)
Definition: log.cc:211
void log(const char *format,...)
Definition: log.cc:180

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void Pass::cmd_log_args ( const std::vector< std::string > &  args)
inherited

Definition at line 100 of file register.cc.

101 {
102  if (args.size() <= 1)
103  return;
104  log("Full command line:");
105  for (size_t i = 0; i < args.size(); i++)
106  log(" %s", args[i].c_str());
107  log("\n");
108 }
void log(const char *format,...)
Definition: log.cc:180

+ Here is the call graph for this function:

void Pass::done_register ( )
staticinherited

Definition at line 62 of file register.cc.

63 {
64  frontend_register.clear();
65  pass_register.clear();
66  backend_register.clear();
68 }
std::map< std::string, Frontend * > frontend_register
Definition: register.cc:34
Pass * first_queued_pass
Definition: register.cc:31
#define log_assert(_assert_expr_)
Definition: log.h:85
#define NULL
std::map< std::string, Pass * > pass_register
Definition: register.cc:35
std::map< std::string, Backend * > backend_register
Definition: register.cc:36

+ Here is the caller graph for this function:

virtual void TestCellPass::execute ( std::vector< std::string >  args,
RTLIL::Design  
)
inlinevirtual

Implements Pass.

Definition at line 544 of file test_cell.cc.

545  {
546  int num_iter = 100;
547  std::string techmap_cmd = "techmap -assert";
548  std::string ilang_file;
549  xorshift32_state = 0;
550  std::ofstream vlog_file;
551  bool verbose = false;
552  bool constmode = false;
553  bool nosat = false;
554 
555  int argidx;
556  for (argidx = 1; argidx < GetSize(args); argidx++)
557  {
558  if (args[argidx] == "-n" && argidx+1 < GetSize(args)) {
559  num_iter = atoi(args[++argidx].c_str());
560  continue;
561  }
562  if (args[argidx] == "-s" && argidx+1 < GetSize(args)) {
563  xorshift32_state = atoi(args[++argidx].c_str());
564  continue;
565  }
566  if (args[argidx] == "-map" && argidx+1 < GetSize(args)) {
567  techmap_cmd += " -map " + args[++argidx];
568  continue;
569  }
570  if (args[argidx] == "-f" && argidx+1 < GetSize(args)) {
571  ilang_file = args[++argidx];
572  num_iter = 1;
573  continue;
574  }
575  if (args[argidx] == "-script" && argidx+1 < GetSize(args)) {
576  techmap_cmd = "script " + args[++argidx];
577  continue;
578  }
579  if (args[argidx] == "-simlib") {
580  techmap_cmd = "techmap -map +/simlib.v -max_iter 2 -autoproc";
581  continue;
582  }
583  if (args[argidx] == "-const") {
584  constmode = true;
585  continue;
586  }
587  if (args[argidx] == "-nosat") {
588  nosat = true;
589  continue;
590  }
591  if (args[argidx] == "-v") {
592  verbose = true;
593  continue;
594  }
595  if (args[argidx] == "-vlog" && argidx+1 < GetSize(args)) {
596  vlog_file.open(args[++argidx], std::ios_base::trunc);
597  if (!vlog_file.is_open())
598  log_cmd_error("Failed to open output file `%s'.\n", args[argidx].c_str());
599  continue;
600  }
601  break;
602  }
603 
604  if (xorshift32_state == 0) {
605  xorshift32_state = time(NULL) & 0x7fffffff;
606  log("Rng seed value: %d\n", int(xorshift32_state));
607  }
608 
609  std::map<std::string, std::string> cell_types;
610  std::vector<std::string> selected_cell_types;
611 
612  cell_types["$not"] = "ASY";
613  cell_types["$pos"] = "ASY";
614  cell_types["$neg"] = "ASY";
615 
616  cell_types["$and"] = "ABSY";
617  cell_types["$or"] = "ABSY";
618  cell_types["$xor"] = "ABSY";
619  cell_types["$xnor"] = "ABSY";
620 
621  cell_types["$reduce_and"] = "ASY";
622  cell_types["$reduce_or"] = "ASY";
623  cell_types["$reduce_xor"] = "ASY";
624  cell_types["$reduce_xnor"] = "ASY";
625  cell_types["$reduce_bool"] = "ASY";
626 
627  cell_types["$shl"] = "ABshY";
628  cell_types["$shr"] = "ABshY";
629  cell_types["$sshl"] = "ABshY";
630  cell_types["$sshr"] = "ABshY";
631  cell_types["$shift"] = "ABshY";
632  cell_types["$shiftx"] = "ABshY";
633 
634  cell_types["$lt"] = "ABSY";
635  cell_types["$le"] = "ABSY";
636  cell_types["$eq"] = "ABSY";
637  cell_types["$ne"] = "ABSY";
638  // cell_types["$eqx"] = "ABSY";
639  // cell_types["$nex"] = "ABSY";
640  cell_types["$ge"] = "ABSY";
641  cell_types["$gt"] = "ABSY";
642 
643  cell_types["$add"] = "ABSY";
644  cell_types["$sub"] = "ABSY";
645  cell_types["$mul"] = "ABSY";
646  cell_types["$div"] = "ABSY";
647  cell_types["$mod"] = "ABSY";
648  // cell_types["$pow"] = "ABsY";
649 
650  cell_types["$logic_not"] = "ASY";
651  cell_types["$logic_and"] = "ABSY";
652  cell_types["$logic_or"] = "ABSY";
653 
654  // cell_types["$mux"] = "A";
655  // cell_types["$pmux"] = "A";
656  // cell_types["$slice"] = "A";
657  // cell_types["$concat"] = "A";
658  // cell_types["$assert"] = "A";
659 
660  cell_types["$lut"] = "*";
661  cell_types["$alu"] = "ABSY";
662  cell_types["$lcu"] = "*";
663  cell_types["$macc"] = "*";
664  cell_types["$fa"] = "*";
665 
666  for (; argidx < GetSize(args); argidx++)
667  {
668  if (args[argidx].rfind("-", 0) == 0)
669  log_cmd_error("Unexpected option: %s\n", args[argidx].c_str());
670 
671  if (args[argidx] == "all") {
672  for (auto &it : cell_types)
673  if (std::count(selected_cell_types.begin(), selected_cell_types.end(), it.first) == 0)
674  selected_cell_types.push_back(it.first);
675  continue;
676  }
677 
678  if (cell_types.count(args[argidx]) == 0) {
679  std::string cell_type_list;
680  int charcount = 100;
681  for (auto &it : cell_types) {
682  if (charcount > 60) {
683  cell_type_list += "\n" + it.first;
684  charcount = 0;
685  } else
686  cell_type_list += " " + it.first;
687  charcount += GetSize(it.first);
688  }
689  log_cmd_error("The cell type `%s' is currently not supported. Try one of these:%s\n",
690  args[argidx].c_str(), cell_type_list.c_str());
691  }
692 
693  if (std::count(selected_cell_types.begin(), selected_cell_types.end(), args[argidx]) == 0)
694  selected_cell_types.push_back(args[argidx]);
695  }
696 
697  if (!ilang_file.empty()) {
698  if (!selected_cell_types.empty())
699  log_cmd_error("Do not specify any cell types when using -f.\n");
700  selected_cell_types.push_back("ilang");
701  }
702 
703  if (selected_cell_types.empty())
704  log_cmd_error("No cell type to test specified.\n");
705 
706  std::vector<std::string> uut_names;
707 
708  for (auto cell_type : selected_cell_types)
709  for (int i = 0; i < num_iter; i++)
710  {
711  RTLIL::Design *design = new RTLIL::Design;
712  if (cell_type == "ilang")
713  Frontend::frontend_call(design, NULL, std::string(), "ilang " + ilang_file);
714  else
715  create_gold_module(design, cell_type, cell_types.at(cell_type), constmode);
716  Pass::call(design, stringf("copy gold gate; cd gate; %s; cd ..; opt -fast gate", techmap_cmd.c_str()));
717  if (!nosat)
718  Pass::call(design, "miter -equiv -flatten -make_outputs -ignore_gold_x gold gate miter");
719  if (verbose)
720  Pass::call(design, "dump gate");
721  Pass::call(design, "dump gold");
722  if (!nosat)
723  Pass::call(design, "sat -verify -enable_undef -prove trigger 0 -show-inputs -show-outputs miter");
724  std::string uut_name = stringf("uut_%s_%d", cell_type.substr(1).c_str(), i);
725  if (vlog_file.is_open()) {
726  Pass::call(design, stringf("copy gold %s_expr; select %s_expr", uut_name.c_str(), uut_name.c_str()));
727  Backend::backend_call(design, &vlog_file, "<test_cell -vlog>", "verilog -selected");
728  Pass::call(design, stringf("copy gold %s_noexpr; select %s_noexpr", uut_name.c_str(), uut_name.c_str()));
729  Backend::backend_call(design, &vlog_file, "<test_cell -vlog>", "verilog -selected -noexpr");
730  uut_names.push_back(uut_name);
731  }
732  run_eval_test(design, verbose, nosat, uut_name, vlog_file);
733  delete design;
734  }
735 
736  if (vlog_file.is_open()) {
737  vlog_file << "\nmodule testbench;\n";
738  for (auto &uut : uut_names)
739  vlog_file << stringf(" %s %s ();\n", uut.c_str(), uut.c_str());
740  vlog_file << " initial begin\n";
741  for (auto &uut : uut_names)
742  vlog_file << " " << uut << ".run;\n";
743  vlog_file << " end\n";
744  vlog_file << "endmodule\n";
745  }
746  }
std::string stringf(const char *fmt,...)
Definition: yosys.cc:58
static void frontend_call(RTLIL::Design *design, std::istream *f, std::string filename, std::string command)
Definition: register.cc:375
USING_YOSYS_NAMESPACE static PRIVATE_NAMESPACE_BEGIN uint32_t xorshift32_state
Definition: test_cell.cc:30
static void run_eval_test(RTLIL::Design *design, bool verbose, bool nosat, std::string uut_name, std::ofstream &vlog_file)
Definition: test_cell.cc:266
static void backend_call(RTLIL::Design *design, std::ostream *f, std::string filename, std::string command)
Definition: register.cc:479
int GetSize(RTLIL::Wire *wire)
Definition: yosys.cc:334
void log_cmd_error(const char *format,...)
Definition: log.cc:211
#define NULL
static void create_gold_module(RTLIL::Design *design, RTLIL::IdString cell_type, std::string cell_type_flags, bool constmode)
Definition: test_cell.cc:39
void log(const char *format,...)
Definition: log.cc:180
static void call(RTLIL::Design *design, std::string command)
Definition: register.cc:146

+ Here is the call graph for this function:

void Pass::extra_args ( std::vector< std::string >  args,
size_t  argidx,
RTLIL::Design design,
bool  select = true 
)
inherited

Definition at line 128 of file register.cc.

129 {
130  for (; argidx < args.size(); argidx++)
131  {
132  std::string arg = args[argidx];
133 
134  if (arg.substr(0, 1) == "-")
135  cmd_error(args, argidx, "Unknown option or option in arguments.");
136 
137  if (!select)
138  cmd_error(args, argidx, "Extra argument.");
139 
140  handle_extra_select_args(this, args, argidx, args.size(), design);
141  break;
142  }
143  // cmd_log_args(args);
144 }
void cmd_error(const std::vector< std::string > &args, size_t argidx, std::string msg)
Definition: register.cc:110
void handle_extra_select_args(Pass *pass, std::vector< std::string > args, size_t argidx, size_t args_size, RTLIL::Design *design)
Definition: select.cc:803

+ Here is the call graph for this function:

virtual void TestCellPass::help ( )
inlinevirtual

Reimplemented from Pass.

Definition at line 501 of file test_cell.cc.

502  {
503  // |---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|
504  log("\n");
505  log(" test_cell [options] {cell-types}\n");
506  log("\n");
507  log("Tests the internal implementation of the given cell type (for example '$add')\n");
508  log("by comparing SAT solver, EVAL and TECHMAP implementations of the cell types..\n");
509  log("\n");
510  log("Run with 'all' instead of a cell type to run the test on all supported\n");
511  log("cell types.\n");
512  log("\n");
513  log(" -n {integer}\n");
514  log(" create this number of cell instances and test them (default = 100).\n");
515  log("\n");
516  log(" -s {positive_integer}\n");
517  log(" use this value as rng seed value (default = unix time).\n");
518  log("\n");
519  log(" -f {ilang_file}\n");
520  log(" don't generate circuits. instead load the specified ilang file.\n");
521  log("\n");
522  log(" -map {filename}\n");
523  log(" pass this option to techmap.\n");
524  log("\n");
525  log(" -simlib\n");
526  log(" use \"techmap -map +/simlib.v -max_iter 2 -autoproc\"\n");
527  log("\n");
528  log(" -script {script_file}\n");
529  log(" instead of calling \"techmap\", call \"script {script_file}\".\n");
530  log("\n");
531  log(" -const\n");
532  log(" set some input bits to random constant values\n");
533  log("\n");
534  log(" -nosat\n");
535  log(" do not check SAT model or run SAT equivalence checking\n");
536  log("\n");
537  log(" -v\n");
538  log(" print additional debug information to the console\n");
539  log("\n");
540  log(" -vlog {filename}\n");
541  log(" create a verilog test bench to test simlib and write_verilog\n");
542  log("\n");
543  }
void log(const char *format,...)
Definition: log.cc:180

+ Here is the call graph for this function:

void Pass::init_register ( )
staticinherited

Definition at line 54 of file register.cc.

55 {
56  while (first_queued_pass) {
59  }
60 }
Pass * first_queued_pass
Definition: register.cc:31
Pass * next_queued_pass
Definition: register.h:60
virtual void run_register()
Definition: register.cc:48

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void Pass::post_execute ( Pass::pre_post_exec_state_t  state)
inherited

Definition at line 84 of file register.cc.

85 {
86  int64_t time_ns = PerformanceTimer::query() - state.begin_ns;
87  runtime_ns += time_ns;
88  current_pass = state.parent_pass;
89  if (current_pass)
90  current_pass->runtime_ns -= time_ns;
91 }
static int64_t query()
Definition: log.h:151
int64_t runtime_ns
Definition: register.h:37
Pass * current_pass
Definition: register.cc:32
Pass * parent_pass
Definition: register.h:40
int64_t begin_ns
Definition: register.h:41

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Pass::pre_post_exec_state_t Pass::pre_execute ( )
inherited

Definition at line 74 of file register.cc.

75 {
76  pre_post_exec_state_t state;
77  call_counter++;
78  state.begin_ns = PerformanceTimer::query();
79  state.parent_pass = current_pass;
80  current_pass = this;
81  return state;
82 }
static int64_t query()
Definition: log.h:151
Pass * current_pass
Definition: register.cc:32
int call_counter
Definition: register.h:36

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void Pass::run_register ( )
virtualinherited

Reimplemented in Backend, and Frontend.

Definition at line 48 of file register.cc.

49 {
50  log_assert(pass_register.count(pass_name) == 0);
51  pass_register[pass_name] = this;
52 }
std::string pass_name
Definition: register.h:29
#define log_assert(_assert_expr_)
Definition: log.h:85
std::map< std::string, Pass * > pass_register
Definition: register.cc:35

+ Here is the caller graph for this function:

Field Documentation

int Pass::call_counter
inherited

Definition at line 36 of file register.h.

Pass* Pass::next_queued_pass
inherited

Definition at line 60 of file register.h.

std::string Pass::pass_name
inherited

Definition at line 29 of file register.h.

int64_t Pass::runtime_ns
inherited

Definition at line 37 of file register.h.

std::string Pass::short_help
inherited

Definition at line 29 of file register.h.


The documentation for this struct was generated from the following file: