File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -7454,6 +7454,8 @@ scalar_pack_index
7454
7454
7455
7455
sil-instruction ::= 'scalar_pack_index' int-literal 'of' sil-type
7456
7456
7457
+ %index = scalar_pack_index 0 of $Pack{Int, repeat each T, Int}
7458
+
7457
7459
Produce the dynamic pack index of a scalar (non-pack-expansion)
7458
7460
component of a pack. The type operand is the indexed pack type. The
7459
7461
integer operand is an index into the components of this pack type; it
@@ -7573,6 +7575,8 @@ pack_element_get
7573
7575
7574
7576
sil-instruction ::= 'pack_element_get' sil-value 'of' sil-operand 'as' sil-type
7575
7577
7578
+ %addr = pack_element_get %index of %pack : $*Pack{Int, repeat each T} as $*Int
7579
+
7576
7580
Extracts the value previously stored in a pack at a particular index.
7577
7581
If the pack element is uninitialized, this has undefined behavior.
7578
7582
@@ -7591,6 +7595,8 @@ pack_element_set
7591
7595
7592
7596
sil-instruction ::= 'pack_element_set' sil-operand 'into' sil-value 'of' sil-operand
7593
7597
7598
+ pack_element_set %addr : $*@pack_element("...") each U into %index of %pack : $*Pack{Int, repeat each T}
7599
+
7594
7600
Places a value in a pack at a particular index.
7595
7601
7596
7602
Ownership is unclear for direct packs.
You can’t perform that action at this time.
0 commit comments