[patch][pr10367] Add support for offsets in GlobalAlias

Rafael EspĂ­ndola rafael.espindola at gmail.com
Sun May 18 18:50:18 PDT 2014


This patch completes the implementation of pr10367. With it an alias
can reliably
point to an offset of another object.

This is needed for RTTI on windows where the RTTI data precedes the
vtable symbol. It also seems desirable for concatenating globals used
from a single function to improve ARM and AARCH64 code.

Particular items it would be nice to have a second opinion on:

* LL Syntax
* Bitcode representation
* I included tests for llvm-as/llvm-dis, llvm-link and llc, but let me
know if there is any other test you would find interesting.
* Should offsets past the end of an object be illegal or we just don't
define what the result is?

Cheers,
Rafael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: t.patch
Type: application/octet-stream
Size: 12696 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140518/48f48c24/attachment.obj>


More information about the llvm-commits mailing list