[LLVMdev] Tablegen binary literals

Tim Northover t.p.northover at gmail.com
Wed Jul 30 23:31:30 PDT 2014


> 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.

It also allows type checking for single initializers. I've been caught
out a couple of times when I thought I'd given 17 digits in "let
Inst{16-0} = 0b1001000111011010" or similar.

Cheers.

Tim.



More information about the llvm-dev mailing list