Commit Graph

87 Commits

Author SHA1 Message Date
Misha Brukman
e1616bf0ca Remove exhuberant-style comments which remained from copying file from `sample'
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16909 91177308-0d34-0410-b5e6-96231b3b80d8
2004-10-11 00:56:41 +00:00
Misha Brukman
2b8f30c459 Fix file header comment; remove sample project (extra-verbose) comments
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16908 91177308-0d34-0410-b5e6-96231b3b80d8
2004-10-11 00:55:47 +00:00
Misha Brukman
17e9acd059 Fix file header comment
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16907 91177308-0d34-0410-b5e6-96231b3b80d8
2004-10-11 00:54:59 +00:00
Chris Lattner
8ecaccebf1 This pass is not needed, as there is only ever one global: the stack
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16800 91177308-0d34-0410-b5e6-96231b3b80d8
2004-10-07 04:10:36 +00:00
Reid Spencer
d27d1b9975 Stacker compiler library doesn't need to be shared and it can cause
problems on some platforms (like Solaris).


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16365 91177308-0d34-0410-b5e6-96231b3b80d8
2004-09-15 06:22:54 +00:00
Reid Spencer
011f5ca2ca Attempt to solve the libtool problem on Solaris.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16364 91177308-0d34-0410-b5e6-96231b3b80d8
2004-09-15 06:19:53 +00:00
Misha Brukman
1cf70ff8d5 The Sparc linking .so problem extends to the sample project as well
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16342 91177308-0d34-0410-b5e6-96231b3b80d8
2004-09-14 18:21:03 +00:00
Misha Brukman
b9210123a9 Sparc cannot link shared objects (libtool issue) which affects Stacker.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16320 91177308-0d34-0410-b5e6-96231b3b80d8
2004-09-13 22:42:54 +00:00
Reid Spencer
1694eec4af Use llvm-link to link the .bc with testing.bc. This helps test the new
llvm-link dependent libraries feature.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16276 91177308-0d34-0410-b5e6-96231b3b80d8
2004-09-11 04:15:09 +00:00
Reid Spencer
e07d9aa1d1 Added the configuration of the test/Makefile.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16185 91177308-0d34-0410-b5e6-96231b3b80d8
2004-09-05 16:42:30 +00:00
Reid Spencer
d1011c2ca7 Make sure llvm-test doesn't build automatically so the nightly test can
finish its build phase without building and running all the tests.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16172 91177308-0d34-0410-b5e6-96231b3b80d8
2004-09-04 23:07:57 +00:00
Reid Spencer
39dcf0e016 Convert makefile to use standard LLVM macros for tool names
Utilize new stkrc -O4 option for optimization during translation.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16168 91177308-0d34-0410-b5e6-96231b3b80d8
2004-09-04 20:13:54 +00:00
Reid Spencer
820dab7a62 Make Stacker into a complete project with its own configuration.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16167 91177308-0d34-0410-b5e6-96231b3b80d8
2004-09-04 19:48:50 +00:00
Reid Spencer
c37a506d44 Make the StackerCompiler and optimizing translator by running specific
optimizations after construction of the Module. The OptLevel argument
to the compile function controls the level of optimization.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16166 91177308-0d34-0410-b5e6-96231b3b80d8
2004-09-04 19:07:32 +00:00
Reid Spencer
2c711577ab Make the Stacker compiler handle -O1 .. -O5 options so it is compliant with
the compiler driver interface as an optimizing translator. Also clean up
error message handling.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16165 91177308-0d34-0410-b5e6-96231b3b80d8
2004-09-04 19:05:53 +00:00
Reid Spencer
9c3c65806f Uh, changing in build dir and committing in src dir doesn't lead to correct
commits. Fix it so it actually works.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16158 91177308-0d34-0410-b5e6-96231b3b80d8
2004-09-03 22:28:24 +00:00
Reid Spencer
1d009bbbbd Correct the specification of the DIRS variable to not include the source
directory prefix, just the name of the subdirectory. This prevents the
makefile from trying to find makefiles (like Makefile.common) in the wrong
place.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16157 91177308-0d34-0410-b5e6-96231b3b80d8
2004-09-03 22:25:40 +00:00
Brian Gaeke
065b648732 Unbreak build
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16139 91177308-0d34-0410-b5e6-96231b3b80d8
2004-09-02 03:24:08 +00:00
Reid Spencer
551ccae044 Changes For Bug 352
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/.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16137 91177308-0d34-0410-b5e6-96231b3b80d8
2004-09-01 22:55:40 +00:00
Nate Begeman
2a42e80eda Must link against new LLVMsystem library
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16104 91177308-0d34-0410-b5e6-96231b3b80d8
2004-08-29 22:01:44 +00:00
Nate Begeman
2f795cf12e RemoveFileOnSignal is now in sys:: namespace
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16103 91177308-0d34-0410-b5e6-96231b3b80d8
2004-08-29 22:01:17 +00:00
Reid Spencer
bef77ec085 Add dependent library support for Stacker. It now inserts "stkr_runtime" as
a dependent library.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16040 91177308-0d34-0410-b5e6-96231b3b80d8
2004-08-24 22:52:01 +00:00
Reid Spencer
157b956e42 Moved the "SmallExamples" out of the /projects directory and into a new
/examples directory. History was maintained. These programs do not need to
be configured but things in /projects must be.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16002 91177308-0d34-0410-b5e6-96231b3b80d8
2004-08-23 19:28:39 +00:00
Reid Spencer
7bf5dd3990 Change the makefile back so it descends any directory with a Makefile.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15999 91177308-0d34-0410-b5e6-96231b3b80d8
2004-08-23 17:47:16 +00:00
Reid Spencer
4e5b9e136f Avoid building samples. Require explicit list of directory names to build.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15937 91177308-0d34-0410-b5e6-96231b3b80d8
2004-08-20 01:49:59 +00:00
Chris Lattner
1c54afa431 Make people explicitly add dirs to this. Remove ModuleMaker as it currently
does not build (it must be configured before it will work)


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15936 91177308-0d34-0410-b5e6-96231b3b80d8
2004-08-20 01:11:16 +00:00
Chris Lattner
cd8cf63b94 Only build project dirs with a Makefile in them. This should fix the
problem where Depend or Debug directories prevent CVS from nuking an obsolete
project dir


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15935 91177308-0d34-0410-b5e6-96231b3b80d8
2004-08-20 01:07:54 +00:00
Reid Spencer
903990df33 Moved these files to "SmallExamples" directory.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15925 91177308-0d34-0410-b5e6-96231b3b80d8
2004-08-19 20:16:42 +00:00
Reid Spencer
e784fa40c5 Add the fibonacci example provided by Valery Khamenya.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15924 91177308-0d34-0410-b5e6-96231b3b80d8
2004-08-19 20:10:04 +00:00
Reid Spencer
f3b4755aa0 Make the SmallExamples programs compile in their new home.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15923 91177308-0d34-0410-b5e6-96231b3b80d8
2004-08-19 20:09:14 +00:00
Chris Lattner
95f114c5a9 Switch to using the JIT now that it can directly call zeroarg functions
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15795 91177308-0d34-0410-b5e6-96231b3b80d8
2004-08-15 23:31:57 +00:00
Chris Lattner
e8bf58c170 Simplify code, make it print the constructed module before it is run.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15792 91177308-0d34-0410-b5e6-96231b3b80d8
2004-08-15 23:21:54 +00:00
Reid Spencer
54706d6801 Fix a copy & paste error .. correct the description of the program.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15623 91177308-0d34-0410-b5e6-96231b3b80d8
2004-08-10 19:18:51 +00:00
Reid Spencer
26a4ba73d3 Adding a simple example of how to use the JIT.
Contributed by Valery A. Khamenya. THANKS, Valery!


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15622 91177308-0d34-0410-b5e6-96231b3b80d8
2004-08-10 19:14:36 +00:00
Misha Brukman
47b14a4a6a Fix #includes of i*.h => Instructions.h as per PR403.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15334 91177308-0d34-0410-b5e6-96231b3b80d8
2004-07-29 17:30:56 +00:00
Reid Spencer
6220aa8453 Group the hidden command line arguments.
Make the -s option actually work and default to the right value.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14735 91177308-0d34-0410-b5e6-96231b3b80d8
2004-07-10 23:35:46 +00:00
Reid Spencer
321f8319da Add #include <iostream> since Value.h doesn't include it any more.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14624 91177308-0d34-0410-b5e6-96231b3b80d8
2004-07-04 12:22:14 +00:00
Chris Lattner
12fe669203 Add support for dos-style files
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13840 91177308-0d34-0410-b5e6-96231b3b80d8
2004-05-27 18:28:32 +00:00
Chris Lattner
6f9e6074a9 Header moved
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13812 91177308-0d34-0410-b5e6-96231b3b80d8
2004-05-27 05:37:32 +00:00
Brian Gaeke
379b380a8b Use inttypes.h, which exists on all of Linux, Solaris and Darwin.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13461 91177308-0d34-0410-b5e6-96231b3b80d8
2004-05-11 16:14:53 +00:00
Chris Lattner
3528a4be8e Unbreak the build on X86.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13460 91177308-0d34-0410-b5e6-96231b3b80d8
2004-05-11 14:08:54 +00:00
Brian Gaeke
a7750fc61f Squash warnings on Solaris/sparc... the test suite is not working for me so I
can't be sure if these are OK, but they look OK.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13459 91177308-0d34-0410-b5e6-96231b3b80d8
2004-05-11 07:45:28 +00:00
Brian Gaeke
2928a169bb Do not hardcode the name of gcc, because its full pathname may have been
specified by top-level configure


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13458 91177308-0d34-0410-b5e6-96231b3b80d8
2004-05-11 07:42:58 +00:00
Brian Gaeke
8c603ef339 Do not depend on the path to bash
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13457 91177308-0d34-0410-b5e6-96231b3b80d8
2004-05-11 07:42:19 +00:00
Brian Gaeke
c66d8b0aca Include <sys/types.h> to get the definition of int64_t on Solaris.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13456 91177308-0d34-0410-b5e6-96231b3b80d8
2004-05-11 07:18:02 +00:00
Reid Spencer
dc8e6b59e7 Changes to make the Stacker Stack use 64 bit values. This *should* get
around the problem with Stacker on Solaris because the Stack can handle
64-bit entries (pointer sized).


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13441 91177308-0d34-0410-b5e6-96231b3b80d8
2004-05-09 23:20:19 +00:00
Misha Brukman
e803682f9a If we're going to use tabs, use them consistently. Maybe doxygen will find the
@parameter line documentation that way, too.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12966 91177308-0d34-0410-b5e6-96231b3b80d8
2004-04-15 15:38:48 +00:00
Chris Lattner
91ef460285 Avoid TRUE and FALSE which apparently conflict with some macros on OSX
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12566 91177308-0d34-0410-b5e6-96231b3b80d8
2004-03-31 03:49:47 +00:00
Chris Lattner
371064481a Remove dependence on the return type of ConstantArray::get
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11463 91177308-0d34-0410-b5e6-96231b3b80d8
2004-02-15 04:05:58 +00:00
Brian Gaeke
c745b4950d Fix apparent copy-and-paste-o.
Get rid of %debug - Mac OS X bison doesn't have it.  sigh.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10352 91177308-0d34-0410-b5e6-96231b3b80d8
2003-12-10 04:33:07 +00:00