search for: kindid

Displaying 6 results from an estimated 6 matches for "kindid".

2010 Apr 24
2
[LLVMdev] Proposal for Adding MetaData to a BasicBlock
...t;> Second Question: Additionally, after studying the way Metadata is manipulated in class "Instruction", I propose to add the following methods from class "Instruction" to class "BasicBlock": public: bool hasMetadata() const MDNode *getMetadata(unsigned KindID) const; MDNode *getMetadata(const char *Kind) const; void getAllMetadata(SmallVectorImpl<std::pair<unsigned, MDNode*> > &MDs)const; void setMetadata(unsigned KindID, MDNode *Node); void setMetadata(const char *Kind, MDNode *Node); private: // These are all imp...
2011 Dec 20
3
[LLVMdev] creating new Metadata
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: <ht...
2011 Dec 21
0
[LLVMdev] creating new Metadata
> 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 `grep -r MDNode` in $LLVM_SOURCE may give you some examples. I don't kno...
2011 Dec 22
3
[LLVMdev] creating new Metadata
...wj at iis.sinica.edu.tw> wrote: > > 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 > > `grep -r MDNode` in $LLVM_SOURCE may give you...
2011 Dec 22
0
[LLVMdev] creating new Metadata
...wrote: > > > 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 > > `grep -r MDNode` in $L...
2013 Aug 15
1
[LLVMdev] Removing metadata from instruction
Hi, I want to remove metadata from an instruction. Is there any way doing this in my pass? Regards, Kyriakos -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130815/08200e23/attachment.html>