[LLVMdev] Re: Newbie questions

Chris Lattner sabre at nondot.org
Wed Apr 26 17:51:50 PDT 2006

On Wed, 26 Apr 2006, Archie Cobbs wrote:
> For example (I'm making this up, you may have already considered and
> rejected it): you could have a callback function (supplied by the
> front end) that would be invoked any time an optimization pass needed
> to {add, delete, move, modify} an LLVM instruction. In other words,
> all the questions about "what to do with the annotation in situation X"
> you simply delegate to the front end to deal with. So then you no longer
> have to worry about what happens to the annotations during a transformation.

The problem is that the set that "X" comes from is not bounded.  We don't 
want to update every front-end whenever the capabilities of LLVM increase.

> OK I'll shut up now and go read about annotation in the archives... :-)

Please do, it has been extensively discussed in the past.



More information about the llvm-dev mailing list