summaryrefslogtreecommitdiffstats
path: root/llvm/utils/TableGen/FileParser.y
Commit message (Collapse)AuthorAgeFilesLines
* Rewrite the tblgen parser in a recursive descent style, eliminating the ↵Chris Lattner2007-11-221-806/+0
| | | | | | | | | | | | bison parser. This makes the parser much easier to understand, eliminates a ton of global variables, and gives tblgen nice caret diagnostics. It is also faster, but tblgen probably doesn't care about performance. There are a couple of FIXMEs which I will take care of next. llvm-svn: 44274
* Added \!con(a,b) syntax to concatnate two dag fragments.Evan Cheng2007-05-151-1/+3
| | | | llvm-svn: 37063
* What should be the last unnecessary <iostream>s in the library.Bill Wendling2006-12-071-1/+2
| | | | llvm-svn: 32333
* Add support for let expressions around an mdef. This implements a new partChris Lattner2006-10-111-2/+10
| | | | | | of Regression/TableGen/MultiClass.td. llvm-svn: 30887
* Bugfix: this allows multiclasses to have default arguments.Chris Lattner2006-10-071-1/+2
| | | | llvm-svn: 30798
* Make sure to clear CurDefmPrefix = 0, otherwise stuff after a defm won'tChris Lattner2006-09-011-0/+1
| | | | | | parse right. This fixes TableGen/MultiClass.td llvm-svn: 30037
* fix an assertion with multidefs. Def inside of multiclasses don't need toChris Lattner2006-09-011-1/+5
| | | | | | be complete. llvm-svn: 30034
* Add often-requested support for defining "multiclasses" which can be ↵Chris Lattner2006-09-011-38/+200
| | | | | | | | | instantiated. This allows you to define multiple definitions with one line, encouraging more .td file factoring. llvm-svn: 30027
* Generalize the previous binary operator support and add a string concatenationChris Lattner2006-03-311-16/+6
| | | | | | operation. This implements Regression/TableGen/strconcat.td. llvm-svn: 27312
* Implement Regression/TableGen/DagDefSubst.llChris Lattner2006-03-301-25/+24
| | | | llvm-svn: 27263
* implement test/Regression/TableGen/DagIntSubst.llChris Lattner2006-01-311-1/+1
| | | | llvm-svn: 25836
* Refactor this a bit to move ParsingTemplateArgs to only apply to classes,Chris Lattner2005-09-301-11/+25
| | | | | | | | | not defs. Implement support for forward definitions of classes. This implements TableGen/ForwardRef.td. llvm-svn: 23548
* Generate a parse error instead of a checked exception if template args areChris Lattner2005-09-301-14/+10
| | | | | | used on a def. llvm-svn: 23545
* Refactor the grammar a bit to implement TableGen/ForwardRef.tdChris Lattner2005-09-301-28/+38
| | | | llvm-svn: 23542
* Rearrange two rules, which apparently makes some versions of bison happier.Chris Lattner2005-09-121-15/+15
| | | | llvm-svn: 23310
* Add support for automatically created anonymous definitions.Chris Lattner2005-09-081-1/+30
| | | | | | This implements Regression/TableGen/AnonDefinitionOnDemand.td llvm-svn: 23274
* Tabs to spaces.Chris Lattner2005-09-081-12/+12
| | | | llvm-svn: 23270
* Major change to tblgen: instead of resolving values every time a class isChris Lattner2005-04-191-20/+31
| | | | | | | | | | | finished up, only resolve fully when the def is defined. This allows things to be changed and all uses to be propagated through. This implements TableGen/LazyChange.td and fixes TemplateArgRename.td in the process. None of the .td files used in LLVM backends are changed at all by this patch. llvm-svn: 21344
* Add initial lexer and parser support for shifting values. Every use of thisChris Lattner2005-04-191-0/+19
| | | | | | will lead to it being rejected though. llvm-svn: 21335
* Changes For Bug 352Reid Spencer2004-09-011-1/+1
| | | | | | | | Move include/Config and include/Support into include/llvm/Config, include/llvm/ADT and include/llvm/Support. From here on out, all LLVM public header files must be under include/llvm/. llvm-svn: 16137
* Add initial support for list slices. This currently allows you to do stuffChris Lattner2004-07-261-16/+44
| | | | | | | | | | | | like this: def B { list<int> X = [10, 20, 30, 4, 1, 1231, 20] [2-4,2,2,0-6]; } ... which isn't particularly useful, but more is to come. llvm-svn: 15247
* Do not remove an active template argument even if the superclass had one of theChris Lattner2004-02-281-1/+2
| | | | | | same name llvm-svn: 11950
* Ignore X = X assignments that was causing Alkis's rewrite of X86.td to crashChris Lattner2004-02-281-3/+9
| | | | | | tblgen. llvm-svn: 11948
* exit(1) instead of abort()'ing on errorChris Lattner2004-02-131-23/+23
| | | | llvm-svn: 11380
* Put all LLVM code into the llvm namespace, as per bug 109.Brian Gaeke2003-11-111-10/+17
| | | | llvm-svn: 9903
* Added LLVM copyright notice.John Criswell2003-10-211-0/+7
| | | | llvm-svn: 9324
* Regularize header file commentsChris Lattner2003-10-131-1/+1
| | | | llvm-svn: 9071
* Move support/tools/* back into utilsChris Lattner2003-10-051-0/+510
llvm-svn: 8875
OpenPOWER on IntegriCloud