Commit Graph

312 Commits

Author SHA1 Message Date
John Criswell bfaf312532 Updated the log of changes (as required by the Burg copyright) to give an
overview of what we changed (which is probably all that the author was looking
for).

llvm-svn: 8416
2003-09-09 15:27:40 +00:00
John Criswell 3f699cdef5 Modified the code so that we exit() with a non-zero value instead of calling
abort() when we can't open the input filename.  The abort() function generates
a core dump if possible and is meant for handling errors so grand that even the
program knows that debugging is necessary.

llvm-svn: 8415
2003-09-09 14:37:48 +00:00
Misha Brukman 69631185a0 Fixed spelling of `intentionally'.
llvm-svn: 8387
2003-09-07 20:12:52 +00:00
Chris Lattner 54e3d71d8e Remove unneeded #include
llvm-svn: 8386
2003-09-07 05:09:32 +00:00
John Criswell de455b46d5 Checkin of autoconf-style object root.
Updated Makefile for new autoconf-style object root.

llvm-svn: 8385
2003-09-06 15:20:15 +00:00
John Criswell b83a22bd82 Added the MakeFileReadable() method.
llvm-svn: 8327
2003-09-02 21:09:30 +00:00
John Criswell 44375ca7d6 Added a description of the algorithm.
Return failure if the chmod() fails.

llvm-svn: 8326
2003-09-02 20:30:16 +00:00
John Criswell 5357283c7a Added the MakeFileExecutable() method. This method takes a filename and
gives it execute access while respecting the user's umask.

llvm-svn: 8324
2003-09-02 20:14:57 +00:00
John Criswell 3ec1fab3ad Added an option to TableGen that allows users to specify a directory in which
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.

llvm-svn: 8159
2003-08-27 13:41:57 +00:00
Chris Lattner 9527fea3a1 Mangle ALL letters that we do not allow, not just a few.
llvm-svn: 8140
2003-08-24 21:08:38 +00:00
Chris Lattner bc9c1bc3c7 Ignore more
llvm-svn: 8081
2003-08-23 20:35:08 +00:00
Chris Lattner 32db9de2ff Initial checkin of ValueHolder helper
llvm-svn: 8072
2003-08-23 19:43:16 +00:00
Chris Lattner f02da5ba9d Only use :: rules for #included files
llvm-svn: 8026
2003-08-21 21:47:12 +00:00
Chris Lattner 9bc7626fa8 Fix warning on sparc build
llvm-svn: 8006
2003-08-21 15:59:16 +00:00
John Criswell 29dd381feb Added #include <cassert>. In GCC 3.3, we don't get assert() through the other
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.

llvm-svn: 7996
2003-08-20 22:07:45 +00:00
Misha Brukman 94a1813fed X86.td has been moved out of this directory; these are outdated targets.
llvm-svn: 7971
2003-08-19 16:11:38 +00:00
Misha Brukman 7eb05a170a Spell `necessary' correctly.
llvm-svn: 7944
2003-08-18 14:43:39 +00:00
Brian Gaeke 497216dc00 lib/Support/CommandLine.cpp:
Many changes suggested by Chris. It's okay, I'll recover from the emotional
damage...maybe someday. :-)

Collapse ParseCStringVector into ParseStringVector.  Comment it.
Make it take a const input.
Use std::string::npos instead of -1 (what a mouthful!)
Make ParseEnvironmentOptions take const inputs.
Check its args at the very beginning.
Strdup all the contents of newArgv and free them all at the end.

include/Support/CommandLine.h:
Constify progName and envVar arguments to ParseEnvironmentOptions().

llvm-svn: 7905
2003-08-15 21:05:57 +00:00
Chris Lattner eb745be508 Ignore dummy register classes
llvm-svn: 7871
2003-08-15 04:36:19 +00:00
Chris Lattner 32dd756809 Add support for nodes with void arguments, like chain nodes
llvm-svn: 7869
2003-08-15 04:28:04 +00:00
Brian Gaeke ca782d9fe6 Add support for reading command line arguments from an environment variable.
llvm-svn: 7851
2003-08-14 22:00:59 +00:00
Misha Brukman 71e5ae9349 Using `std::remove' requires `cstdio.h'.
llvm-svn: 7843
2003-08-14 16:05:35 +00:00
Misha Brukman 0fe23478bf Using std::string requires `#include <string>', says gcc-2.95.3.
llvm-svn: 7833
2003-08-13 22:27:15 +00:00
Chris Lattner afa3ec446c This file uses stable_sort
llvm-svn: 7831
2003-08-13 21:32:37 +00:00
Chris Lattner 291675b34d Reenable optimized build
llvm-svn: 7788
2003-08-12 20:46:50 +00:00
Chris Lattner e5b8234685 Fix emission of instructions that directly reference MBBs
llvm-svn: 7771
2003-08-12 05:19:49 +00:00
Chris Lattner 0e3ec2c1bf Add support for the Any type. Minor fixes and enhancements for BasicBlock operands
llvm-svn: 7769
2003-08-12 04:56:42 +00:00
Chris Lattner 58dc2187ac Rename DNVT_bool to DNVT_i1 to be consistent with type system
llvm-svn: 7768
2003-08-12 04:28:21 +00:00
Chris Lattner 045049beb9 Add support for a bool argty
llvm-svn: 7766
2003-08-12 04:12:42 +00:00
Chris Lattner 4bdec32446 It is not an error if a rule does not match, it's just a failed match!
llvm-svn: 7761
2003-08-11 22:30:51 +00:00
Chris Lattner e021bceb18 Add support for frameidx and literal immediates for instructions
llvm-svn: 7749
2003-08-11 21:28:59 +00:00
Chris Lattner 03d00fe39a Add support for naming the destination of a "set" in a pattern
llvm-svn: 7748
2003-08-11 20:32:02 +00:00
Chris Lattner bb9dfb0782 Add support for the Arg1 argument type
llvm-svn: 7747
2003-08-11 20:25:52 +00:00
Chris Lattner ce200422d4 Add support to the mangler for targets which require _'s on global symbols
llvm-svn: 7741
2003-08-11 19:34:29 +00:00
Chris Lattner 1d0e9841b9 Don't forget to initializer result field to 0!
llvm-svn: 7729
2003-08-11 15:47:35 +00:00
Misha Brukman 6a8d5b8186 Put printouts of acquired patterns under the DEBUG() guard, fixed spelling.
llvm-svn: 7723
2003-08-11 15:16:12 +00:00
Chris Lattner 254980008b Add full support for code generating expanders!
This includes support for referencing named arguments.

llvm-svn: 7715
2003-08-10 23:51:52 +00:00
Chris Lattner 1bce0f268b Implement autopromotion of leaf trees from arguments to nodes of their own,
making it easier to write patterns without lots of extraneous parens

llvm-svn: 7714
2003-08-10 22:38:36 +00:00
Chris Lattner 3859c9a8db Implement correct parsing, representation, and printing of DAG argument names
Implements testcase TableGen/TreeNames.td

llvm-svn: 7713
2003-08-10 22:14:13 +00:00
Chris Lattner 4eaf72fc3b Recognize $foo as a variable
llvm-svn: 7712
2003-08-10 22:04:25 +00:00
Chris Lattner 5223d51aac Implement real code emission, at least for Instruction patterns,
next up: support for expanders

llvm-svn: 7710
2003-08-10 21:54:43 +00:00
Chris Lattner 0e00f36924 First cut at emitting the reducer. This reducer just prints out the patterns
selected, but it seems to work great!

llvm-svn: 7709
2003-08-10 20:34:13 +00:00
Chris Lattner d2ec0bd8f0 Finish the matcher!
llvm-svn: 7707
2003-08-10 19:50:51 +00:00
Chris Lattner 12a19fda99 Add new function
llvm-svn: 7706
2003-08-10 19:50:32 +00:00
Chris Lattner 575288e02d This implements a large amount of the matcher, in fact, all of it except for one bug
llvm-svn: 7702
2003-08-08 22:29:23 +00:00
Chris Lattner 1ac45ba538 Emit the first half of the instruction selector.
llvm-svn: 7701
2003-08-08 16:30:10 +00:00
Chris Lattner 4d8ba42bc4 Finish implementation of nonterminal instantiation.
Tree patterns are now, finally, ready to use!

llvm-svn: 7699
2003-08-07 23:16:20 +00:00
Chris Lattner fe64759b2c Add new method to get a value type as a string
llvm-svn: 7698
2003-08-07 23:15:21 +00:00
Misha Brukman c231c0889e close() requires "unistd.h" .
llvm-svn: 7695
2003-08-07 21:35:41 +00:00
Misha Brukman e4d58ec261 Doxygen-ify the comments by using '///' instead of '//'.
llvm-svn: 7694
2003-08-07 21:34:25 +00:00