I believe it might actually. Do you know if it's possible to inline functions without an external node? It doesn't appear to be so. On Mon, Mar 12, 2012 at 1:24 AM, James Molloy <James.Molloy at arm.com> wrote:> Hi Ryan,**** > > ** ** > > I would just compile to multiple IR files then link them together with > llvm-link.**** > > ** ** > > Would that work for you?**** > > ** ** > > Cheers,**** > > ** ** > > James**** > > ** ** > > *From:* cfe-dev-bounces at cs.uiuc.edu [mailto:cfe-dev-bounces at cs.uiuc.edu] *On > Behalf Of *Ryan Taylor > *Sent:* 09 March 2012 19:32 > *To:* cfe-dev at cs.uiuc.edu > *Subject:* [cfe-dev] Compiling Multiple Files**** > > ** ** > > Clangers, > > What's the best way to compile multiple files in one LLVM IR file? It > doesn't appear that clang supports the gcc -combine feature.**** > > -- IMPORTANT NOTICE: The contents of this email and any attachments are > confidential and may also be privileged. If you are not the intended > recipient, please notify the sender immediately and do not disclose the > contents to any other person, use it for any purpose, or store or copy the > information in any medium. Thank you. >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120312/8e857ca5/attachment.html>
Hi Ryan,> Do you know if it's possible to inline functions without an external node?Sorry, I don't know to what you're referring here. Could you please rephrase? what do you mean be "external node"? Cheers, James ________________________________________ From: Ryan Taylor [ryta1203 at gmail.com] Sent: 12 March 2012 17:58 To: James Molloy Cc: llvmdev at cs.uiuc.edu Subject: Re: [cfe-dev] Compiling Multiple Files I believe it might actually. Do you know if it's possible to inline functions without an external node? It doesn't appear to be so. On Mon, Mar 12, 2012 at 1:24 AM, James Molloy <James.Molloy at arm.com<mailto:James.Molloy at arm.com>> wrote: Hi Ryan, I would just compile to multiple IR files then link them together with llvm-link. Would that work for you? Cheers, James From: cfe-dev-bounces at cs.uiuc.edu<mailto:cfe-dev-bounces at cs.uiuc.edu> [mailto:cfe-dev-bounces at cs.uiuc.edu<mailto:cfe-dev-bounces at cs.uiuc.edu>] On Behalf Of Ryan Taylor Sent: 09 March 2012 19:32 To: cfe-dev at cs.uiuc.edu<mailto:cfe-dev at cs.uiuc.edu> Subject: [cfe-dev] Compiling Multiple Files Clangers, What's the best way to compile multiple files in one LLVM IR file? It doesn't appear that clang supports the gcc -combine feature. -- IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you. -- IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.
James, Sure. I want to inline functions in a C program that has no external node, or "main". So the "top" function is not main and there does not exist a main in the file. Thanks. On Mon, Mar 12, 2012 at 11:23 AM, James Molloy <James.Molloy at arm.com> wrote:> Hi Ryan, > > > Do you know if it's possible to inline functions without an external > node? > > Sorry, I don't know to what you're referring here. Could you please > rephrase? what do you mean be "external node"? > > Cheers, > > James > ________________________________________ > From: Ryan Taylor [ryta1203 at gmail.com] > Sent: 12 March 2012 17:58 > To: James Molloy > Cc: llvmdev at cs.uiuc.edu > Subject: Re: [cfe-dev] Compiling Multiple Files > > I believe it might actually. Do you know if it's possible to inline > functions without an external node? It doesn't appear to be so. > > On Mon, Mar 12, 2012 at 1:24 AM, James Molloy <James.Molloy at arm.com > <mailto:James.Molloy at arm.com>> wrote: > Hi Ryan, > > I would just compile to multiple IR files then link them together with > llvm-link. > > Would that work for you? > > Cheers, > > James > > From: cfe-dev-bounces at cs.uiuc.edu<mailto:cfe-dev-bounces at cs.uiuc.edu> > [mailto:cfe-dev-bounces at cs.uiuc.edu<mailto:cfe-dev-bounces at cs.uiuc.edu>] > On Behalf Of Ryan Taylor > Sent: 09 March 2012 19:32 > To: cfe-dev at cs.uiuc.edu<mailto:cfe-dev at cs.uiuc.edu> > Subject: [cfe-dev] Compiling Multiple Files > > Clangers, > > What's the best way to compile multiple files in one LLVM IR file? It > doesn't appear that clang supports the gcc -combine feature. > > -- IMPORTANT NOTICE: The contents of this email and any attachments are > confidential and may also be privileged. If you are not the intended > recipient, please notify the sender immediately and do not disclose the > contents to any other person, use it for any purpose, or store or copy the > information in any medium. Thank you. > > > -- IMPORTANT NOTICE: The contents of this email and any attachments are > confidential and may also be privileged. If you are not the intended > recipient, please notify the sender immediately and do not disclose the > contents to any other person, use it for any purpose, or store or copy the > information in any medium. Thank you. > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120312/e44d9d8a/attachment.html>