finding liveout phys registers

I need a routine that, post register allocation, finds for a basic block the registers that were modified and still live at the end of the block. Is the something already implemented I can call? Or some close I can copy and modify?


Take a look at the LivePhysRegs class. It can help with the live-outs (which is really the union of live-ins from all successors). As for finding the registers that were modified---you'd need to traverse the block to collect that data. Still, LivePhysRegs does have functions that assist with that (stepBackward/stepForward), so maybe that's all you need.