<div dir="ltr"><div dir="ltr"><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jun 23, 2021 at 2:09 PM David Chisnall via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 22/06/2021 16:54, Anirudh Prasad via llvm-dev wrote:<br>
> Hi All,<br>
> <br>
> 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:<br>
> <br>
> {“<register-name>”} (operand name) ...<br>
> <br>
> The constraint will try to tie the particular inline asm operand to a specific register.<br>
> <br>
> This is also proposed as an RFC in the GCC mailing lists (<a href="https://gcc.gnu.org/pipermail/gcc/2021-June/236269.html" rel="noreferrer" target="_blank">https://gcc.gnu.org/pipermail/gcc/2021-June/236269.html</a>). We would ideally like to maintain consistency with GCC.<br>
<br>
It looks as if you're proposing a new representation of *C* inline <br>
assembly, not LLVM IR inline assembly.  As such, the only LLVM component <br>
that need to be modified to support it is Clang.  If you post this on <br>
the Clang developers list, you are likely to get feedback from the right <br>
set of people.<br></blockquote><div> </div><div>
<div>I agree with David. This more or less looks like a language extension than a compiler/IR thing. <br></div><div>It is an alternate form of inline asm which is more user friendly.</div><div>I don't think any compiler would object to this if it is approved by a language committee or SIG.</div>  <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
David<br>
<br>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
<a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><i style="font-size:12.8px">Disclaimer: Views, concerns, thoughts, questions, ideas expressed in this mail are of my own and my employer has no take in it. </i><br></div><div>Thank You.<br>Madhur D. Amilkanthwar<br><br></div></div></div></div>