[LLVMdev] Tablegen binary literals
Pete Cooper
peter_cooper at apple.com
Wed Jul 30 22:56:45 PDT 2014
Hi Adam
> On Jul 30, 2014, at 10:28 PM, Adam Nemet <anemet at apple.com> wrote:
>
> Hi Pete,
>
> Just to clarify, are you proposing two things here? First, 0b… literals to have type bits<n> and second to allow bits<n> initializer to contain other bits<m> elements which would initialize the next m elements.
>
Yeah, exactly those 2 things. I have them in separate patches, but I think we only get the benefit from sized binary literals if we also allow them to initialize multiple bits in another bits<n> type.
Thanks,
Pete
> I.e. I don’t think we currently accept:
>
> bits<4> x = { opc, opc }
>
> Thanks,
> Adam
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140730/6b7396ac/attachment.html>
More information about the llvm-dev
mailing list