In any case, Is there any chance for reusing *temporary variable *used in it's IR by LLVM ? -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160318/f86ad7b7/attachment.html>
David Blaikie via llvm-dev
2016-Mar-18 05:12 UTC
[llvm-dev] LLVM IR temporary variable reuse
Question is hard to understand - the registers in LLVM are in Static Single Assignment form <https://en.wikipedia.org/wiki/Static_single_assignment_form>, they're not variables that can be assigned and reassigned values (so the answer to your question is probably "no"). It's best to look at what Clang does to see how IR can be used to represent constructs in C you may be more familiar with. On Thu, Mar 17, 2016 at 10:05 PM, Ansar K.A. via llvm-dev < llvm-dev at lists.llvm.org> wrote:> In any case, Is there any chance for reusing *temporary variable *used in > it's IR by LLVM ? > > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160317/242a95e9/attachment.html>
I meant LLVM registers. Thanks for the correcting me. On 18 March 2016 at 10:42, David Blaikie <dblaikie at gmail.com> wrote:> Question is hard to understand - the registers in LLVM are in Static > Single Assignment form > <https://en.wikipedia.org/wiki/Static_single_assignment_form>, they're > not variables that can be assigned and reassigned values (so the answer to > your question is probably "no"). It's best to look at what Clang does to > see how IR can be used to represent constructs in C you may be more > familiar with. > > On Thu, Mar 17, 2016 at 10:05 PM, Ansar K.A. via llvm-dev < > llvm-dev at lists.llvm.org> wrote: > >> In any case, Is there any chance for reusing *temporary variable *used >> in it's IR by LLVM ? >> >> _______________________________________________ >> LLVM Developers mailing list >> llvm-dev at lists.llvm.org >> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev >> >> >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160318/5c87bc25/attachment-0001.html>