Skip to content

Commit 5e51cfc

Browse files
authored
Enable --verify-each option in qss-compiler
`verify-each` option was enabled only in `qss-opt` and not in `qss-compiler`. This commit enables the option in `qss-compiler`.
2 parents 26b1eba + e7ec5fd commit 5e51cfc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/API/api.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -561,6 +561,9 @@ compile_(int argc, char const **argv, std::string *outputString,
561561
mlir::applyPassManagerCLOptions(pm);
562562
mlir::applyDefaultTimingPassManagerCLOptions(pm);
563563

564+
// Enable verifier (default: true)
565+
pm.enableVerifier(verifyPasses);
566+
564567
// Build the configuration for this compilation event.
565568
auto configResult = buildConfig_(&context);
566569
if (auto err = configResult.takeError())

0 commit comments

Comments
 (0)