<div dir="auto">Can we use %% for vregs? Seems slightly easier to remember %/%% than $/%. Also, %eax and $some_symbol are already familiar from typical assembly syntax and we probably don't want to break that association.<div dir="auto"><br></div><div dir="auto">It's all a bikeshed, but being more consistent with assembly is probably a win.<br><div dir="auto"><br></div><div dir="auto">-- Sean Silva</div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Dec 25, 2017 11:31 AM, "Puyan Lotfi via llvm-dev" <<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div>Hi<br></div><div><br></div><div>A few of us have discussed enhancing the MIR vregs to include support for named-vregs. At the moment named regs are only supported for physical registers and number regs are reserved for vregs.<br><br></div>We've decided that to properly implement a syntax for MIR named vregs we first need to reorganized the sigils used for physical registers and external symbols so our proposal is to swap the sigil used for external symbols ('$') for the ampersand ('&') and re-purpose dollar-sign for physregs so that physregs have the dollar-sign sigil and vregs have the percentage ('%') sigil:<br><br></div>essentially:<br><br>BL <b>&</b>__divsi3 ...<br><br>...<br><br></div>$eax = ...<br><br></div>%123 = ...<br><br></div>%vregFooBar = ...<br><div><div><div><br></div><div><br></div><div>I have an initial patch attached (replaces '$' for '&' for external symbols). Hoping to open some dialog with the community before doing more implementation work.</div><div><br></div><div>Thanks<br></div><div><br></div><div>PL<br></div></div></div></div>
<br>______________________________<wbr>_________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/llvm-dev</a><br>
<br></blockquote></div></div>