[llvm-dev] finding liveout phys registers
Krzysztof Parzyszek via llvm-dev
llvm-dev at lists.llvm.org
Thu Dec 10 13:14:25 PST 2020
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.
--
Krzysztof Parzyszek kparzysz at quicinc.com AI tools development
-----Original Message-----
From: llvm-dev <llvm-dev-bounces at lists.llvm.org> On Behalf Of Bagel via llvm-dev
Sent: Thursday, December 10, 2020 3:10 PM
To: llvm-dev at lists.llvm.org
Subject: [EXT] [llvm-dev] 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?
Thanks,
brian
_______________________________________________
LLVM Developers mailing list
llvm-dev at lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
More information about the llvm-dev
mailing list