@@ -49,7 +49,7 @@ struct CliffHanger {
49
49
};
50
50
51
51
// clang-format off
52
- // CHECK-LABEL: func.func @__nvqpp__mlirgen__K9() attributes {"cudaq-entrypoint", "cudaq-kernel"} {
52
+ // CHECK-LABEL: func.func @__nvqpp__mlirgen__K9() attributes {"cudaq-entrypoint", "cudaq-kernel", "qir-api" } {
53
53
// CHECK-DAG: %[[VAL_0:.*]] = arith.constant 4 : i64
54
54
// CHECK-DAG: %[[VAL_1:.*]] = arith.constant 3 : i64
55
55
// CHECK-DAG: %[[VAL_2:.*]] = arith.constant 2 : i64
@@ -138,7 +138,7 @@ struct CliffHanger {
138
138
// CHECK: }
139
139
140
140
// CHECK-LABEL: func.func @__nvqpp__mlirgen__function_kernel_of_truth.
141
- // CHECK-SAME: () attributes {"cudaq-entrypoint", "cudaq-kernel", no_this} {
141
+ // CHECK-SAME: () attributes {"cudaq-entrypoint", "cudaq-kernel", no_this, "qir-api" } {
142
142
// CHECK: %[[VAL_0:.*]] = arith.constant true
143
143
// CHECK: %[[VAL_1:.*]] = cc.string_literal "i1" : !cc.ptr<!cc.array<i8 x 3>>
144
144
// CHECK: %[[VAL_2:.*]] = cc.cast %[[VAL_1]] : (!cc.ptr<!cc.array<i8 x 3>>) -> !cc.ptr<i8>
@@ -147,15 +147,15 @@ struct CliffHanger {
147
147
// CHECK: }
148
148
149
149
// CHECK-LABEL: func.func @__nvqpp__mlirgen__function_kernel_of_corn.
150
- // CHECK-SAME: () attributes {"cudaq-entrypoint", "cudaq-kernel", no_this} {
150
+ // CHECK-SAME: () attributes {"cudaq-entrypoint", "cudaq-kernel", no_this, "qir-api" } {
151
151
// CHECK: %[[VAL_0:.*]] = arith.constant -559038737 : i64
152
152
// CHECK: %[[VAL_1:.*]] = cc.string_literal "i32" : !cc.ptr<!cc.array<i8 x 4>>
153
153
// CHECK: %[[VAL_2:.*]] = cc.cast %[[VAL_1]] : (!cc.ptr<!cc.array<i8 x 4>>) -> !cc.ptr<i8>
154
154
// CHECK: call @__quantum__rt__integer_record_output(%[[VAL_0]], %[[VAL_2]]) : (i64, !cc.ptr<i8>) -> ()
155
155
// CHECK: return
156
156
// CHECK: }
157
157
158
- // CHECK-LABEL: func.func @__nvqpp__mlirgen__CliffDiver() attributes {"cudaq-entrypoint", "cudaq-kernel"} {
158
+ // CHECK-LABEL: func.func @__nvqpp__mlirgen__CliffDiver() attributes {"cudaq-entrypoint", "cudaq-kernel", "qir-api" } {
159
159
// CHECK: %[[VAL_0:.*]] = arith.constant 4.200000e+01 : f64
160
160
// CHECK: %[[VAL_1:.*]] = cc.string_literal "f64" : !cc.ptr<!cc.array<i8 x 4>>
161
161
// CHECK: %[[VAL_2:.*]] = cc.cast %[[VAL_1]] : (!cc.ptr<!cc.array<i8 x 4>>) -> !cc.ptr<i8>
@@ -164,15 +164,15 @@ struct CliffHanger {
164
164
// CHECK: }
165
165
166
166
// CHECK-LABEL: func.func @__nvqpp__mlirgen__function_kernel_of_wheat.
167
- // CHECK-SAME: () attributes {"cudaq-entrypoint", "cudaq-kernel", no_this} {
167
+ // CHECK-SAME: () attributes {"cudaq-entrypoint", "cudaq-kernel", no_this, "qir-api" } {
168
168
// CHECK: %[[VAL_0:.*]] = arith.constant 13.100000381469727 : f64
169
169
// CHECK: %[[VAL_1:.*]] = cc.string_literal "f32" : !cc.ptr<!cc.array<i8 x 4>>
170
170
// CHECK: %[[VAL_2:.*]] = cc.cast %[[VAL_1]] : (!cc.ptr<!cc.array<i8 x 4>>) -> !cc.ptr<i8>
171
171
// CHECK: call @__quantum__rt__double_record_output(%[[VAL_0]], %[[VAL_2]]) : (f64, !cc.ptr<i8>) -> ()
172
172
// CHECK: return
173
173
// CHECK: }
174
174
175
- // CHECK-LABEL: func.func @__nvqpp__mlirgen__CliffClimber() attributes {"cudaq-entrypoint", "cudaq-kernel"} {
175
+ // CHECK-LABEL: func.func @__nvqpp__mlirgen__CliffClimber() attributes {"cudaq-entrypoint", "cudaq-kernel", "qir-api" } {
176
176
// CHECK: %[[VAL_0:.*]] = arith.constant 99 : i64
177
177
// CHECK: %[[VAL_1:.*]] = cc.string_literal "i8" : !cc.ptr<!cc.array<i8 x 3>>
178
178
// CHECK: %[[VAL_2:.*]] = cc.cast %[[VAL_1]] : (!cc.ptr<!cc.array<i8 x 3>>) -> !cc.ptr<i8>
@@ -181,7 +181,7 @@ struct CliffHanger {
181
181
// CHECK: }
182
182
183
183
// CHECK-LABEL: func.func @__nvqpp__mlirgen__function_this_is_not_a_drill.
184
- // CHECK-SAME: () attributes {"cudaq-entrypoint", "cudaq-kernel", no_this} {
184
+ // CHECK-SAME: () attributes {"cudaq-entrypoint", "cudaq-kernel", no_this, "qir-api" } {
185
185
// CHECK: %[[VAL_0:.*]] = arith.constant 123400000 : i64
186
186
// CHECK: %[[VAL_1:.*]] = cc.string_literal "i64" : !cc.ptr<!cc.array<i8 x 4>>
187
187
// CHECK: %[[VAL_2:.*]] = cc.cast %[[VAL_1]] : (!cc.ptr<!cc.array<i8 x 4>>) -> !cc.ptr<i8>
@@ -190,15 +190,15 @@ struct CliffHanger {
190
190
// CHECK: }
191
191
192
192
// CHECK-LABEL: func.func @__nvqpp__mlirgen__function_this_is_a_hammer.
193
- // CHECK-SAME: () attributes {"cudaq-entrypoint", "cudaq-kernel", no_this} {
193
+ // CHECK-SAME: () attributes {"cudaq-entrypoint", "cudaq-kernel", no_this, "qir-api" } {
194
194
// CHECK: %[[VAL_0:.*]] = arith.constant 2387 : i64
195
195
// CHECK: %[[VAL_1:.*]] = cc.string_literal "i16" : !cc.ptr<!cc.array<i8 x 4>>
196
196
// CHECK: %[[VAL_2:.*]] = cc.cast %[[VAL_1]] : (!cc.ptr<!cc.array<i8 x 4>>) -> !cc.ptr<i8>
197
197
// CHECK: call @__quantum__rt__integer_record_output(%[[VAL_0]], %[[VAL_2]]) : (i64, !cc.ptr<i8>) -> ()
198
198
// CHECK: return
199
199
// CHECK: }
200
200
201
- // CHECK-LABEL: func.func @__nvqpp__mlirgen__CliffHanger() attributes {"cudaq-entrypoint", "cudaq-kernel"} {
201
+ // CHECK-LABEL: func.func @__nvqpp__mlirgen__CliffHanger() attributes {"cudaq-entrypoint", "cudaq-kernel", "qir-api" } {
202
202
// CHECK-DAG: %[[VAL_0:.*]] = arith.constant 2 : i64
203
203
// CHECK-DAG: %[[VAL_1:.*]] = arith.constant true
204
204
// CHECK-DAG: %[[VAL_2:.*]] = arith.constant 747 : i32
0 commit comments