Skip to content

Commit d2234d7

Browse files
committed
Rename read result to use __rt__ pattern
1 parent b383963 commit d2234d7

File tree

26 files changed

+854
-854
lines changed

26 files changed

+854
-854
lines changed

source/compiler/qsc/src/codegen/tests.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1018,7 +1018,7 @@ mod adaptive_ri_profile {
10181018
block_0:
10191019
call void @__quantum__qis__h__body(%Qubit* inttoptr (i64 0 to %Qubit*))
10201020
call void @__quantum__qis__mresetz__body(%Qubit* inttoptr (i64 0 to %Qubit*), %Result* inttoptr (i64 0 to %Result*))
1021-
%var_0 = call i1 @__quantum__qis__read_result__body(%Result* inttoptr (i64 0 to %Result*))
1021+
%var_0 = call i1 @__quantum__rt__read_result(%Result* inttoptr (i64 0 to %Result*))
10221022
%var_1 = icmp eq i1 %var_0, false
10231023
br i1 %var_1, label %block_1, label %block_2
10241024
block_1:
@@ -1035,7 +1035,7 @@ mod adaptive_ri_profile {
10351035
10361036
declare void @__quantum__qis__mresetz__body(%Qubit*, %Result*) #1
10371037
1038-
declare i1 @__quantum__qis__read_result__body(%Result*)
1038+
declare i1 @__quantum__rt__read_result(%Result*)
10391039
10401040
declare void @__quantum__rt__int_record_output(i64, i8*)
10411041
@@ -1495,7 +1495,7 @@ mod adaptive_rif_profile {
14951495
block_0:
14961496
call void @__quantum__qis__h__body(%Qubit* inttoptr (i64 0 to %Qubit*))
14971497
call void @__quantum__qis__mresetz__body(%Qubit* inttoptr (i64 0 to %Qubit*), %Result* inttoptr (i64 0 to %Result*))
1498-
%var_0 = call i1 @__quantum__qis__read_result__body(%Result* inttoptr (i64 0 to %Result*))
1498+
%var_0 = call i1 @__quantum__rt__read_result(%Result* inttoptr (i64 0 to %Result*))
14991499
%var_1 = icmp eq i1 %var_0, false
15001500
br i1 %var_1, label %block_1, label %block_2
15011501
block_1:
@@ -1512,7 +1512,7 @@ mod adaptive_rif_profile {
15121512
15131513
declare void @__quantum__qis__mresetz__body(%Qubit*, %Result*) #1
15141514
1515-
declare i1 @__quantum__qis__read_result__body(%Result*)
1515+
declare i1 @__quantum__rt__read_result(%Result*)
15161516
15171517
declare void @__quantum__rt__int_record_output(i64, i8*)
15181518
@@ -1554,7 +1554,7 @@ mod adaptive_rif_profile {
15541554
block_0:
15551555
call void @__quantum__qis__h__body(%Qubit* inttoptr (i64 0 to %Qubit*))
15561556
call void @__quantum__qis__mresetz__body(%Qubit* inttoptr (i64 0 to %Qubit*), %Result* inttoptr (i64 0 to %Result*))
1557-
%var_0 = call i1 @__quantum__qis__read_result__body(%Result* inttoptr (i64 0 to %Result*))
1557+
%var_0 = call i1 @__quantum__rt__read_result(%Result* inttoptr (i64 0 to %Result*))
15581558
%var_1 = icmp eq i1 %var_0, false
15591559
br i1 %var_1, label %block_1, label %block_2
15601560
block_1:
@@ -1571,7 +1571,7 @@ mod adaptive_rif_profile {
15711571
15721572
declare void @__quantum__qis__mresetz__body(%Qubit*, %Result*) #1
15731573
1574-
declare i1 @__quantum__qis__read_result__body(%Result*)
1574+
declare i1 @__quantum__rt__read_result(%Result*)
15751575
15761576
declare void @__quantum__rt__double_record_output(double, i8*)
15771577
@@ -1674,7 +1674,7 @@ mod adaptive_rif_profile {
16741674
block_0:
16751675
call void @__quantum__qis__h__body(%Qubit* inttoptr (i64 0 to %Qubit*))
16761676
call void @__quantum__qis__mresetz__body(%Qubit* inttoptr (i64 0 to %Qubit*), %Result* inttoptr (i64 0 to %Result*))
1677-
%var_0 = call i1 @__quantum__qis__read_result__body(%Result* inttoptr (i64 0 to %Result*))
1677+
%var_0 = call i1 @__quantum__rt__read_result(%Result* inttoptr (i64 0 to %Result*))
16781678
%var_1 = icmp eq i1 %var_0, false
16791679
br i1 %var_1, label %block_1, label %block_2
16801680
block_1:
@@ -1701,7 +1701,7 @@ mod adaptive_rif_profile {
17011701
17021702
declare void @__quantum__qis__mresetz__body(%Qubit*, %Result*) #1
17031703
1704-
declare i1 @__quantum__qis__read_result__body(%Result*)
1704+
declare i1 @__quantum__rt__read_result(%Result*)
17051705
17061706
declare void @OpA(double, %Qubit*)
17071707

source/compiler/qsc/src/interpret/tests.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1046,8 +1046,8 @@ mod given_interpreter {
10461046
define i64 @ENTRYPOINT__main() #0 {
10471047
block_0:
10481048
call void @__quantum__qis__mresetz__body(%Qubit* inttoptr (i64 0 to %Qubit*), %Result* inttoptr (i64 0 to %Result*))
1049-
%var_0 = call i1 @__quantum__qis__read_result__body(%Result* inttoptr (i64 0 to %Result*))
1050-
%var_2 = call i1 @__quantum__qis__read_result__body(%Result* inttoptr (i64 0 to %Result*))
1049+
%var_0 = call i1 @__quantum__rt__read_result(%Result* inttoptr (i64 0 to %Result*))
1050+
%var_2 = call i1 @__quantum__rt__read_result(%Result* inttoptr (i64 0 to %Result*))
10511051
%var_3 = icmp eq i1 %var_2, false
10521052
call void @__quantum__rt__tuple_record_output(i64 2, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @empty_tag, i64 0, i64 0))
10531053
call void @__quantum__rt__result_record_output(%Result* inttoptr (i64 0 to %Result*), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @0, i64 0, i64 0))
@@ -1059,7 +1059,7 @@ mod given_interpreter {
10591059
10601060
declare void @__quantum__qis__mresetz__body(%Qubit*, %Result*) #1
10611061
1062-
declare i1 @__quantum__qis__read_result__body(%Result*)
1062+
declare i1 @__quantum__rt__read_result(%Result*)
10631063
10641064
declare void @__quantum__rt__tuple_record_output(i64, i8*)
10651065

source/compiler/qsc_codegen/src/qir/tests.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ fn measurement_decl_works() {
3737
#[test]
3838
fn read_result_decl_works() {
3939
let decl = builder::read_result_decl();
40-
expect!["declare i1 @__quantum__qis__read_result__body(%Result*)"]
40+
expect!["declare i1 @__quantum__rt__read_result(%Result*)"]
4141
.assert_eq(&decl.to_qir(&rir::Program::default()));
4242
}
4343

@@ -192,7 +192,7 @@ fn teleport_program() {
192192
193193
declare void @__quantum__qis__mresetz__body(%Qubit*, %Result*) #1
194194
195-
declare i1 @__quantum__qis__read_result__body(%Result*)
195+
declare i1 @__quantum__rt__read_result(%Result*)
196196
197197
declare void @__quantum__rt__result_record_output(%Result*, i8*)
198198
@@ -204,14 +204,14 @@ fn teleport_program() {
204204
call void @__quantum__qis__cx__body(%Qubit* inttoptr (i64 0 to %Qubit*), %Qubit* inttoptr (i64 2 to %Qubit*))
205205
call void @__quantum__qis__h__body(%Qubit* inttoptr (i64 0 to %Qubit*))
206206
call void @__quantum__qis__mresetz__body(%Qubit* inttoptr (i64 0 to %Qubit*), %Result* inttoptr (i64 0 to %Result*))
207-
%var_0 = call i1 @__quantum__qis__read_result__body(%Result* inttoptr (i64 0 to %Result*))
207+
%var_0 = call i1 @__quantum__rt__read_result(%Result* inttoptr (i64 0 to %Result*))
208208
br i1 %var_0, label %block_1, label %block_2
209209
block_1:
210210
call void @__quantum__qis__z__body(%Qubit* inttoptr (i64 1 to %Qubit*))
211211
br label %block_2
212212
block_2:
213213
call void @__quantum__qis__mresetz__body(%Qubit* inttoptr (i64 2 to %Qubit*), %Result* inttoptr (i64 1 to %Result*))
214-
%var_1 = call i1 @__quantum__qis__read_result__body(%Result* inttoptr (i64 1 to %Result*))
214+
%var_1 = call i1 @__quantum__rt__read_result(%Result* inttoptr (i64 1 to %Result*))
215215
br i1 %var_1, label %block_3, label %block_4
216216
block_3:
217217
call void @__quantum__qis__x__body(%Qubit* inttoptr (i64 1 to %Qubit*))

source/compiler/qsc_partial_eval/src/tests/arrays.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ fn array_with_hybrid_content() {
114114
array_output_recording_callable_id,
115115
&expect![[r#"
116116
Callable:
117-
name: __quantum__qis__read_result__body
117+
name: __quantum__rt__read_result
118118
call_type: Readout
119119
input_type:
120120
[0]: Result

0 commit comments

Comments
 (0)