[LLVMdev] Utilizing gperf for TableGen

Evan Cheng evan.cheng at apple.com
Wed Jan 2 11:04:57 PST 2008

On Jan 1, 2008, at 1:51 AM, 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.
> One one hand, gperf
> (http://www.gnu.org/software/gperf/manual/gperf.html) offers a way to
> map strings to records without much difficulty (and it does its job
> efficiently).
> My point is, are there plans to utilize gperf for table generation?

There isn't any plan to do so. I agree the output of TableGen can be  
much improved. But this hasn't been a high priority issue. If you have  
an interest in improving this, please do! But I would prefer the  
improvement be made in TableGen that would not require another  
external tool.



> -- 
> (<_<)(>_>)(>_<)(<.<)(>.>)(>.<)
> Life is too short for dial-up.
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev

More information about the llvm-dev mailing list