@@ -187,13 +187,13 @@ of output to the relevant stream. Each of these functions follow the naming
187187pattern ` __quantum__rt__*_record_output ` where the initial part indicates the
188188type of output to be recorded.
189189
190- Though all the output recording functions have an ` i8* ` parameter representing a
190+ Though all the output recording functions have an ` ptr ` parameter representing a
191191label, its value is ignored by backends that use the ordered output schema.
192192
193193### Result
194194
195195``` llvm
196- void @__quantum__rt__result_record_output(%Result*, i8* )
196+ void @__quantum__rt__result_record_output(%Result*, ptr )
197197```
198198
199199Produces output records that are exactly ` "OUTPUT\tRESULT\t0" ` or
@@ -202,7 +202,7 @@ Produces output records that are exactly `"OUTPUT\tRESULT\t0"` or
202202### Boolean
203203
204204``` llvm
205- void @__quantum__rt__bool_record_output(i1, i8* )
205+ void @__quantum__rt__bool_record_output(i1, ptr )
206206```
207207
208208Produces output records that are exactly ` "OUTPUT\tBOOL\tfalse" ` or
@@ -211,7 +211,7 @@ Produces output records that are exactly `"OUTPUT\tBOOL\tfalse"` or
211211### Integer
212212
213213``` llvm
214- void @__quantum__rt__int_record_output(i64, i8* )
214+ void @__quantum__rt__int_record_output(i64, ptr )
215215```
216216
217217Produces output records of the format ` "OUTPUT\tINT\tn" ` where ` n ` is the string
@@ -220,7 +220,7 @@ representation of the integer value, such as `"OUTPUT\tINT\t42"`.
220220### Double
221221
222222``` llvm
223- void @__quantum__rt__double_record_output(double, i8* )
223+ void @__quantum__rt__double_record_output(double, ptr )
224224```
225225
226226Produces output records of the format ` "OUTPUT\tDOUBLE\td" ` where ` d ` is the
@@ -229,7 +229,7 @@ string representation of the double value, such as `"OUTPUT\tDOUBLE\t3.14159"`
229229### Tuple
230230
231231``` llvm
232- void @__quantum__rt__tuple_record_output(i64, i8* )
232+ void @__quantum__rt__tuple_record_output(i64, ptr )
233233```
234234
235235Produces output records of the format ` "OUTPUT\tTUPLE\tn" ` where ` n ` is the
@@ -239,7 +239,7 @@ record indicates the start of a tuple and how many elements it has.
239239### Array
240240
241241``` llvm
242- void @__quantum__rt__array_record_output(i64, i8* )
242+ void @__quantum__rt__array_record_output(i64, ptr )
243243```
244244
245245Produces output records of the format ` "OUTPUT\tARRAY\tn" ` where ` n ` is the
@@ -255,7 +255,7 @@ function:
255255
256256``` llvm
257257@0 = internal constant [3 x i8] c"0_i\00"
258- call void @__quantum__rt__int_record_output(i64 %5, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @0, i32 0, i32 0) )
258+ call void @__quantum__rt__int_record_output(i64 %5, ptr @0 )
259259ret void
260260```
261261
@@ -294,11 +294,11 @@ the array items (shown with static result allocation):
294294@2 = internal constant [5 x i8] c"2_1a\00"
295295@3 = internal constant [7 x i8] c"3_1a0r\00"
296296@4 = internal constant [7 x i8] c"4_1a1r\00"
297- call void @__quantum__rt__array_record_output(i64 1, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @0, i32 0, i32 0) )
298- call void @__quantum__rt__result_record_output(%Result* %2, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @1, i32 0, i32 0) )
299- call void @__quantum__rt__array_record_output(i64 2, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @2, i32 0, i32 0) )
300- call void @__quantum__rt__result_record_output(%Result* nonnull inttoptr (i64 0 to %Result* ), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @3, i32 0, i32 0) )
301- call void @__quantum__rt__result_record_output(%Result* nonnull inttoptr (i64 0 to %Result* ), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @4, i32 0, i32 0) )
297+ call void @__quantum__rt__array_record_output(i64 1, ptr @0 )
298+ call void @__quantum__rt__result_record_output(ptr %2, ptr @1 )
299+ call void @__quantum__rt__array_record_output(i64 2, ptr @2 )
300+ call void @__quantum__rt__result_record_output(ptr nonnull inttoptr (i64 0 to ptr ), ptr @3 )
301+ call void @__quantum__rt__result_record_output(ptr nonnull inttoptr (i64 0 to ptr ), ptr @4 )
302302ret void
303303```
304304
@@ -346,9 +346,9 @@ following output recording functions:
346346@0 = internal constant [4 x i8] c"0_t\00"
347347@1 = internal constant [6 x i8] c"1_t0r\00"
348348@2 = internal constant [6 x i8] c"2_t1d\00"
349- call void @__quantum__rt__tuple_record_output(i64 2, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @0, i32 0, i32 0) )
350- call void @__quantum__rt__result_record_output(%Result* %2, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @1, i32 0, i32 0) )
351- call void @__quantum__rt__double_record_output(double %3, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @2, i32 0, i32 0) )
349+ call void @__quantum__rt__tuple_record_output(i64 2, ptr @0 )
350+ call void @__quantum__rt__result_record_output(ptr %2, ptr @1 )
351+ call void @__quantum__rt__double_record_output(double %3, ptr @2 )
352352ret void
353353```
354354
@@ -394,13 +394,13 @@ containing an integer and result uses the following output recording functions:
394394@4 = internal constant [6 x i8] c"4_a1t\00"
395395@5 = internal constant [8 x i8] c"5_a1t0i\00"
396396@6 = internal constant [8 x i8] c"6_a1t1r\00"
397- call void @__quantum__rt__array_record_output(i64 2, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @0, i32 0, i32 0) )
398- call void @__quantum__rt__tuple_record_output(i64 2, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @1, i32 0, i32 0) )
399- call void @__quantum__rt__int_record_output(i64 %3, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @2, i32 0, i32 0) )
400- call void @__quantum__rt__result_record_output(%Result* null, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @3, i32 0, i32 0) )
401- call void @__quantum__rt__tuple_record_output(i64 2, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @4, i32 0, i32 0) )
402- call void @__quantum__rt__int_record_output(i64 %7, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @5, i32 0, i32 0) )
403- call void @__quantum__rt__result_record_output(%Result* nonnull inttoptr (i64 1 to %Result* ), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @6, i32 0, i32 0) )
397+ call void @__quantum__rt__array_record_output(i64 2, ptr @0 )
398+ call void @__quantum__rt__tuple_record_output(i64 2, ptr @1 )
399+ call void @__quantum__rt__int_record_output(i64 %3, ptr @2 )
400+ call void @__quantum__rt__result_record_output(ptr null, ptr @3 )
401+ call void @__quantum__rt__tuple_record_output(i64 2, ptr @4 )
402+ call void @__quantum__rt__int_record_output(i64 %7, ptr @5 )
403+ call void @__quantum__rt__result_record_output(ptr nonnull inttoptr (i64 1 to ptr ), ptr @6 )
404404ret void
405405```
406406
0 commit comments