[llvm-dev] Proposal: On re-purposing/reorganizing MIR sigils ('&', '$', '%').

Sean Silva via llvm-dev llvm-dev at lists.llvm.org
Tue Dec 26 15:29:49 PST 2017


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.

It's all a bikeshed, but being more consistent with assembly is probably a
win.

-- Sean Silva

On Dec 25, 2017 11:31 AM, "Puyan Lotfi via llvm-dev" <
llvm-dev at lists.llvm.org> wrote:

> Hi
>
> 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.
>
> 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:
>
> essentially:
>
> BL *&*__divsi3 ...
>
> ...
>
> $eax = ...
>
> %123 = ...
>
> %vregFooBar = ...
>
>
> I have an initial patch attached (replaces '$' for '&' for external
> symbols). Hoping to open some dialog with the community before doing more
> implementation work.
>
> Thanks
>
> PL
>
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20171226/79935365/attachment.html>


More information about the llvm-dev mailing list