Dongrui She
2011-Mar-21 10:46 UTC
[LLVMdev] How to get register liveness information for each MachineBasicBlock
Hi all, I try to print the live-in and live-out registers for each basic block in a backend for my own target. And I can get a list of live-in registers directly in MachineBasicBlock. Is there a quick way to also get the list of live-out registers without redoing the analysis. I think this information is computed and stored somewhere. -- Regards, Dongrui -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110321/d57dea89/attachment.html>
Jakob Stoklund Olesen
2011-Mar-23 02:21 UTC
[LLVMdev] How to get register liveness information for each MachineBasicBlock
On Mar 21, 2011, at 3:46 AM, Dongrui She wrote:> Hi all, > > I try to print the live-in and live-out registers for each basic block in a backend for my own target. > And I can get a list of live-in registers directly in MachineBasicBlock. > > Is there a quick way to also get the list of live-out registers without redoing the analysis. I think > this information is computed and stored somewhere.This information is not available. You can compute the live-out set as the union of the live-in sets of all successor blocks. Note that the live-in lists only contain physical registers. Register allocation computes liveness information for virtual registers in the LiveIntervals analysis. /jakob
Seemingly Similar Threads
- [LLVMdev] How to choose targets to build in CMake?
- [LLVMdev] How to choose targets to build in CMake?
- [LLVMdev] Liveness analysis on MachineBasicBlock
- [LLVMdev] Liveness information still usable after register allocation?
- Is it possible to avoid inserting spill/split code in certain instruction sequence in RA?