From db0926260dae4ea1e6aa1dd90d604eb09bf865d6 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 11 Jun 2001 15:03:43 +0000 Subject: Update documentation to reflect: * Changes in PHI node structure * Intentions for load instruction to work with structures git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22 91177308-0d34-0410-b5e6-96231b3b80d8 --- docs/LangRef.html | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'docs/LangRef.html') diff --git a/docs/LangRef.html b/docs/LangRef.html index b3d6d52..bd055ed 100644 --- a/docs/LangRef.html +++ b/docs/LangRef.html @@ -1045,6 +1045,7 @@ Memory is allocated, a pointer is returned. 'alloca'd memory is automa
   <result> = load <ty>* <pointer>                 ; yields {ty}:result
   <result> = load <ty>* <arrayptr>, uint <idx>    ; yields {ty}:result
+  <result> = load <ty>* <structptr>{, <idx>}*     ; yields field type
 
Overview:
@@ -1052,9 +1053,9 @@ The 'load' instruction is used to read from memory.

Arguments:
-There are two forms of the 'load' instruction: one for reading from a general pointer, and one for reading from a pointer to an array.

+There are three forms of the 'load' instruction: one for reading from a general pointer, one for reading from a pointer to an array, and one for reading from a pointer to a structure.

-In the first form, '<ty>' may be any pointer type. If it is a pointer to an array, the first (zeroth) element is read from). In the second form, '<ty>' must be a pointer to an array. No bounds checking is performed on array reads.

+In the first form, '<ty>' may be any pointer type. If it is a pointer to an array, the first (zeroth) element is read from). In the second form, '<ty>' must be a pointer to an array. No bounds checking is performed on array reads. In the third form, the pointer must point to a (possibly nested) structure. There shall be one ubyte argument for each level of dereferencing involved.

Semantics:
@@ -1070,7 +1071,7 @@ In the first form, '<ty>' may be any pointer type. If it is a po store [4 x ubyte]* %array, uint 4, ubyte 124 %val = load [4 x ubyte]* %array, uint 4 ; yields {ubyte}:val = ubyte 124 - + %val = load {{int, float}}* %stptr, 0, 1 ; yields {float}:val @@ -1370,7 +1371,7 @@ more...
Chris Lattner
-Last modified: Thu May 31 17:36:39 CDT 2001 +Last modified: Mon Jun 11 09:30:45 CDT 2001 -- cgit v1.1