Loading mlir/tools/qcor-mlir-tool.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -132,7 +132,7 @@ int main(int argc, char **argv) { mlir::PassManager pm(&context); applyPassManagerCLOptions(pm); pm.addPass(std::make_unique<qcor::QuantumToLLVMLoweringPass>( qoptimizations, true, unique_function_names)); qoptimizations, unique_function_names)); auto module_op = (*module).getOperation(); if (mlir::failed(pm.run(module_op))) { std::cout << "Pass Manager Failed\n"; Loading mlir/transforms/quantum_to_llvm.cpp +3 −0 Original line number Diff line number Diff line Loading @@ -71,6 +71,9 @@ void QuantumToLLVMLoweringPass::runOnOperation() { auto module = getOperation(); if (q_optimizations) { // TODO Figure out how to rip this out to its on MLIR-level Pass. // I'm struggling to make that happen... // First, add any Optimization Passes. // We note that some opt passes will free up other optimizations that // would otherwise be missed on the first pass, so do this a certain Loading Loading
mlir/tools/qcor-mlir-tool.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -132,7 +132,7 @@ int main(int argc, char **argv) { mlir::PassManager pm(&context); applyPassManagerCLOptions(pm); pm.addPass(std::make_unique<qcor::QuantumToLLVMLoweringPass>( qoptimizations, true, unique_function_names)); qoptimizations, unique_function_names)); auto module_op = (*module).getOperation(); if (mlir::failed(pm.run(module_op))) { std::cout << "Pass Manager Failed\n"; Loading
mlir/transforms/quantum_to_llvm.cpp +3 −0 Original line number Diff line number Diff line Loading @@ -71,6 +71,9 @@ void QuantumToLLVMLoweringPass::runOnOperation() { auto module = getOperation(); if (q_optimizations) { // TODO Figure out how to rip this out to its on MLIR-level Pass. // I'm struggling to make that happen... // First, add any Optimization Passes. // We note that some opt passes will free up other optimizations that // would otherwise be missed on the first pass, so do this a certain Loading