[llvm-commits] [llvm] r153760 - /llvm/trunk/utils/TableGen/SequenceToOffsetTable.h

Chris Lattner clattner at apple.com
Fri Mar 30 11:48:26 PDT 2012


On Mar 30, 2012, at 10:25 AM, Jakob Stoklund Olesen wrote:

> Author: stoklund
> Date: Fri Mar 30 12:25:40 2012
> New Revision: 153760
> 
> URL: http://llvm.org/viewvc/llvm-project?rev=153760&view=rev
> Log:
> Add a SequenceToOffsetTable to TableGen.
> 
> This is similar to the StringToOffsetTable we use to produce string
> tables, but it can be used for other sequences than strings, and it
> eliminates entries for suffixes.

Nice, can StringToOffsetTable go away or be reimplemented in terms of this?  It would be nice to get suffix sharing for strings and not have the algorithm duplication.

-Chris



More information about the llvm-commits mailing list