[llvm-dev] Finding caller-saved registers at a function call site

Sanjoy Das via llvm-dev llvm-dev at lists.llvm.org
Mon Jun 27 09:57:35 PDT 2016


Hi Rob,

Rob Lyerly wrote:
[snip]

 > following:
 >

 > <regmask %BH %BL %BP %BPL %BX %EBP %EBX %RBP %RBX %R12 %R13 %R14
 > %R15 %R12B %R13B %R14B %R15B %R12D %R13D %R14D %R15D %R12W %R13W %R14W
 > %R15W>

IIUC the regmask lists the registers that are preserved *by* the
callee.  The registers that would have to be preserved by the caller
are the complement of this set.

It'll be helpful if you give us a high level picture of the problem
you're trying to solve.

Thanks,
-- Sanjoy


More information about the llvm-dev mailing list