Skip to content

Commit c037c72

Browse files
tzunghanjuangerick-xanadu
authored andcommitted
Add disableVerification to translateModuleToLLVMIR
See llvm/llvm-project#94445 and llvm/llvm-project@9b2a349
1 parent 3b70b9f commit c037c72

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

mlir/lib/Driver/CompilerDriver.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -731,9 +731,11 @@ LogicalResult QuantumDriverMain(const CompilerOptions &options, CompilerOutput &
731731

732732
if (runTranslate && (inType == InputType::MLIR)) {
733733
TimingScope translateTiming = timing.nest("Translate");
734+
// TODO: Change to true for release.
735+
bool disableVerification = false;
734736
llvmModule =
735737
timer::timer(translateModuleToLLVMIR, "translateModuleToLLVMIR",
736-
/* add_endl */ false, *mlirModule, llvmContext, "LLVMDialectModule");
738+
/* add_endl */ false, *mlirModule, llvmContext, "LLVMDialectModule", disableVerification);
737739
if (!llvmModule) {
738740
CO_MSG(options, Verbosity::Urgent, "Failed to translate LLVM module\n");
739741
return failure();

0 commit comments

Comments
 (0)