From 2b91631e449376aae5f5cd84b5957cfae4ac5e53 Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Wed, 16 May 2007 18:44:01 +0000 Subject: [PATCH] Update for arbitrary precision integer types. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37109 91177308-0d34-0410-b5e6-96231b3b80d8 --- docs/LangRef.html | 56 ++++++++++++++++++++++++++++++++++++++++------- 1 file changed, 48 insertions(+), 8 deletions(-) diff --git a/docs/LangRef.html b/docs/LangRef.html index aa12f45e35e..e220764ac6e 100644 --- a/docs/LangRef.html +++ b/docs/LangRef.html @@ -908,9 +908,6 @@ system. The current set of primitive types is as follows:

TypeDescription voidNo value - i88-bit value - i3232-bit value - float32-bit floating point value labelBranch destination @@ -919,9 +916,7 @@ system. The current set of primitive types is as follows:

- - - +
TypeDescription
i1True or False value
i1616-bit value
i6464-bit value
float32-bit floating point value
double64-bit floating point value
@@ -942,7 +937,7 @@ classifications:

ClassificationTypes integer - i1, i8, i16, i32, i64 + i1, i2, i3, ... i8, ... i16, ... i32, ... i64, ... floating point @@ -950,7 +945,7 @@ classifications:

first class - i1, i8, i16, i32, i64, float, double,
+ i1, ..., float, double,
pointer,vector
@@ -976,6 +971,51 @@ recursive: For example, it is possible to have a two dimensional array.

+ + + +
+ +
Overview:
+

The integer type is a very simple derived type that simply specifies an +arbitrary bit width for the integer type desired. Any bit width from 1 bit to +2^23-1 (about 8 million) can be specified.

+ +
Syntax:
+ +
+  iN
+
+ +

The number of bits the integer will occupy is specified by the N +value.

+ +
Examples:
+ + + + + +
+ i1
+ i4
+ i8
+ i16
+ i32
+ i42
+ i64
+ i1942652
+
+ A boolean integer of 1 bit
+ A nibble sized integer of 4 bits.
+ A byte sized integer of 8 bits.
+ A half word sized integer of 16 bits.
+ A word sized integer of 32 bits.
+ An integer whose bit width is the answer.
+ A double word sized integer of 64 bits.
+ A really big integer of over 1 million bits.
+
+