Skip to content

Commit b535b6e

Browse files
committed
Try letter-numbered nested list again
1 parent d06f947 commit b535b6e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

sycl/doc/design/SYCL2020-SpecializationConstants.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -323,10 +323,10 @@ different translation units, so it happens in `sycl-post-link` tool.
323323
There is a `SpecConstantsPass` LLVM IR pass which:
324324
1. Assigns numeric IDs to specialization constants found in the linked module.
325325
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
327327
expected IR is covered in "Transformation of LLVM IR to SPIR-V friendly IR
328328
form" section).
329-
2. The form which is used for emulating specialization constants.
329+
b. The form which is used for emulating specialization constants.
330330
3. Collects and provides \<Symbolic ID\> =\> \<numeric IDs + additional info\>
331331
mapping, which is later being used by DPC++ RT to set specialization constant
332332
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
379379
specialization constants. This done by depth-first search through the composite
380380
elements.
381381

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
383383

384384
SPIR-V friendly IR form is a special representation of LLVM IR, where some
385385
function are named in particular way in order to be recognizable by the SPIR-V
@@ -446,7 +446,7 @@ LLVM IR generated by `SpecConstantsPass`:
446446
%gold = call %struct.POD __spirv_SpecConstantComposite([2 x %struct.A] %gold_POD_A, <2 x i32> %gold_POD_b)
447447
```
448448

449-
#### 2.2 Transformation of LLVM IR for emulating specialization constants
449+
#### 2.b Transformation of LLVM IR for emulating specialization constants
450450

451451
In case we are not targeting SPIR-V, we don't have a native support for
452452
specialization constants and have to emulate them somehow. As stated above, it

0 commit comments

Comments
 (0)