[cfe-dev] Attaching Metadata to BasicBlocks
ponnala.kalyan at gmail.com
Fri Apr 23 00:13:39 PDT 2010
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.?
Or Am I missing an important dependency.
Kalyan the great (even greater than Chris Latner)
On Thu, Apr 22, 2010 at 12:44 PM, Chris Lattner <clattner at apple.com> wrote:
> On Apr 22, 2010, at 2:29 AM, kalyan ponnala wrote:
> > Hello,
> > I was researching how Metadata in LLVM 2.7 is represented and used and I
> found that Metadata can be attached and manipulated at both the module level
> and instruction levels. Upon inspecting the Metadata classes, I also saw
> that there is an enum that contains a bit for "FunctionLocalBit" on the
> > Unfortunately, I did not see any methods to attach or manipulate Metadata
> at the BasicBlock level or Function levels in the LLVM IR classes.
> > Can someone please tell me why there is no support for attaching and
> manipulating Metadata to BasicBlocks and Functions?
> Just because no one has needed it yet. I'm not opposed to it being added
> it if you have a compelling client for it.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the cfe-dev