Skip to content

Commit d780864

Browse files
authored
Merge pull request #4770 from YosysHQ/emil/autoidx-option
driver: add --autoidx
2 parents 59a9647 + 65146e3 commit d780864

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

kernel/driver.cc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,8 @@ int main(int argc, char **argv)
276276
options.add_options("developer")
277277
("X,trace", "enable tracing of core data structure changes. for debugging")
278278
("M,randomize-pointers", "will slightly randomize allocated pointer addresses. for debugging")
279+
("autoidx", "start counting autoidx up from <seed>, similar effect to --hash-seed",
280+
cxxopts::value<uint64_t>(), "<idx>")
279281
("A,abort", "will call abort() at the end of the script. for debugging")
280282
("x,experimental", "do not print warnings for the experimental <feature>",
281283
cxxopts::value<std::vector<std::string>>(), "<feature>")
@@ -427,6 +429,10 @@ int main(int argc, char **argv)
427429
if (result.count("infile")) {
428430
frontend_files = result["infile"].as<std::vector<std::string>>();
429431
}
432+
if (result.count("autoidx")) {
433+
int idx = result["autoidx"].as<uint64_t>();
434+
autoidx = idx;
435+
}
430436

431437
if (log_errfile == NULL) {
432438
log_files.push_back(stdout);

0 commit comments

Comments
 (0)