aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/TableGen/TableGenBackend.cpp
AgeCommit message (Collapse)AuthorFilesLines
2019-01-19Update the file headers across all of the LLVM projects in the monorepoChandler Carruth1-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
2015-05-26[TableGen] Fix line wrapping logic for the autogenerated header to use math ↵Craig Topper1-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
2015-05-26[TableGen] Rewrite an assert to not do a bunch unsigned math and then try to ↵Craig Topper1-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
2015-05-26[TableGen] Put a space between '*' and description in the autogenerated ↵Craig Topper1-7/+6
tablegen header. Minor cleanup in surrounding code. llvm-svn: 238185
2015-05-26[TableGen] Fix indentation. NFCCraig Topper1-1/+1
llvm-svn: 238181
2015-05-26[TableGen] Include header for each cpp file first. NFCCraig Topper1-2/+1
llvm-svn: 238180
2013-01-28A bugfix for tblgen, in the function ‘emitSourceFileHeader’.Nadav Rotem1-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
2012-06-19Emit TableGen's header comment with C-style comments, so it can be used from ↵Benjamin Kramer1-4/+18
C89 code. Should silence warnings when compiling the X86 disassembler. llvm-svn: 158723
2012-06-13Eliminate struct TableGenBackend.Jakob Stoklund Olesen1-9/+2
TableGen backends are simply written as functions now. Patch by Sean Silva! llvm-svn: 158389
2012-06-11Write llvm-tblgen backends as functions instead of sub-classes.Jakob Stoklund Olesen1-1/+4
The TableGenBackend base class doesn't do much, and will be removed completely soon. Patch by Sean Silva! llvm-svn: 158311
2012-02-19StringRef'ize EmitSourceFileHeader().Ahmed Charles1-1/+1
llvm-svn: 150917
2011-12-20Unweaken vtables as per ↵David Blaikie1-0/+2
http://llvm.org/docs/CodingStandards.html#ll_virtual_anch llvm-svn: 146960
2011-10-01Move TableGen's parser and entry point into a libraryPeter Collingbourne1-0/+25
This is the first step towards splitting LLVM and Clang's tblgen executables. llvm-svn: 140951