[LLVMdev] Utilizing gperf for TableGen

Wilhansen Li krad at crammerz-inc.net
Tue Jan 1 01:51:29 PST 2008


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?
-- 
(<_<)(>_>)(>_<)(<.<)(>.>)(>.<)
Life is too short for dial-up.



More information about the llvm-dev mailing list