aboutsummaryrefslogtreecommitdiff
path: root/llvm/utils/TableGen/SequenceToOffsetTable.h
AgeCommit message (Collapse)AuthorFilesLines
2016-04-18[NFC] Header cleanupMehdi Amini1-1/+0
Removed some unused headers, replaced some headers with forward class declarations. Found using simple scripts like this one: clear && ack --cpp -l '#include "llvm/ADT/IndexedMap.h"' | xargs grep -L 'IndexedMap[<]' | xargs grep -n --color=auto 'IndexedMap' Patch by Eugene Kosov <claprix@yandex.ru> Differential Revision: http://reviews.llvm.org/D19219 From: Mehdi Amini <mehdi.amini@apple.com> llvm-svn: 266595
2014-11-22Reduce size of some tables in tablegen register info output.Craig Topper1-0/+5
Primarily done by using SequenceToOffsetTable to reduce the register pressure set tables and then sizing the indices into the tables appropriately. Size a few other table entries based on content as well. Reduces X86RegisterInfo.o by ~9k. llvm-svn: 222621
2014-08-13Canonicalize header guards into a common format.Benjamin Kramer1-2/+2
Add header guards to files that were missing guards. Remove #endif comments as they don't seem common in LLVM (we can easily add them back if we decide they're useful) Changes made by clang-tidy with minor tweaks. llvm-svn: 215558
2013-08-28Add missing includeCraig Topper1-0/+1
llvm-svn: 189448
2012-12-04Sort the #include lines for utils/...Chandler Carruth1-2/+2
I've tried to find main moudle headers where possible, but the TableGen stuff may warrant someone else looking at it. llvm-svn: 169251
2012-09-15Revert r163878 as it breaks on targets with alternate register names. Such ↵Craig Topper1-2/+1
targets do not exist in the main tree so this was not noticed. llvm-svn: 163959
2012-09-14Reduce size of register name index tables by using uint16_t for all in tree ↵Craig Topper1-2/+3
targets. If more than 16-bits are needed for any out of tree targets, code will detect and use uint32_t instead. llvm-svn: 163878
2012-08-23Fix a bunch of -Wdocumentation warnings.Dmitri Gribenko1-2/+2
llvm-svn: 162446
2012-05-17enhance the intrinsic info stuff to emit encodings that don't fit in 32-bits ↵Chris Lattner1-0/+2
into a separate side table, using the handy SequenceToOffsetTable class. This encodes all these weird things into another 256 bytes, allowing all intrinsics to be encoded this way. llvm-svn: 156995
2012-03-30Use SequenceToOffsetTable in emitRegisterNameString.Jakob Stoklund Olesen1-0/+14
This allows suffix sharing in register names. (AX is a suffix of EAX). llvm-svn: 153777
2012-03-30Reapply 153764 and 153761 with a fix.Jakob Stoklund Olesen1-2/+4
Use an explicit comparator instead of the default. The sets are sorted, but not using the default comparator. Hopefully, this will unbreak the Linux builders. llvm-svn: 153772
2012-03-30Revert 153764 and 153761. They broke a --enable-optimized --enable-assertionsRafael Espindola1-4/+2
--enable-expensive-checks build. llvm-svn: 153771
2012-03-30Compress SimpleValueType lists by sharing.Jakob Stoklund Olesen1-2/+4
Many register classes have the same value types. Share the table space. llvm-svn: 153764
2012-03-30Add a SequenceToOffsetTable to TableGen.Jakob Stoklund Olesen1-0/+123
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. llvm-svn: 153760