Commit ae470b2f authored by Nguyen, Thien Minh's avatar Nguyen, Thien Minh
Browse files

JIT extract_composite to apply passes similar to C++ print_kernel



Signed-off-by: default avatarThien Nguyen <nguyentm@ornl.gov>
parent 114d3b4d
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -715,6 +715,9 @@ std::shared_ptr<qcor::CompositeInstruction> QJIT::extract_composite_with_hetmap(
      (void (*)(std::shared_ptr<qcor::CompositeInstruction>,
                xacc::HeterogeneousMap &))f_ptr;
  kernel_functor(composite, args);
  // Same logic as C++ print_kernel,
  // applied runtime passes before printing out the kernel:
  xacc::internal_compiler::execute_pass_manager();
  return composite;
}