[llvm-dev] RFC: New mechanism for hard register operands to inline asm

Renato Golin via llvm-dev llvm-dev at lists.llvm.org
Wed Jun 23 00:30:58 PDT 2021


On Tue, 22 Jun 2021, 23:02 James Y Knight via llvm-dev, <
llvm-dev at lists.llvm.org> wrote:

> Sounds good --  if GCC also implements it. Behind the scenes, Clang
> effectively already implements this proposal -- the register-asm-variables
> are just a strange frontend spelling for hard register constraints. They do
> nothing else, and in particular, they do NOT necessarily live in that
> register other than when being passed to/from an inline asm. So, we'd be
> adding a second (more obvious) spelling to do the exact same thing we
> already implement. IMO it would not be worth it if this new syntax was
> unique to Clang, but is if both clang and gcc implement it.
>

+1

>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20210623/8b35e2f5/attachment.html>


More information about the llvm-dev mailing list