@@ -156,8 +156,10 @@ module Add_buffer_retrieval_and_syncing (Backend : No_buffer_retrieval_or_syncin
156156 Hashtbl. clear s.updating_for)
157157end
158158
159- let lower_assignments ?name bindings asgns =
160- let name = Option. value_or_thunk name ~default: (fun () -> Assignments. get_name_exn asgns) in
159+ let % track6_sexp lower_assignments ?name bindings asgns =
160+ let name : string =
161+ Option. value_or_thunk name ~default: (fun () -> Assignments. get_name_exn asgns)
162+ in
161163 let unoptim_ll_source = Utils. get_debug_formatter ~fname: (name ^ " -unoptimized.ll" ) in
162164 let ll_source = Utils. get_debug_formatter ~fname: (name ^ " .ll" ) in
163165 let cd_source = Utils. get_debug_formatter ~fname: (name ^ " .cd" ) in
@@ -319,9 +321,11 @@ module Raise_backend (Device : Lowered_backend) : Backend = struct
319321 [@@ deriving sexp_of ]
320322
321323 let % debug3_sexp compile ?name bindings (comp : Assignments.comp ) : code =
322- let name, lowered = lower_assignments ?name bindings comp.Assignments. asgns in
323- let code = compile ~name bindings lowered in
324- let from_prior_context =
324+ let (name : string ), (lowered : Low_level.optimized ) =
325+ lower_assignments ?name bindings comp.Assignments. asgns
326+ in
327+ let code : Device.code = compile ~name bindings lowered in
328+ let from_prior_context : Tn.t_set =
325329 Set. diff (Assignments. context_nodes ~use_host_memory comp.asgns) comp.embedded_nodes
326330 in
327331 { from_prior_context; name; lowered; code; expected_merge_node = lowered.Low_level. merge_node }
@@ -500,7 +504,7 @@ let finalize (type buffer_ptr dev runner event)
500504 && not (Hashtbl. mem ctx.stream.device.cross_stream_candidates key)
501505 then mem_free ctx.stream data)))
502506
503- let fresh_backend ?backend_name ?(config = Only_devices_parallel ) () =
507+ let % track5_sexp fresh_backend ?backend_name ?(config = Only_devices_parallel ) () =
504508 let backend =
505509 match
506510 Option. value_or_thunk backend_name ~default: (fun () ->
0 commit comments