[LLVMdev] Utilizing gperf for TableGen

Wilhansen Li willi.t1 at gmail.com
Thu Jan 3 17:34:48 PST 2008


The newer code that TableGen produces is indeed lower however, MSVC
still throws the same error messages (and moreover, I don't think
they're fixing it anytime soon.. I'll try to re-open this issue to
them). Also, it seems that the new code produces an extraneous "if
(0);" statement before each of the else-if chains. Normally, compilers
would (and should) just optimize them away but it still counts agains
MSVC's ``nesting limit''.

On 1/3/08, Chris Lattner <sabre at nondot.org> wrote:
> On Tue, 1 Jan 2008, Wilhansen Li wrote:
> > The output of TableGen (intrinsics.gen) seems a bit too clunky
> > specifically the switching parts (input the string, output the enum).
> > Moreover, the code makes MSVC barf due to its nesting limit which even
> > applices to if-else statements.
>
> This should be fixed now, please verify, thanks!
>
> -Chris
>
> --
> http://nondot.org/sabre/
> http://llvm.org/
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>


-- 
(<_<)(>_>)(>_<)(<.<)(>.>)(>.<)
Life is too short for dial-up.



More information about the llvm-dev mailing list