From 8b0a8c84da2030ee8f4440d5b60a8033de691222 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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36435 91177308-0d34-0410-b5e6-96231b3b80d8
---
docs/BytecodeFormat.html | 67 +++++++++++++++++++++++++++++++++++++++++++-----
1 file changed, 61 insertions(+), 6 deletions(-)
(limited to 'docs/BytecodeFormat.html')
diff --git a/docs/BytecodeFormat.html b/docs/BytecodeFormat.html
index 56fc0afce9..396bf2f124 100644
--- a/docs/BytecodeFormat.html
+++ b/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. |
+
+
+
+
+
+