I've read that LiveValues has been removed from trunk. Did it bitrot or was simply removed because a replacement is available? If it's the former, what caused the bitrotting? If it's the latter, what's the replacement? (I've found LiveVariables but I'm not sure it can be used in a ModulePass). b.r. -- Carlo Alberto Ferraris <cafxx at strayorange.com <mailto:cafxx at strayorange.com>> +39 333 7643 235 XMPP <xmpp:cafxx at strayorange.com> Website <http://cafxx.strayorange.com> Blog <http://www.strayorange.com/blog/category/members/cafxx> LinkedIn <http://it.linkedin.com/in/cafxx> Facebook <http://www.facebook.com/carloalberto.ferraris> -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110331/126d3c30/attachment.html>
LiveVariables is the optimized and tested way to get variable liveness information (it's used by register allocation). Unfortunately it requires a MachineFunction to work - so you'll either need to lower to one of the built-in targets or add your own target to acquire access to this pass. Andrew On 03/31/2011 12:28 PM, Carlo Alberto Ferraris wrote:> I've read that LiveValues has been removed from trunk. Did it bitrot > or was simply removed because a replacement is available? > If it's the former, what caused the bitrotting? If it's the latter, > what's the replacement? (I've found LiveVariables but I'm not sure it > can be used in a ModulePass). > b.r. > -- > Carlo Alberto Ferraris <cafxx at strayorange.com > <mailto:cafxx at strayorange.com>> > +39 333 7643 235 XMPP <xmpp:cafxx at strayorange.com> Website > <http://cafxx.strayorange.com> Blog > <http://www.strayorange.com/blog/category/members/cafxx> LinkedIn > <http://it.linkedin.com/in/cafxx> Facebook > <http://www.facebook.com/carloalberto.ferraris> > > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110331/3420543e/attachment.html>
Il 31/03/2011 18:50, Andrew Clinton ha scritto:> LiveVariables is the optimized and tested way to get variable liveness > information (it's used by register allocation). Unfortunately it > requires a MachineFunction to work - so you'll either need to lower to > one of the built-in targets or add your own target to acquire access > to this pass. > > Andrew >I just realized that I actually need something looser than LiveValues. I just need to know, at the begining of a BB, the list of values defined in the predecessor(s). If there are multiple predecessors it's easy (I just iterate over the PHIs and get all I need to know there), but I'm kind of stuck on how to do it when there's a single predecessor, i.e. there are no PHIs. How is this problem dealt with internally by LLVM? -- Carlo Alberto Ferraris <cafxx at strayorange.com <mailto:cafxx at strayorange.com>> +39 333 7643 235 XMPP <xmpp:cafxx at strayorange.com> Website <http://cafxx.strayorange.com> Blog <http://www.strayorange.com/blog/category/members/cafxx> LinkedIn <http://it.linkedin.com/in/cafxx> Facebook <http://www.facebook.com/carloalberto.ferraris> -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110401/172f5a85/attachment.html>
Il 31/03/2011 18:50, Andrew Clinton ha scritto:> LiveVariables is the optimized and tested way to get variable liveness > information (it's used by register allocation). Unfortunately it > requires a MachineFunction to work - so you'll either need to lower to > one of the built-in targets or add your own target to acquire access > to this pass.Is it possible to lower to a target from a ModulePass just to get the LiveVariables? -- Carlo Alberto Ferraris <cafxx at strayorange.com <mailto:cafxx at strayorange.com>> +39 333 7643 235 XMPP <xmpp:cafxx at strayorange.com> Website <http://cafxx.strayorange.com> Blog <http://www.strayorange.com/blog/category/members/cafxx> LinkedIn <http://it.linkedin.com/in/cafxx> Facebook <http://www.facebook.com/carloalberto.ferraris> -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110401/c20c9c61/attachment.html>