[llvm-commits] CVS: llvm/test/Feature/aliases.ll

Chris Lattner clattner at apple.com
Wed Apr 25 13:42:45 PDT 2007


> Implement aliases. This fixes PR1017: http://llvm.org/PR1017  and  
> it's dependent bugs. CFE part will follow.

One thing that just occurred to me.  When you switch GlobalAlias to  
have a Use for the aliasee, RAUW will work on globals that are aliased.

Unfortunately, various bits of code (like the CFE) want to replace  
globals with other globals of different types.  In practice, this  
means that these clients RAUW the global with a constant expr bitcast  
of the new global.

This implies that aliases should allow either a global value or a  
bitcast of a global value as their aliasee:

@A = alias i32* (bitcast f32* @F to i32*)

What do you think?

-Chris







More information about the llvm-commits mailing list