[cfe-dev] Attaching Metadata to BasicBlocks

Chris Lattner clattner at apple.com
Fri Apr 23 08:30:08 PDT 2010


On Apr 23, 2010, at 12:13 AM, kalyan ponnala wrote:

> Thanks for the reply Chris, 
> 
> I would like to add Metadata to a loop.
> 
> To do this, can I simply add the Metadata Manipulation methods & Metadata private data from Instruction.h & their method bodies from Metadata.cpp into the BasicBlock.h & BasicBlock.cpp files.?

It's non-trivial: you need to add support to the .ll file parser/printer, the .bc file reader/writer, the IR stuff, etc.  It's probably best discussed on llvmdev, instead of cfe-dev.

-Chris



More information about the cfe-dev mailing list