@@ -206,8 +206,9 @@ class BaseRemoteRestRuntimeClient : public RemoteRuntimeClient {
206206 moduleOp.getContext ()->disableMultithreading ();
207207 pm.enableIRPrinting ();
208208 }
209- cudaq_internal::maybeLogPassPipeline (pm,
210- name + " :" + passName + " -synth" );
209+
210+ cudaq_internal::maybeLogPassPipeline (
211+ pm, cudaq_internal::buildLabel (name, passName + " -synth" ));
211212 if (failed (pm.run (moduleOp)))
212213 throw std::runtime_error (" Could not successfully apply " + passName +
213214 " synth." );
@@ -250,7 +251,8 @@ class BaseRemoteRestRuntimeClient : public RemoteRuntimeClient {
250251 tm.setEnabled (cudaq::isTimingTagEnabled (cudaq::TIMING_JIT_PASSES));
251252 auto timingScope = tm.getRootScope (); // starts the timer
252253 pm.enableTiming (timingScope); // do this right before pm.run
253- cudaq_internal::maybeLogPassPipeline (pm, name + " :client" );
254+ cudaq_internal::maybeLogPassPipeline (
255+ pm, cudaq_internal::buildLabel (name, " client" ));
254256 if (failed (pm.run (moduleOp)))
255257 throw std::runtime_error (
256258 " Remote rest platform: applying IR passes failed." );
@@ -304,7 +306,8 @@ class BaseRemoteRestRuntimeClient : public RemoteRuntimeClient {
304306 mlir::PassManager pm (ctx);
305307 // For now, the server side expects full-QIR.
306308 opt::addAOTPipelineConvertToQIR (pm);
307- cudaq_internal::maybeLogPassPipeline (pm, name + " :aot-qir" );
309+ cudaq_internal::maybeLogPassPipeline (
310+ pm, cudaq_internal::buildLabel (name, " aot-qir" ));
308311
309312 if (failed (pm.run (moduleOp)))
310313 throw std::runtime_error (
0 commit comments