[LLVMdev] Utilizing gperf for TableGen
sabre at nondot.org
Tue Jan 1 13: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.
Right, fixing the VC++ issue is straight-forward. I will do it in the
next couple of days if noone beats me to it.
> 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
> My point is, are there plans to utilize gperf for table generation?
Not that I know of. Anton is working on a better and more aggressive
implementation of this code in question though,
More information about the llvm-dev