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). llist(string) @@ -959,6 +959,11 @@ all functions. The format is shown in the table below:

string The inline asm block for this module. + + zlist(alias) + A zero terminated list of aliases occurring in the + module. + @@ -1123,7 +1128,7 @@ href="#uint32_vbr">uint32_vbr that describes the function.

bit(5-30) Type slot number of type for the function. - + bit(31) Indicates whether an extension word follows. @@ -1185,6 +1190,56 @@ follows with the following fields:

+ +
Alias Field +
+
+

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.

+ + + + + + + + + + + + + + + + +
TypeDescription
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.

+ + + + + + + + + + + + + + + + +
TypeDescription
uint32_vbrType slot number of type for the aliasee.
uint32_vbrSlot number of the aliasee.
+ +
+
Constant Pool
-- cgit v1.2.3