[llvm-dev] Spare Register at one Machine Instruction

Hong Hu via llvm-dev llvm-dev at lists.llvm.org
Thu Jan 19 04:36:36 PST 2017


Hi All,

Given a machine instruction, is it possible to tell which register(s) is
still not in use?

For example, given one instruction A, if the one follows it (say B) defines
register rax, then I can tell rax should spare at instruction A.

The purpose is to use the spare register to replace registers used by A,
for instrumentation purpose.

Regards,
Hu Hong
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170119/499daf9d/attachment.html>


More information about the llvm-dev mailing list