[LLVMdev] creating new Metadata
Oksana Tkachuk
oksana.tkachuk at gmail.com
Tue Dec 20 13:34:25 PST 2011
Dear llvm-ers,
I am trying to attach a customized metadata to llvm instructions.
Let's say, I want to attach some number to each instruction.
I am trying to use
void Instruction::setMetadata(unsigned KindID, MDNode* Node)
but I am not sure how to create a brand new instance of an MDNode.
Do you have any code samples demonstrating how to do that?
Due to some tool dependencies, I am using LLVM 2.7
Thank you,
Oksana
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20111220/bfa0acac/attachment.html>
More information about the llvm-dev
mailing list