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?



Correct, you can only attach metadata to instructions currently.