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
74547454
74557455 sil-instruction ::= 'scalar_pack_index' int-literal 'of' sil-type
74567456
7457+ %index = scalar_pack_index 0 of $Pack{Int, repeat each T, Int}
7458+
74577459Produce the dynamic pack index of a scalar (non-pack-expansion)
74587460component of a pack. The type operand is the indexed pack type. The
74597461integer operand is an index into the components of this pack type; it
@@ -7573,6 +7575,8 @@ pack_element_get
75737575
75747576 sil-instruction ::= 'pack_element_get' sil-value 'of' sil-operand 'as' sil-type
75757577
7578+ %addr = pack_element_get %index of %pack : $*Pack{Int, repeat each T} as $*Int
7579+
75767580Extracts the value previously stored in a pack at a particular index.
75777581If the pack element is uninitialized, this has undefined behavior.
75787582
@@ -7591,6 +7595,8 @@ pack_element_set
75917595
75927596 sil-instruction ::= 'pack_element_set' sil-operand 'into' sil-value 'of' sil-operand
75937597
7598+ pack_element_set %addr : $*@pack_element("...") each U into %index of %pack : $*Pack{Int, repeat each T}
7599+
75947600Places a value in a pack at a particular index.
75957601
75967602Ownership is unclear for direct packs.
You can’t perform that action at this time.
0 commit comments