[LLVMdev] creating new Metadata
oksana.tkachuk at gmail.com
Tue Dec 20 13:34:25 PST 2011
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
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-dev