summaryrefslogtreecommitdiffstats
path: root/llvm/utils/TableGen/SequenceToOffsetTable.h
Commit message (Collapse)AuthorAgeFilesLines
* Relax assertions when there's really no entries. [NFC]Michael Liao2019-10-221-2/+2
|
* Update the file headers across all of the LLVM projects in the monorepoChandler Carruth2019-01-191-4/+3
| | | | | | | | | | | | | | | | | to reflect the new license. We understand that people may be surprised that we're moving the header entirely to discuss the new license. We checked this carefully with the Foundation's lawyer and we believe this is the correct approach. Essentially, all code in the project is now made available by the LLVM project under our new license, so you will see that the license headers include that license only. Some of our contributors have contributed code under our old license, and accordingly, we have retained a copy of our old license notice in the top-level files in each project and repository. llvm-svn: 351636
* Remove usages of deprecated std::unary_function and std::binary_function.Benjamin Kramer2017-09-141-1/+1
| | | | | | | | | | These are removed in C++17. We still have some users of unary_function::argument_type, so just spell that typedef out. No functionality change intended. Note that many of the argument types are actually wrong :) llvm-svn: 313287
* [NFC] Header cleanupMehdi Amini2016-04-181-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
* Reduce size of some tables in tablegen register info output.Craig Topper2014-11-221-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
* Canonicalize header guards into a common format.Benjamin Kramer2014-08-131-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
* Add missing includeCraig Topper2013-08-281-0/+1
| | | | llvm-svn: 189448
* Sort the #include lines for utils/...Chandler Carruth2012-12-041-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
* Revert r163878 as it breaks on targets with alternate register names. Such ↵Craig Topper2012-09-151-2/+1
| | | | | | targets do not exist in the main tree so this was not noticed. llvm-svn: 163959
* Reduce size of register name index tables by using uint16_t for all in tree ↵Craig Topper2012-09-141-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
* Fix a bunch of -Wdocumentation warnings.Dmitri Gribenko2012-08-231-2/+2
| | | | llvm-svn: 162446
* enhance the intrinsic info stuff to emit encodings that don't fit in 32-bits ↵Chris Lattner2012-05-171-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
* Use SequenceToOffsetTable in emitRegisterNameString.Jakob Stoklund Olesen2012-03-301-0/+14
| | | | | | This allows suffix sharing in register names. (AX is a suffix of EAX). llvm-svn: 153777
* Reapply 153764 and 153761 with a fix.Jakob Stoklund Olesen2012-03-301-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
* Revert 153764 and 153761. They broke a --enable-optimized --enable-assertionsRafael Espindola2012-03-301-4/+2
| | | | | | --enable-expensive-checks build. llvm-svn: 153771
* Compress SimpleValueType lists by sharing.Jakob Stoklund Olesen2012-03-301-2/+4
| | | | | | Many register classes have the same value types. Share the table space. llvm-svn: 153764
* Add a SequenceToOffsetTable to TableGen.Jakob Stoklund Olesen2012-03-301-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
OpenPOWER on IntegriCloud