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

Jacob Lifshay via llvm-dev llvm-dev at lists.llvm.org
Tue Jun 22 14:12:44 PDT 2021


On Tue, Jun 22, 2021, 08:54 Anirudh Prasad via llvm-dev <
llvm-dev at lists.llvm.org> wrote:

> Hi All,
>
> We wanted to bring up the possibility of introducing a new inline asm
> constraint for all targets. This new constraint is meant to be used as a
> replacement for the register asm construct. Part of the motivation behind
> this proposal is to come up with something that is a bit nicer and more
> obvious to use. The new inline asm constraint would be as follows:
>
> {“<register-name>”} (operand name) ...
>

This is somewhat similar to Rust's new inline assembly syntax:
https://github.com/rust-lang/rfcs/blob/master/text/2873-inline-asm.md#explicit-register-operands

We are very interested in hearing opinions on the above proposal!


I think this is a good idea!

Jacob
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20210622/817cb616/attachment.html>


More information about the llvm-dev mailing list