Simone Atzeni via llvm-dev
2015-Sep-29 22:43 UTC
[llvm-dev] Removing metadata from LLVM Instruction
Hi, an older thread about removing metadata says to use “setMetadata(Kind, nullptr)” to drop the metadata from the instruction. I have using this method without success. When I look at inside the IR code the metadata are still there, any idea why is that? Thanks. Best, Simone
Duncan P. N. Exon Smith via llvm-dev
2015-Nov-01 23:45 UTC
[llvm-dev] Removing metadata from LLVM Instruction
That should work. Can you reproduce this ToT?> On 2015-Sep-29, at 15:43, Simone Atzeni via llvm-dev <llvm-dev at lists.llvm.org> wrote: > > Hi, > > an older thread about removing metadata says to use “setMetadata(Kind, nullptr)” to drop the metadata from the instruction. > I have using this method without success. > When I look at inside the IR code the metadata are still there, any idea why is that? > > Thanks. > Best, > Simone > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
Simone Atzeni via llvm-dev
2015-Nov-02 00:02 UTC
[llvm-dev] Removing metadata from LLVM Instruction
I think it actually works, but it does not really remove the metadata from the .ll file when clang outputs it. Simone> On Nov 1, 2015, at 16:45, Duncan P. N. Exon Smith <dexonsmith at apple.com> wrote: > > That should work. Can you reproduce this ToT? > >> On 2015-Sep-29, at 15:43, Simone Atzeni via llvm-dev <llvm-dev at lists.llvm.org> wrote: >> >> Hi, >> >> an older thread about removing metadata says to use “setMetadata(Kind, nullptr)” to drop the metadata from the instruction. >> I have using this method without success. >> When I look at inside the IR code the metadata are still there, any idea why is that? >> >> Thanks. >> Best, >> Simone >> _______________________________________________ >> LLVM Developers mailing list >> llvm-dev at lists.llvm.org >> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev >
Maybe Matching Threads
- [LLVMdev] "Expected to drop a reference" assertion thrown
- ilist/iplist are broken (maybe I'll fix them?)
- [LLVMdev] Crash on invalid during LLVMContext destruction MDNode::dropAllReferences
- [LLVMdev] RFC: Metadata attachments to function definitions
- [LLVMdev] RFC: Metadata attachments to function definitions