Commit 7c4ed0da authored by Mccaskey, Alex's avatar Mccaskey, Alex
Browse files

minor cleanup

parent c1a39f14
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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";
+3 −0
Original line number Diff line number Diff line
@@ -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