From 5bdb90a5321839aa04915108edf15ef0dce8c92d Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Tue, 13 May 2008 18:16:06 +0000 Subject: [PATCH] s/indicies/indices/ and clarify the extractvalue and insertvalue are working with struct field or array element values. Thanks Duncan! llvm-svn: 51059 --- docs/LangRef.html | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/docs/LangRef.html b/docs/LangRef.html index 694fed821e2..44288874432 100644 --- a/docs/LangRef.html +++ b/docs/LangRef.html @@ -2809,8 +2809,8 @@ operand may be undef if performing a shuffle from only one vector.
Overview:

-The 'extractvalue' instruction extracts a value -from an aggregate value. +The 'extractvalue' instruction extracts the value of a struct field +or array element from an aggregate value.

@@ -2819,8 +2819,8 @@ from an aggregate value.

The first operand of an 'extractvalue' instruction is a value of struct or array -type. The operands are constant indicies to specify which value to extract -in the same manner as indicies in a +type. The operands are constant indices to specify which value to extract +in the same manner as indices in a 'getelementptr' instruction.

@@ -2856,7 +2856,7 @@ the index operands.

The 'insertvalue' instruction inserts a value -into a aggregate. +into a struct field or array element in an aggregate.

@@ -2866,19 +2866,19 @@ into a aggregate. The first operand of an 'insertvalue' instruction is a value of struct or array type. The second operand is a first-class value to insert. -type of the first operand. The following operands are constant indicies +type of the first operand. The following operands are constant indices indicating the position at which to insert the value in the same manner as -indicies in a +indices in a 'getelementptr' instruction. The value to insert must have the same type as the value identified -by the indicies. +by the indices.
Semantics:

The result is an aggregate of the same type as val. Its value is that of val except that the value at the position -specified by the indicies is that of elt. +specified by the indices is that of elt.

Example: