Hello together, I have seen that the analysis-results are stored in llvm-IR as annotations. For example <; preds = %entry> in basicBlock level and <; <i32*> [#uses=2]> for a variable. Is there any documentation about annotations? Regards Raad -------------- next part -------------- An HTML attachment was scrubbed... URL: <lists.llvm.org/pipermail/llvm-dev/attachments/20090217/28764018/attachment.html>
On Tue, Feb 17, 2009 at 12:46 AM, RAAD B <raad_7007 at yahoo.com> wrote:> Hello together, > > I have seen that the analysis-results are stored in llvm-IR as annotations. > For example <; preds = %entry> in basicBlock level and <; <i32*> [#uses=2]> > for a variable. > > Is there any documentation about annotations?That isn't really analysis; it's just some easy-to-extract information the disassembler uses to make the output more readable. Those notes are treated as comments by the assembler. -Eli
Ok, but what about a pass like alias-analysis. How are the results stored, so that other passes can use them. -Raad ________________________________ From: Eli Friedman <eli.friedman at gmail.com> To: LLVM Developers Mailing List <llvmdev at cs.uiuc.edu> Sent: Tuesday, February 17, 2009 9:52:58 AM Subject: Re: [LLVMdev] information-transfer between analysis-pases On Tue, Feb 17, 2009 at 12:46 AM, RAAD B <raad_7007 at yahoo.com> wrote:> Hello together, > > I have seen that the analysis-results are stored in llvm-IR as annotations. > For example <; preds = %entry> in basicBlock level and <; <i32*> [#uses=2]> > for a variable. > > Is there any documentation about annotations?That isn't really analysis; it's just some easy-to-extract information the disassembler uses to make the output more readable. Those notes are treated as comments by the assembler. -Eli _______________________________________________ LLVM Developers mailing list LLVMdev at cs.uiuc.edu llvm.cs.uiuc.edu lists.cs.uiuc.edu/mailman/listinfo/llvmdev -------------- next part -------------- An HTML attachment was scrubbed... URL: <lists.llvm.org/pipermail/llvm-dev/attachments/20090217/6d012fc6/attachment.html>
Hi,> I have seen that the analysis-results are stored in llvm-IR as annotations.no they are not.> For example <; preds = %entry> in basicBlock level and <; <i32*> [#uses=2]> for a variable. > > Is there any documentation about annotations?These are just comments - you can delete them and it won't matter. Ciao, Duncan.