summaryrefslogtreecommitdiff
path: root/utils/TableGen
Commit message (Collapse)AuthorAge
* Added an option to TableGen that allows users to specify a directory in whichJohn Criswell2003-08-27
| | | | | | | | | | | to find include files. TableGen will load include files from this directory if it cannot find them in the current directory. This feature was needed for building code inside the object tree (a la autoconf style). TODO: Allow for multiple -I options to specify a list of directories to search. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8159 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix warning on sparc buildChris Lattner2003-08-21
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8006 91177308-0d34-0410-b5e6-96231b3b80d8
* Added #include <cassert>. In GCC 3.3, we don't get assert() through the otherJohn Criswell2003-08-20
| | | | | | | | language header files like we did under 3.2.1, and we're not grabbing it through the LLVM header files either. So just include it directly. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7996 91177308-0d34-0410-b5e6-96231b3b80d8
* X86.td has been moved out of this directory; these are outdated targets.Misha Brukman2003-08-19
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7971 91177308-0d34-0410-b5e6-96231b3b80d8
* Spell `necessary' correctly.Misha Brukman2003-08-18
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7944 91177308-0d34-0410-b5e6-96231b3b80d8
* Ignore dummy register classesChris Lattner2003-08-15
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7871 91177308-0d34-0410-b5e6-96231b3b80d8
* Add support for nodes with void arguments, like chain nodesChris Lattner2003-08-15
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7869 91177308-0d34-0410-b5e6-96231b3b80d8
* Using `std::remove' requires `cstdio.h'.Misha Brukman2003-08-14
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7843 91177308-0d34-0410-b5e6-96231b3b80d8
* Using std::string requires `#include <string>', says gcc-2.95.3.Misha Brukman2003-08-13
| | | | 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-12
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7771 91177308-0d34-0410-b5e6-96231b3b80d8
* Add support for the Any type. Minor fixes and enhancements for BasicBlock ↵Chris Lattner2003-08-12
| | | | | | 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-12
| | | | 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-12
| | | | 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-11
| | | | 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-11
| | | | 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-11
| | | | 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-11
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7747 91177308-0d34-0410-b5e6-96231b3b80d8
* Don't forget to initializer result field to 0!Chris Lattner2003-08-11
| | | | 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-11
| | | | 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-10
| | | | | | | 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-10
| | | | | | | 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-10
| | | | | | | 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-10
| | | | 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-10
| | | | | | | 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-10
| | | | | | | 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-10
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7707 91177308-0d34-0410-b5e6-96231b3b80d8
* Add new functionChris Lattner2003-08-10
| | | | 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-08
| | | | | | 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-08
| | | | 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-07
| | | | | | | 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-07
| | | | 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-07
| | | | 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-07
| | | | | | 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-07
| | | | | | | | | 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-07
| | | | 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-07
| | | | 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-07
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7679 91177308-0d34-0410-b5e6-96231b3b80d8
* Read in expanders tooChris Lattner2003-08-07
| | | | 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-07
| | | | | | | 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-07
| | | | | | | 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-07
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7670 91177308-0d34-0410-b5e6-96231b3b80d8
* Add new method getVAlueAsDagChris Lattner2003-08-07
| | | | 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-07
| | | | | | 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-07
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7667 91177308-0d34-0410-b5e6-96231b3b80d8
* Start using the CodeGeneratorWrappersChris Lattner2003-08-07
| | | | 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-07
| | | | | | | | | 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-06
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7656 91177308-0d34-0410-b5e6-96231b3b80d8
* Add accessorChris Lattner2003-08-06
| | | | 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-06
| | | | | | | | 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-06
| | | | | | as needed git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7651 91177308-0d34-0410-b5e6-96231b3b80d8