Hello, http://llvm.org/docs/TableGen/LangIntro.html says I can use octal integer value (indicated by a leading 0). In fact the number is converted to decimal. With best regards, Romick.
Looks like octal hasn't been supported since the lexer was moved away from flex in r44210 in 2007. Not sure if the previous lexer supported it. The octal line has been in the documentation for tblgen since at least 2004. I'll fix the documentation unless anyone thinks we should add the octal support. ~Craig On Thu, Nov 17, 2016 at 4:35 PM, Romick via llvm-dev < llvm-dev at lists.llvm.org> wrote:> > Hello, > http://llvm.org/docs/TableGen/LangIntro.html says I can use octal integer > value (indicated by a leading 0). > In fact the number is converted to decimal. > > With best regards, > Romick. > _______________________________________________ > 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/20161117/fe3dec2d/attachment.html>
> On Nov 17, 2016, at 5:16 PM, Craig Topper via llvm-dev <llvm-dev at lists.llvm.org> wrote: > > Looks like octal hasn't been supported since the lexer was moved away from flex in r44210 in 2007. Not sure if the previous lexer supported it. The octal line has been in the documentation for tblgen since at least 2004. > > I'll fix the documentation unless anyone thinks we should add the octal support.Please fix the dox. If someone cares about octal (unlikely, but could theoretically be useful for X86 which uses an octal encoding), it should be supported with “0o1234” syntax, imo. -Chris