From a97b694c823eb346d255ca04724f4003f9056800 Mon Sep 17 00:00:00 2001
From: Anton Korobeynikov
Date: Wed, 25 Apr 2007 14:27:10 +0000
Subject: Implement aliases. This fixes PR1017 and it's dependent bugs. CFE
part will follow.
llvm-svn: 36435
---
llvm/docs/BytecodeFormat.html | 67 +++++++++++++++++++++++++++++++++++++++----
1 file changed, 61 insertions(+), 6 deletions(-)
(limited to 'llvm/docs/BytecodeFormat.html')
diff --git a/llvm/docs/BytecodeFormat.html b/llvm/docs/BytecodeFormat.html
index 56fc0afce9c..396bf2f1249 100644
--- a/llvm/docs/BytecodeFormat.html
+++ b/llvm/docs/BytecodeFormat.html
@@ -943,11 +943,11 @@ all functions. The format is shown in the table below:
target triple specified, i.e. a platform-independent module).
- | string |
- The data layout string describing the endianness,
- pointer size, and type alignments for which the module was written
- (blank means no data layout specified, i.e. a platform-independent
- module). |
+ string |
+ The data layout string describing the endianness,
+ pointer size, and type alignments for which the module was written
+ (blank means no data layout specified, i.e. a platform-independent
+ module). |
+
Aliases are written using 3 uint32_vbr
+that encode information about alias itself and aliasee.
+
+
The table below provides the bit layout of
+the first uint32_vbr which describes alias itself.
+
+
+
+
+ | Type |
+ Description |
+
+
+ | bit(0-1) |
+ Alias linkage. 0 - External linkage, 1 - Internal
+ linkage, 2 - Weak linkage. |
+
+
+ | bit(2-31) |
+ Type slot number of type for the alias itself. |
+
+
+
+
+
The next two uint32_vbr's describes the
+ aliasee.
+
+
+
+
+ | Type |
+ Description |
+
+
+ | uint32_vbr |
+ Type slot number of type for the aliasee. |
+
+
+ | uint32_vbr |
+ Slot number of the aliasee. |
+
+
+
+
+
+