summaryrefslogtreecommitdiffstats
path: root/llvm/lib/TableGen/TableGenBackend.cpp
Commit message (Collapse)AuthorAgeFilesLines
* 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
* [TableGen] Fix line wrapping logic for the autogenerated header to use math ↵Craig Topper2015-05-261-7/+6
| | | | | | | | that makes more sense (at least to me). The old code had a bug if the description was between 75 and 85 characters or so as it substracted PSLen from Desc.size() instead of MAX_LINE_LEN in the compare. It also calculated odd values for PosE on the last split and just let StringRef::slice take care of it being larger than the description string. llvm-svn: 238187
* [TableGen] Rewrite an assert to not do a bunch unsigned math and then try to ↵Craig Topper2015-05-261-3/+3
| | | | | | | | ensure the result is a positive number. I think the fact that it was explicitly excluding 0 kept this from being a tautology. The exclusion of 0 for the old math was also a bug that's easily hit if the description gets split into multiple lines. llvm-svn: 238186
* [TableGen] Put a space between '*' and description in the autogenerated ↵Craig Topper2015-05-261-7/+6
| | | | | | tablegen header. Minor cleanup in surrounding code. llvm-svn: 238185
* [TableGen] Fix indentation. NFCCraig Topper2015-05-261-1/+1
| | | | llvm-svn: 238181
* [TableGen] Include header for each cpp file first. NFCCraig Topper2015-05-261-2/+1
| | | | llvm-svn: 238180
* A bugfix for tblgen, in the function ‘emitSourceFileHeader’.Nadav Rotem2013-01-281-6/+25
| | | | | | | | | When the first parameter (‘Desc’) is more than 80 characters long, it will result the header line that contains the description to be more Than (4GB!) long. Not only it takes forever to produce, the output file cannot be open, since its ginormous. Patch by Elior Malul. llvm-svn: 173672
* Emit TableGen's header comment with C-style comments, so it can be used from ↵Benjamin Kramer2012-06-191-4/+18
| | | | | | | | C89 code. Should silence warnings when compiling the X86 disassembler. llvm-svn: 158723
* Eliminate struct TableGenBackend.Jakob Stoklund Olesen2012-06-131-9/+2
| | | | | | | | TableGen backends are simply written as functions now. Patch by Sean Silva! llvm-svn: 158389
* Write llvm-tblgen backends as functions instead of sub-classes.Jakob Stoklund Olesen2012-06-111-1/+4
| | | | | | | | | The TableGenBackend base class doesn't do much, and will be removed completely soon. Patch by Sean Silva! llvm-svn: 158311
* StringRef'ize EmitSourceFileHeader().Ahmed Charles2012-02-191-1/+1
| | | | llvm-svn: 150917
* Unweaken vtables as per ↵David Blaikie2011-12-201-0/+2
| | | | | | http://llvm.org/docs/CodingStandards.html#ll_virtual_anch llvm-svn: 146960
* Move TableGen's parser and entry point into a libraryPeter Collingbourne2011-10-011-0/+25
This is the first step towards splitting LLVM and Clang's tblgen executables. llvm-svn: 140951
OpenPOWER on IntegriCloud