[LLVMdev] PR411 Has Landed

Chris Lattner sabre at nondot.org
Mon Feb 5 14:14:20 PST 2007


On Mon, 5 Feb 2007, Reid Spencer wrote:
> After 2.5 years of working on it the Symbol Tables now have no type
> planes and PR411 has been resolved. (Okay, I didn't work on it solid for
> 2.5 years :) )

To give a specific example, before you'd see LLVM code like this:

   %X = add i32 %a, %b
   %X = add i16 %a, %b

which was allowed because the two X's had different types.  This confused 
a lot of people and made the internal implementation of LLVM slower than 
it needed to be.

Now, the only time you can have symbols with the same name is if one is a 
global value "@X" and one is local "%X".  In this case, the prefix 
specifies what flavor of symbol it is.

-Chris

-- 
http://nondot.org/sabre/
http://llvm.org/



More information about the llvm-dev mailing list