diff --git a/docs/LangRef.html b/docs/LangRef.html index 1ee25bafe34..8ed470c6def 100644 --- a/docs/LangRef.html +++ b/docs/LangRef.html @@ -490,7 +490,7 @@ declarations, and merges symbol table entries. Here is an example of the "hello ; Definition of main function int "main"() { ; int()* ; Convert [13x sbyte]* to sbyte *... - %cast210 = getelementptr [13 x sbyte]* %.LC0, uint 0, uint 0 ; sbyte* + %cast210 = getelementptr [13 x sbyte]* %.LC0, long 0, long 0 ; sbyte* ; Call puts function to write out the string to stdout... call int %puts(sbyte* %cast210) ; int @@ -1401,7 +1401,7 @@ operand.

Syntax:
-  <result> = getelementptr <ty>* <ptrval>{, uint <aidx>|, ubyte <sidx>}*
+  <result> = getelementptr <ty>* <ptrval>{, long <aidx>|, ubyte <sidx>}*
 
Overview:
@@ -1411,7 +1411,7 @@ subelement of an aggregate data structure.

Arguments:
-This instruction takes a list of uint values and ubyte +This instruction takes a list of long values and ubyte constants that indicate what form of addressing to perform. The actual types of the arguments provided depend on the type of the first pointer argument. The 'getelementptr' instruction is used to index down through the type @@ -1444,7 +1444,7 @@ The LLVM code generated by the GCC frontend is: %ST = type { int, double, %RT } int* "foo"(%ST* %s) { - %reg = getelementptr %ST* %s, uint 1, ubyte 2, ubyte 1, uint 5, uint 13 + %reg = getelementptr %ST* %s, long 1, ubyte 2, ubyte 1, long 5, long 13 ret int* %reg } @@ -1453,7 +1453,7 @@ int* "foo"(%ST* %s) { The index types specified for the 'getelementptr' instruction depend on the pointer type that is being index into. Pointer and -array types require 'uint' values, and array types require 'long' values, and structure types require 'ubyte' constants.

@@ -1473,11 +1473,11 @@ given testcase is equivalent to:

 int* "foo"(%ST* %s) {
-  %t1 = getelementptr %ST* %s , uint 1                        ; yields %ST*:%t1
-  %t2 = getelementptr %ST* %t1, uint 0, ubyte 2               ; yields %RT*:%t2
-  %t3 = getelementptr %RT* %t2, uint 0, ubyte 1               ; yields [10 x [20 x int]]*:%t3
-  %t4 = getelementptr [10 x [20 x int]]* %t3, uint 0, uint 5  ; yields [20 x int]*:%t4
-  %t5 = getelementptr [20 x int]* %t4, uint 0, uint 13        ; yields int*:%t5
+  %t1 = getelementptr %ST* %s , long 1                        ; yields %ST*:%t1
+  %t2 = getelementptr %ST* %t1, long 0, ubyte 2               ; yields %RT*:%t2
+  %t3 = getelementptr %RT* %t2, long 0, ubyte 1               ; yields [10 x [20 x int]]*:%t3
+  %t4 = getelementptr [10 x [20 x int]]* %t3, long 0, long 5  ; yields [20 x int]*:%t4
+  %t5 = getelementptr [20 x int]* %t4, long 0, long 13        ; yields int*:%t5
   ret int* %t5
 }
 
@@ -1487,7 +1487,7 @@ int* "foo"(%ST* %s) {
Example:
   ; yields [12 x ubyte]*:aptr
-  %aptr = getelementptr {int, [12 x ubyte]}* %sptr, uint 0, ubyte 1
+  %aptr = getelementptr {int, [12 x ubyte]}* %sptr, long 0, ubyte 1
 
@@ -1706,7 +1706,7 @@ more...
Chris Lattner
-Last modified: Mon Nov 4 18:20:38 CST 2002 +Last modified: Fri Dec 13 00:00:57 CST 2002