From 42686afc017ef1913fbecf8d43ce96f51a458559 Mon Sep 17 00:00:00 2001
From: Jeffrey Yasskin
Structures are accessed using 'load and - 'store' by getting a pointer to a field with - the 'getelementptr' instruction.
- +Structures in memory are accessed using 'load' + and 'store' by getting a pointer to a field + with the 'getelementptr' instruction. + Structures in registers are accessed using the + 'extractvalue' and + 'insertvalue' instructions.
{ <type list> } @@ -3858,7 +3860,7 @@ InstructionSyntax:
- <result> = insertvalue <aggregate type> <val>, <ty> <val>, <idx> ; yields <n x <ty>> + <result> = insertvalue <aggregate type> <val>, <ty> <elt>, <idx> ; yields <aggregate type>Overview:
@@ -3883,7 +3885,8 @@ InstructionExample:
- <result> = insertvalue {i32, float} %agg, i32 1, 0 ; yields {i32, float} + %agg1 = insertvalue {i32, float} undef, i32 1, 0 ; yields {i32 1, float undef} + %agg2 = insertvalue {i32, float} %agg1, float %val, 1 ; yields {i32 1, float %val}