> 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 _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits