aboutsummaryrefslogtreecommitdiffstats
path: root/utils
Commit message (Collapse)AuthorAgeFilesLines
* Using `std::remove' requires `cstdio.h'.Misha Brukman2003-08-141-0/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7843 91177308-0d34-0410-b5e6-96231b3b80d8
* * Enable SPEC testing in the `configure' script command lineMisha Brukman2003-08-141-3/+3
| | | | | | | | * Switched from using `m||' to `m##' because VIM mis-highlights `m||' * Simplified the regex getting the file version number git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7842 91177308-0d34-0410-b5e6-96231b3b80d8
* Using std::string requires `#include <string>', says gcc-2.95.3.Misha Brukman2003-08-132-0/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7833 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix emission of instructions that directly reference MBBsChris Lattner2003-08-121-4/+10
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7771 91177308-0d34-0410-b5e6-96231b3b80d8
* Make LOC count more accurate by not including the tablegen lexer/parser, any ↵Chris Lattner2003-08-121-1/+6
| | | | | | .inc files, which are generated by tablegen, nor .lo files which sometimes get picked up from libtool git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7770 91177308-0d34-0410-b5e6-96231b3b80d8
* Add support for the Any type. Minor fixes and enhancements for BasicBlock ↵Chris Lattner2003-08-122-7/+18
| | | | | | operands git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7769 91177308-0d34-0410-b5e6-96231b3b80d8
* Rename DNVT_bool to DNVT_i1 to be consistent with type systemChris Lattner2003-08-122-4/+4
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7768 91177308-0d34-0410-b5e6-96231b3b80d8
* Add support for a bool argtyChris Lattner2003-08-122-2/+8
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7766 91177308-0d34-0410-b5e6-96231b3b80d8
* It is not an error if a rule does not match, it's just a failed match!Chris Lattner2003-08-111-2/+3
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7761 91177308-0d34-0410-b5e6-96231b3b80d8
* Add support for frameidx and literal immediates for instructionsChris Lattner2003-08-112-11/+42
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7749 91177308-0d34-0410-b5e6-96231b3b80d8
* Add support for naming the destination of a "set" in a patternChris Lattner2003-08-112-0/+6
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7748 91177308-0d34-0410-b5e6-96231b3b80d8
* Add support for the Arg1 argument typeChris Lattner2003-08-112-3/+15
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7747 91177308-0d34-0410-b5e6-96231b3b80d8
* Added keyword `include', and a FIXME for hex and binary constants.Misha Brukman2003-08-111-1/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7740 91177308-0d34-0410-b5e6-96231b3b80d8
* * Added (X)Emacs mode for TableGen description filesMisha Brukman2003-08-113-1/+142
| | | | | | | | * Added README that describes how to use the mode files * Associated files with .llx extension with llvm-mode git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7738 91177308-0d34-0410-b5e6-96231b3b80d8
* tablegen.vim:Misha Brukman2003-08-112-4/+9
| | | | | | | | | | | | * Added keyword `field' * Keywords get different highlighting than types * Added a simple attempt at multi-line C-style comments with FIXME README: * Added note about symlinking an entire directory ~/.vim/syntax git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7733 91177308-0d34-0410-b5e6-96231b3b80d8
* Add .llxChris Lattner2003-08-111-0/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7732 91177308-0d34-0410-b5e6-96231b3b80d8
* Added a TableGen syntax highlighting mode for VIM and a README that describesMisha Brukman2003-08-112-0/+68
| | | | | | | how to add the functionality to the user's VIM installation. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7731 91177308-0d34-0410-b5e6-96231b3b80d8
* Don't forget to initializer result field to 0!Chris Lattner2003-08-111-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7729 91177308-0d34-0410-b5e6-96231b3b80d8
* Put printouts of acquired patterns under the DEBUG() guard, fixed spelling.Misha Brukman2003-08-111-2/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7723 91177308-0d34-0410-b5e6-96231b3b80d8
* Add full support for code generating expanders!Chris Lattner2003-08-102-35/+177
| | | | | | | This includes support for referencing named arguments. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7715 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement autopromotion of leaf trees from arguments to nodes of their own,Chris Lattner2003-08-102-13/+34
| | | | | | | making it easier to write patterns without lots of extraneous parens git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7714 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement correct parsing, representation, and printing of DAG argument namesChris Lattner2003-08-104-17/+45
| | | | | | | Implements testcase TableGen/TreeNames.td git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7713 91177308-0d34-0410-b5e6-96231b3b80d8
* Recognize $foo as a variableChris Lattner2003-08-102-1/+3
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7712 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement real code emission, at least for Instruction patterns,Chris Lattner2003-08-101-8/+81
| | | | | | | next up: support for expanders git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7710 91177308-0d34-0410-b5e6-96231b3b80d8
* First cut at emitting the reducer. This reducer just prints out the patternsChris Lattner2003-08-101-1/+69
| | | | | | | selected, but it seems to work great! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7709 91177308-0d34-0410-b5e6-96231b3b80d8
* Finish the matcher!Chris Lattner2003-08-102-37/+69
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7707 91177308-0d34-0410-b5e6-96231b3b80d8
* Add new functionChris Lattner2003-08-104-0/+38
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7706 91177308-0d34-0410-b5e6-96231b3b80d8
* This implements a large amount of the matcher, in fact, all of it except for ↵Chris Lattner2003-08-082-49/+379
| | | | | | one bug git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7702 91177308-0d34-0410-b5e6-96231b3b80d8
* Emit the first half of the instruction selector.Chris Lattner2003-08-082-4/+186
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7701 91177308-0d34-0410-b5e6-96231b3b80d8
* Finish implementation of nonterminal instantiation.Chris Lattner2003-08-072-21/+158
| | | | | | | Tree patterns are now, finally, ready to use! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7699 91177308-0d34-0410-b5e6-96231b3b80d8
* Add new method to get a value type as a stringChris Lattner2003-08-074-30/+40
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7698 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement type-inference/checking for non-terminal referencesChris Lattner2003-08-072-18/+53
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7686 91177308-0d34-0410-b5e6-96231b3b80d8
* Rename all of the "Process" methods to be "read" methods, start the ↵Chris Lattner2003-08-072-42/+49
| | | | | | Instantiate method git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7685 91177308-0d34-0410-b5e6-96231b3b80d8
* Add support for "cast" nodes, which are required when there is not enough ↵Chris Lattner2003-08-071-1/+24
| | | | | | | | | information to infer type type of all nodes, e.g. (ret imm) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7684 91177308-0d34-0410-b5e6-96231b3b80d8
* Use the new version of isSubClassOfChris Lattner2003-08-071-12/+11
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7683 91177308-0d34-0410-b5e6-96231b3b80d8
* Add and use a new methodChris Lattner2003-08-072-2/+8
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7682 91177308-0d34-0410-b5e6-96231b3b80d8
* Cleanup and reorganize code, no functional changesChris Lattner2003-08-072-83/+101
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7679 91177308-0d34-0410-b5e6-96231b3b80d8
* Read in expanders tooChris Lattner2003-08-072-4/+23
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7678 91177308-0d34-0410-b5e6-96231b3b80d8
* Continued evolution of the selector emitter: Represent instruction patternsChris Lattner2003-08-072-64/+189
| | | | | | | as first class objects git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7677 91177308-0d34-0410-b5e6-96231b3b80d8
* Finish implementation of the type inference engine.Chris Lattner2003-08-072-8/+36
| | | | | | | Start working on reading in nonterminals git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7671 91177308-0d34-0410-b5e6-96231b3b80d8
* Allow clients to get at the pointer typeChris Lattner2003-08-072-0/+4
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7670 91177308-0d34-0410-b5e6-96231b3b80d8
* Add new method getVAlueAsDagChris Lattner2003-08-072-3/+25
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7669 91177308-0d34-0410-b5e6-96231b3b80d8
* Initial checkin of tree pattern parser and type inference engine (which ↵Chris Lattner2003-08-072-3/+224
| | | | | | still needs work). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7668 91177308-0d34-0410-b5e6-96231b3b80d8
* Eliminate now-dead methodChris Lattner2003-08-072-12/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7667 91177308-0d34-0410-b5e6-96231b3b80d8
* Start using the CodeGeneratorWrappersChris Lattner2003-08-072-16/+16
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7666 91177308-0d34-0410-b5e6-96231b3b80d8
* Initial checkin of useful wrappers around the Target classes, for now, only ↵Chris Lattner2003-08-074-0/+236
| | | | | | | | | ValueType and Target are wrapped git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7665 91177308-0d34-0410-b5e6-96231b3b80d8
* Ick, add the RIGHT accessorChris Lattner2003-08-061-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7656 91177308-0d34-0410-b5e6-96231b3b80d8
* Add accessorChris Lattner2003-08-061-0/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7655 91177308-0d34-0410-b5e6-96231b3b80d8
* There is something wrong with code that looks like:Chris Lattner2003-08-061-13/+13
| | | | | | | | if (R == 0 || ...) R->getName() git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7654 91177308-0d34-0410-b5e6-96231b3b80d8
* Export the register classes so that the instruction selector can get at them ↵Chris Lattner2003-08-062-7/+30
| | | | | | as needed git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7651 91177308-0d34-0410-b5e6-96231b3b80d8