@@ -177,13 +177,21 @@ backend's SPIR-V client API specification.
177
177
|Corresponding SYCL type
178
178
179
179
|*OpTypeInt*
180
- |A C++ integral type with the same width.
180
+ |A C++ type that is device copyable, which has same width and data
181
+ representation.
181
182
182
- |*OpTypeFloat* of width 32
183
- |`float`
183
+ [_Note:_ Applications typically use a fixed-width integer type where the width
184
+ matches the width of the *OpTypeInt*.
185
+ _{endnote}_]
186
+
187
+ |*OpTypeFloat*
188
+ |A C++ type that is device copyable, which has same width and data
189
+ representation.
184
190
185
- |*OpTypeFloat* of width 64
186
- |`double`
191
+ [_Note:_ Applications typically use `float` when the *OpTypeFloat* has a width
192
+ of 4, `double` when the *OpTypeFloat* has a width of 8, and `sycl::half` when
193
+ the *OpTypeFloat* has a width of 2.
194
+ _{endnote}_]
187
195
188
196
|*OpTypePointer* with storage class *CrossWorkgroup*
189
197
|Either a pointer to USM memory or an `accessor` whose target is
@@ -192,9 +200,8 @@ backend's SPIR-V client API specification.
192
200
|*OpTypePointer* with storage class *Workgroup*
193
201
|A `local_accessor`.
194
202
195
- |*OpTypeStruct* whose member types are limited to *OpTypeInt*, *OpTypeFloat*
196
- (of width 32 or 64), and *OpTypePointer* (with storage class
197
- *CrossWorkgroup*).
203
+ |*OpTypeStruct* whose member types are limited to *OpTypeInt*, *OpTypeFloat*,
204
+ and *OpTypePointer* (with storage class *CrossWorkgroup*).
198
205
The *OpTypeStruct* may contain members which are also *OpTypeStruct* so long
199
206
as its members are limited to the same types.
200
207
|A C++ struct or class that is device copyable.
0 commit comments