@@ -323,10 +323,10 @@ different translation units, so it happens in `sycl-post-link` tool.
323
323
There is a ` SpecConstantsPass ` LLVM IR pass which:
324
324
1 . Assigns numeric IDs to specialization constants found in the linked module.
325
325
2 . Transforms IR to either:
326
- 1 . The form expected by the SPIR-V translator (format of the
326
+ a . The form expected by the SPIR-V translator (format of the
327
327
expected IR is covered in "Transformation of LLVM IR to SPIR-V friendly IR
328
328
form" section).
329
- 2 . The form which is used for emulating specialization constants.
329
+ b . The form which is used for emulating specialization constants.
330
330
3 . Collects and provides \< Symbolic ID\> =\> \< numeric IDs + additional info\>
331
331
mapping, which is later being used by DPC++ RT to set specialization constant
332
332
values provided by user (section "Collecting spec constants info and
@@ -379,7 +379,7 @@ contains another composite within it, that nested composite is also being
379
379
specialization constants. This done by depth-first search through the composite
380
380
elements.
381
381
382
- #### 2.1 Transformation of LLVM IR to SPIR-V friendly IR form
382
+ #### 2.a Transformation of LLVM IR to SPIR-V friendly IR form
383
383
384
384
SPIR-V friendly IR form is a special representation of LLVM IR, where some
385
385
function are named in particular way in order to be recognizable by the SPIR-V
@@ -446,7 +446,7 @@ LLVM IR generated by `SpecConstantsPass`:
446
446
%gold = call %struct.POD __spirv_SpecConstantComposite([2 x %struct.A] %gold_POD_A, <2 x i32> %gold_POD_b)
447
447
```
448
448
449
- #### 2.2 Transformation of LLVM IR for emulating specialization constants
449
+ #### 2.b Transformation of LLVM IR for emulating specialization constants
450
450
451
451
In case we are not targeting SPIR-V, we don't have a native support for
452
452
specialization constants and have to emulate them somehow. As stated above, it
0 commit comments