ether zhhb
2009-Dec-22 09:40 UTC
[LLVMdev] attach metadata to argument/basicblock/function
hi all, i have a pass that wants to attach metadata to argument for later optimization pass, but i found that MetadataConext only have a method "void addMD(unsigned Kind, MDNode *Node, Instruction *Inst);", so, attaching metadata to LLVM Values other rather than Instruction is not support yet? thanks --ether
Chris Lattner
2009-Dec-31 01:02 UTC
[LLVMdev] attach metadata to argument/basicblock/function
On Dec 22, 2009, at 1:40 AM, ether zhhb wrote:> hi all, > > i have a pass that wants to attach metadata to argument for later > optimization pass, but i found that MetadataConext only have a method > "void addMD(unsigned Kind, MDNode *Node, Instruction *Inst);", so, > attaching metadata to LLVM Values other rather than Instruction is not > support yet?Correct, you can only attach metadata to instructions currently. -Chris