[clang] [llvm] New calling convention preserve_none (PR #76868)

via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 12 15:12:23 PDT 2024


weiguozhi wrote:


> We have another use case for this calling convention - micropatching. See my coworker's blog post on how this would work: https://www.philipzucker.com/permutation_compile/
> 
I'm happy to see it's useful to you.

> Is there a reason why r10 isn't included in the list of registers for x64?
> 
In the standard C calling convention R10 is used as nest parameter, I don't know its exact use case (maybe for nest function?). Excluding R10 will avoid problem in those cases.

> Having support for additional architectures (ARM, PPC) would be great for our use case.
We are also interested in AArch64 support, but currently it's not in our high priority.


https://github.com/llvm/llvm-project/pull/76868


More information about the cfe-commits mailing list