From 35de0e50e451d3f65331c7bd03ee5b0b300032ab Mon Sep 17 00:00:00 2001 From: Robin Kuzmin Date: Fri, 19 Mar 2021 13:30:30 -0700 Subject: [PATCH] Removed __quantum__rt__callable_memory_management() --- src/QirRuntime/lib/QIR/bridge-rt.ll | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/QirRuntime/lib/QIR/bridge-rt.ll b/src/QirRuntime/lib/QIR/bridge-rt.ll index 950a26abf67..ebb41b97528 100644 --- a/src/QirRuntime/lib/QIR/bridge-rt.ll +++ b/src/QirRuntime/lib/QIR/bridge-rt.ll @@ -386,20 +386,6 @@ define dllexport %Callable* @__quantum__rt__callable_make_controlled(%Callable* ret %Callable* %.clb_cnt } -; After both the compiler and runtime are in sync with https://github.com/microsoft/qsharp-language/pull/83: -; Regenerate the following .ll files with the updated compiler such that they don't call this function any more: -; test\FullstateSimulator\qir-test-simulator.ll -; test\QIR-tracer\tracer-qir-lnx.ll -; test\QIR-tracer\tracer-qir-win.ll -; Remove this function. -; Resolve https://github.com/microsoft/qsharp-runtime/issues/568 (Remove `__quantum__rt__callable_memory_management()`) -define dllexport void @__quantum__rt__callable_memory_management(i32 %index, %Callable* %.clb, i64 %.parameter) { - %clb = bitcast %Callable* %.clb to %"struct.QirCallable"* - %parameter = trunc i64 %.parameter to i32 - call void @quantum__rt__callable_memory_management(i32 %index, %"struct.QirCallable"* %clb, i32 %parameter) - ret void -} - define dllexport void @__quantum__rt__capture_update_reference_count(%Callable* %.clb, i32 %count) { %clb = bitcast %Callable* %.clb to %"struct.QirCallable"* call void @quantum__rt__callable_memory_management(i32 0, %"struct.QirCallable"* %clb, i32 %count)