mirror of
https://github.com/YosysHQ/yosys
synced 2025-11-08 23:35:08 +00:00
Merge 2cee76bfd5 into d0a41d4f58
This commit is contained in:
commit
e1b28aea0c
65 changed files with 409 additions and 152 deletions
|
|
@ -151,9 +151,6 @@ struct BugpointPass : public Pass {
|
|||
if (grep.empty())
|
||||
return true;
|
||||
|
||||
if (grep.size() > 2 && grep.front() == '"' && grep.back() == '"')
|
||||
grep = grep.substr(1, grep.size() - 2);
|
||||
|
||||
string bugpoint_file = "bugpoint-case";
|
||||
if (suffix.size())
|
||||
bugpoint_file += stringf(".%.8s", suffix);
|
||||
|
|
@ -473,13 +470,13 @@ struct BugpointPass : public Pass {
|
|||
if (args[argidx] == "-script" && argidx + 1 < args.size()) {
|
||||
if (!yosys_arg.empty())
|
||||
log_cmd_error("A -script or -command option can be only provided once!\n");
|
||||
yosys_arg = stringf("-s %s", args[++argidx]);
|
||||
yosys_arg = stringf("-s %s", quote(args[++argidx]));
|
||||
continue;
|
||||
}
|
||||
if (args[argidx] == "-command" && argidx + 1 < args.size()) {
|
||||
if (!yosys_arg.empty())
|
||||
log_cmd_error("A -script or -command option can be only provided once!\n");
|
||||
yosys_arg = stringf("-p %s", args[++argidx]);
|
||||
yosys_arg = stringf("-p %s", quote(args[++argidx]));
|
||||
continue;
|
||||
}
|
||||
if (args[argidx] == "-grep" && argidx + 1 < args.size()) {
|
||||
|
|
@ -552,18 +549,10 @@ struct BugpointPass : public Pass {
|
|||
}
|
||||
if (args[argidx] == "-runner" && argidx + 1 < args.size()) {
|
||||
runner = args[++argidx];
|
||||
if (runner.size() && runner.at(0) == '"') {
|
||||
log_assert(runner.back() == '"');
|
||||
runner = runner.substr(1, runner.size() - 2);
|
||||
}
|
||||
continue;
|
||||
}
|
||||
if (args[argidx] == "-suffix" && argidx + 1 < args.size()) {
|
||||
suffix = args[++argidx];
|
||||
if (suffix.size() && suffix.at(0) == '"') {
|
||||
log_assert(suffix.back() == '"');
|
||||
suffix = suffix.substr(1, suffix.size() - 2);
|
||||
}
|
||||
continue;
|
||||
}
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue