Robert Bocchino
cdd229a82e
Fixed Makefile so it does, indeed, build a dynamic library.
...
llvm-svn: 25135
2006-01-06 22:51:19 +00:00
Chris Lattner
525b923a8a
unbreak the build again
...
llvm-svn: 24041
2005-10-27 16:30:44 +00:00
Chris Lattner
6d92ce7be7
Make sure to build things in the right order, build with the .o file, not the
...
.a file to unbreak the build after john's change
llvm-svn: 24024
2005-10-27 00:53:16 +00:00
Chris Lattner
c64f3de8d5
use archives when possible
...
llvm-svn: 23932
2005-10-24 01:52:15 +00:00
Reid Spencer
dfb3fb4a25
Implement PR614:
...
These changes modify the makefiles so that the output of flex and bison are
placed in the SRC directory, not the OBJ directory. It is intended that they
be checked in as any other LLVM source so that platforms without convenient
access to flex/bison can be compiled. From now on, if you change a .y or
.l file you *must* also commit the generated .cpp and .h files.
llvm-svn: 23115
2005-08-27 18:50:39 +00:00
Andrew Lenharth
8c220defa8
oops
...
llvm-svn: 22334
2005-07-05 16:36:18 +00:00
Andrew Lenharth
a1f37d616e
updates
...
llvm-svn: 22333
2005-07-05 15:18:33 +00:00
Reid Spencer
ba1e216183
Make the value to -s not be interpreted as a file name
...
llvm-svn: 22134
2005-05-19 01:05:02 +00:00
Reid Spencer
33d07dc48f
Add an llvmc specification file for the "st" suffix. This allows Stacker
...
programs to benefit from the optimization capabilities of the llvmc.
llvm-svn: 22133
2005-05-19 00:54:10 +00:00
Reid Spencer
daeb5f0900
The previous hack didn't work because tools-only isn't defined and isn't
...
a target at this level of build. There shouldn't be a problem with building
the runtime library without llvm-gcc because the Makefile.rules checks
for an empty LLVMGCC variable before building bytecode modules.
llvm-svn: 21942
2005-05-13 17:42:54 +00:00
Reid Spencer
74905e0fb5
Don't build runtime if tools-only :)
...
llvm-svn: 21938
2005-05-13 16:17:58 +00:00
Reid Spencer
7063d1aa71
WHILE does not "pop" a value, it "examines" to top of stack. Make this
...
clear in the applicable comment.
llvm-svn: 21682
2005-05-04 15:33:48 +00:00
Jeff Cohen
8047f13a88
Eliminate tabs and trailing spaces
...
llvm-svn: 21479
2005-04-23 21:26:11 +00:00
Misha Brukman
b1c9317bb4
Remove trailing whitespace
...
llvm-svn: 21427
2005-04-21 23:48:37 +00:00
Alkis Evlogimenos
9ead0d7b4c
Rename createPromoteMemoryToRegister() to
...
createPromoteMemoryToRegisterPass() to be consistent with other pass
creation functions.
llvm-svn: 20885
2005-03-28 02:01:12 +00:00
Reid Spencer
206bed0b97
Update to reflect various changes in the autoconf directory. THe
...
recommended configuration of projects is now much simplified and depends
on LLVM file presence rather than local project file presence.
llvm-svn: 20312
2005-02-24 18:53:47 +00:00
Reid Spencer
51d736301a
Remove auxilliary files that are now picked up from llvm/autoconf. This
...
avoids version conflict problems with ltmain.sh (libtool), mkinstalldirs
and install-sh. This prevents projects from becoming stale when the LLVM
build system is upgraded or modified.
llvm-svn: 20311
2005-02-24 18:52:22 +00:00
Reid Spencer
0354a9ce35
* Move all the "standard" configuration stuff to the start of the file
...
* Make the auxilliary directory be llvm/autoconf not the project's
* Use the LLVM_CONFIG_PROJECT macro to get the --with-llvm{src,obj} args
llvm-svn: 20310
2005-02-24 18:50:53 +00:00
Reid Spencer
797f910736
Don't put generated files into CVS.
...
llvm-svn: 20309
2005-02-24 18:49:37 +00:00
Reid Spencer
07068a53ab
* Fix an output message
...
* Make aclocal look in LLVM's autoconf/m4 directory for macros
* Don't force generation of missing files
llvm-svn: 20307
2005-02-24 18:42:34 +00:00
Reid Spencer
9c7fbaef9b
Update makefile to use PROJ_* makefile variables intead of BUILD_* as
...
required by changes to the Makefile.rules. Patch contributed by Vladimir
Merzliakov.
llvm-svn: 20175
2005-02-14 16:04:28 +00:00
Reid Spencer
22978217af
Update per new Makefile requirements for projects
...
llvm-svn: 19594
2005-01-16 02:21:42 +00:00
Reid Spencer
0e48bf8a19
Rename BUILD_* to PROJ_*
...
llvm-svn: 19592
2005-01-16 02:21:29 +00:00
Reid Spencer
c770a0f243
Ignore autoconf/aclocal generated stuff.
...
llvm-svn: 19292
2005-01-05 17:26:00 +00:00
Reid Spencer
6a0c6f6bf1
Cleanup configuration for Cygwin
...
llvm-svn: 19284
2005-01-05 06:41:10 +00:00
Reid Spencer
9f0ce1772c
Ignore some files
...
llvm-svn: 19221
2005-01-01 18:14:18 +00:00
Reid Spencer
97d6cf262f
Update to autoconf 2.59 standards.
...
llvm-svn: 19207
2005-01-01 09:26:55 +00:00
Reid Spencer
c7f0a4733d
Clean up some autoconf cruft
...
* Make the source detection use a file unique to Stacker
* Configure Makefile.common.in with AC_CONFIG_FILES not AC_CONFIG_MAKEFILE
* Use new autoconf format for invoking AC_OUTPUT
llvm-svn: 19165
2004-12-27 08:51:55 +00:00
Reid Spencer
cceae4217f
Correct build script for stkr_runtime module
...
llvm-svn: 18526
2004-12-05 05:18:28 +00:00
Reid Spencer
d8d9fb325f
Build a module instead of a library so main() is not missed
...
llvm-svn: 18525
2004-12-05 05:18:16 +00:00
Reid Spencer
d3f2e95e6c
Add LLVMbzip2 library, now required.
...
llvm-svn: 18255
2004-11-25 20:22:06 +00:00
Reid Spencer
db7249e609
Use llvmc to compile test cases
...
llvm-svn: 18053
2004-11-20 21:03:34 +00:00
Reid Spencer
b2d0fa0823
Fix usage of changed function prototype
...
llvm-svn: 17798
2004-11-14 22:30:54 +00:00
Reid Spencer
a537198f2c
Change macro names per naming standard in Makefile.rules.
...
llvm-svn: 17361
2004-10-30 09:26:22 +00:00
Reid Spencer
f22aa469c9
Correct macro names per naming standard in Makefile.rules
...
llvm-svn: 17360
2004-10-30 09:25:27 +00:00
Reid Spencer
e6b944f2f5
Disable the build in the samples directory so that llvmc dependencies don't
...
mess up the build.
llvm-svn: 17342
2004-10-29 18:43:49 +00:00
Reid Spencer
8b091689db
Make sure the LLVM_CONFIG_DIR environment variable is set so we don't get
...
error messages from the compiler.
llvm-svn: 17335
2004-10-29 06:42:38 +00:00
Reid Spencer
8eb04a7713
Make sure the sources get distributed (use EXTRA_DIST)
...
Add the goof.st sample.
llvm-svn: 17312
2004-10-28 06:42:34 +00:00
Reid Spencer
47fcbef63e
Use llvmc to compile the Stacker programs
...
llvm-svn: 17300
2004-10-28 04:08:05 +00:00
Reid Spencer
0ac18e0385
Add the samples directory to the build
...
llvm-svn: 17299
2004-10-28 04:07:54 +00:00
Reid Spencer
4bc9b0ff4a
Get rid of drivel.
...
Ensure the lex/yacc output are specified as BUILT_SOURCES so they get
built first.
llvm-svn: 17290
2004-10-28 01:25:28 +00:00
Reid Spencer
57cbe39d1e
Change Library Names Not To Conflict With Others When Installed
...
llvm-svn: 17286
2004-10-27 23:18:45 +00:00
Reid Spencer
7e8825fc62
Make sure the samples and test directories get distributed.
...
llvm-svn: 17248
2004-10-26 07:04:18 +00:00
Reid Spencer
c6c87c1378
Make sure the include files get distributed.
...
llvm-svn: 17247
2004-10-26 07:03:39 +00:00
Reid Spencer
83e5e2801f
Fix nightly build by avoiding shared library construction.
...
llvm-svn: 17187
2004-10-23 15:30:30 +00:00
Reid Spencer
30d8baea8d
Adjust to changes in Makefile.rules
...
llvm-svn: 17167
2004-10-22 21:02:08 +00:00
Misha Brukman
8da107a68f
Remove exhuberant-style comments which remained from copying file from `sample'
...
llvm-svn: 16909
2004-10-11 00:56:41 +00:00
Misha Brukman
6e200dedd7
Fix file header comment; remove sample project (extra-verbose) comments
...
llvm-svn: 16908
2004-10-11 00:55:47 +00:00
Misha Brukman
e67286641e
Fix file header comment
...
llvm-svn: 16907
2004-10-11 00:54:59 +00:00
Chris Lattner
b0c8aab038
This pass is not needed, as there is only ever one global: the stack
...
llvm-svn: 16800
2004-10-07 04:10:36 +00:00
Reid Spencer
d684790778
Stacker compiler library doesn't need to be shared and it can cause
...
problems on some platforms (like Solaris).
llvm-svn: 16365
2004-09-15 06:22:54 +00:00
Reid Spencer
90a3303af7
Attempt to solve the libtool problem on Solaris.
...
llvm-svn: 16364
2004-09-15 06:19:53 +00:00
Misha Brukman
c1f7bb0238
The Sparc linking .so problem extends to the sample project as well
...
llvm-svn: 16342
2004-09-14 18:21:03 +00:00
Misha Brukman
77aedd18c7
Sparc cannot link shared objects (libtool issue) which affects Stacker.
...
llvm-svn: 16320
2004-09-13 22:42:54 +00:00
Reid Spencer
07e7a5ec18
Use llvm-link to link the .bc with testing.bc. This helps test the new
...
llvm-link dependent libraries feature.
llvm-svn: 16276
2004-09-11 04:15:09 +00:00
Reid Spencer
20f712853f
Added the configuration of the test/Makefile.
...
llvm-svn: 16185
2004-09-05 16:42:30 +00:00
Reid Spencer
738122ce2c
Make sure llvm-test doesn't build automatically so the nightly test can
...
finish its build phase without building and running all the tests.
llvm-svn: 16172
2004-09-04 23:07:57 +00:00
Reid Spencer
8ea6e94df9
Convert makefile to use standard LLVM macros for tool names
...
Utilize new stkrc -O4 option for optimization during translation.
llvm-svn: 16168
2004-09-04 20:13:54 +00:00
Reid Spencer
950d604ef9
Make Stacker into a complete project with its own configuration.
...
llvm-svn: 16167
2004-09-04 19:48:50 +00:00
Reid Spencer
fbd716d621
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.
llvm-svn: 16166
2004-09-04 19:07:32 +00:00
Reid Spencer
4771383e47
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.
llvm-svn: 16165
2004-09-04 19:05:53 +00:00
Reid Spencer
3f4bdc96fe
Uh, changing in build dir and committing in src dir doesn't lead to correct
...
commits. Fix it so it actually works.
llvm-svn: 16158
2004-09-03 22:28:24 +00:00
Reid Spencer
6d28a14133
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.
llvm-svn: 16157
2004-09-03 22:25:40 +00:00
Brian Gaeke
45fb84d68d
Unbreak build
...
llvm-svn: 16139
2004-09-02 03:24:08 +00:00
Reid Spencer
7c16caa336
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/.
llvm-svn: 16137
2004-09-01 22:55:40 +00:00
Nate Begeman
50d140ee3d
Must link against new LLVMsystem library
...
llvm-svn: 16104
2004-08-29 22:01:44 +00:00
Nate Begeman
a094704ff9
RemoveFileOnSignal is now in sys:: namespace
...
llvm-svn: 16103
2004-08-29 22:01:17 +00:00
Reid Spencer
f20d76d71e
Add dependent library support for Stacker. It now inserts "stkr_runtime" as
...
a dependent library.
llvm-svn: 16040
2004-08-24 22:52:01 +00:00
Reid Spencer
b987b7cede
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.
llvm-svn: 16002
2004-08-23 19:28:39 +00:00
Reid Spencer
06afee6ede
Change the makefile back so it descends any directory with a Makefile.
...
llvm-svn: 15999
2004-08-23 17:47:16 +00:00
Reid Spencer
2b4b4a577a
Avoid building samples. Require explicit list of directory names to build.
...
llvm-svn: 15937
2004-08-20 01:49:59 +00:00
Chris Lattner
ab8d172df2
Make people explicitly add dirs to this. Remove ModuleMaker as it currently
...
does not build (it must be configured before it will work)
llvm-svn: 15936
2004-08-20 01:11:16 +00:00
Chris Lattner
40d0204067
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
llvm-svn: 15935
2004-08-20 01:07:54 +00:00
Reid Spencer
90b057bf2a
Moved these files to "SmallExamples" directory.
...
llvm-svn: 15925
2004-08-19 20:16:42 +00:00
Reid Spencer
f30f28e05f
Add the fibonacci example provided by Valery Khamenya.
...
llvm-svn: 15924
2004-08-19 20:10:04 +00:00
Reid Spencer
7d12179af1
Make the SmallExamples programs compile in their new home.
...
llvm-svn: 15923
2004-08-19 20:09:14 +00:00
Chris Lattner
30411e0973
Switch to using the JIT now that it can directly call zeroarg functions
...
llvm-svn: 15795
2004-08-15 23:31:57 +00:00
Chris Lattner
f56b692110
Simplify code, make it print the constructed module before it is run.
...
llvm-svn: 15792
2004-08-15 23:21:54 +00:00
Reid Spencer
e66c307d2a
Fix a copy & paste error .. correct the description of the program.
...
llvm-svn: 15623
2004-08-10 19:18:51 +00:00
Reid Spencer
b8773e31d8
Adding a simple example of how to use the JIT.
...
Contributed by Valery A. Khamenya. THANKS, Valery!
llvm-svn: 15622
2004-08-10 19:14:36 +00:00
Misha Brukman
63b38bd2ed
Fix #includes of i*.h => Instructions.h as per PR403.
...
llvm-svn: 15334
2004-07-29 17:30:56 +00:00
Reid Spencer
c35d141fc8
Group the hidden command line arguments.
...
Make the -s option actually work and default to the right value.
llvm-svn: 14735
2004-07-10 23:35:46 +00:00
Reid Spencer
00fc1c5fa4
Add #include <iostream> since Value.h doesn't include it any more.
...
llvm-svn: 14624
2004-07-04 12:22:14 +00:00
Chris Lattner
781479c7d7
Add support for dos-style files
...
llvm-svn: 13840
2004-05-27 18:28:32 +00:00
Chris Lattner
84647525f6
Header moved
...
llvm-svn: 13812
2004-05-27 05:37:32 +00:00
Brian Gaeke
4db22f625e
Use inttypes.h, which exists on all of Linux, Solaris and Darwin.
...
llvm-svn: 13461
2004-05-11 16:14:53 +00:00
Chris Lattner
9dca2d7852
Unbreak the build on X86.
...
llvm-svn: 13460
2004-05-11 14:08:54 +00:00
Brian Gaeke
a9cfeeb826
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.
llvm-svn: 13459
2004-05-11 07:45:28 +00:00
Brian Gaeke
f120c9d69b
Do not hardcode the name of gcc, because its full pathname may have been
...
specified by top-level configure
llvm-svn: 13458
2004-05-11 07:42:58 +00:00
Brian Gaeke
b6b0f46220
Do not depend on the path to bash
...
llvm-svn: 13457
2004-05-11 07:42:19 +00:00
Brian Gaeke
940c2a8306
Include <sys/types.h> to get the definition of int64_t on Solaris.
...
llvm-svn: 13456
2004-05-11 07:18:02 +00:00
Reid Spencer
be4fadf1b8
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).
llvm-svn: 13441
2004-05-09 23:20:19 +00:00
Misha Brukman
cf2b18791a
If we're going to use tabs, use them consistently. Maybe doxygen will find the
...
@parameter line documentation that way, too.
llvm-svn: 12966
2004-04-15 15:38:48 +00:00
Chris Lattner
c0ba90e35c
Avoid TRUE and FALSE which apparently conflict with some macros on OSX
...
llvm-svn: 12566
2004-03-31 03:49:47 +00:00
Chris Lattner
c75bf528c1
Remove dependence on the return type of ConstantArray::get
...
llvm-svn: 11463
2004-02-15 04:05:58 +00:00
Brian Gaeke
09db53be57
Fix apparent copy-and-paste-o.
...
Get rid of %debug - Mac OS X bison doesn't have it. sigh.
llvm-svn: 10352
2003-12-10 04:33:07 +00:00
Chris Lattner
b662b064f6
Add a missing semi colon, which breaks bison 1.5
...
llvm-svn: 10325
2003-12-08 20:15:33 +00:00
Chris Lattner
bd7356a5d3
Makefile updates contributed by Reid
...
llvm-svn: 10317
2003-12-08 07:08:00 +00:00
Chris Lattner
2a7033255e
* Squelch warning on Sun
...
* stdlib and friends are system headers
* 'long long' is the type that consistently turns into the LLVM 'long' type.
llvm-svn: 10241
2003-11-27 07:48:45 +00:00
John Criswell
4d29d2d222
Adjusted the projects Makefile so that it picks up the name of projects
...
by scanning the source tree (not the object tree).
llvm-svn: 10223
2003-11-25 20:37:45 +00:00
John Criswell
ec83537e24
Configure script for ModuleMaker.
...
llvm-svn: 10216
2003-11-25 20:02:07 +00:00
John Criswell
7cf9343ff2
Auto-confed ModuleMaker.
...
llvm-svn: 10215
2003-11-25 19:59:59 +00:00
John Criswell
f7f165d79b
Auto-conf'ed the ModuleMaker code.
...
Moved Makefile.common to Makefile.common.in.
llvm-svn: 10214
2003-11-25 19:59:21 +00:00
Brian Gaeke
49f7a39017
Apply patches from PR136
...
llvm-svn: 10192
2003-11-24 02:57:25 +00:00
Chris Lattner
d23b79e525
Add a script I missed
...
llvm-svn: 10188
2003-11-23 18:12:51 +00:00
Chris Lattner
6484bf7423
Checkin tests
...
llvm-svn: 10187
2003-11-23 18:12:22 +00:00
Chris Lattner
75759839b2
Disable test.
...
llvm-svn: 10186
2003-11-23 18:10:25 +00:00
Chris Lattner
210bccc1c2
Fix these assertions:
...
stkrc -e -f -o testing.bc testing.st
Global is external, but doesn't have external linkage!
[1024 x int]* %_stack_
Global is external, but doesn't have external linkage!
long* %_index_
Broken module found, compilation aborted!
llvm-svn: 10185
2003-11-23 18:06:37 +00:00
Chris Lattner
3425ec0764
Checkin the stacker compiler
...
llvm-svn: 10184
2003-11-23 18:01:26 +00:00
Chris Lattner
f2f20d2940
Fix file header
...
llvm-svn: 10183
2003-11-23 17:59:43 +00:00
Chris Lattner
67ac5055cf
Initial checkin
...
llvm-svn: 10182
2003-11-23 17:58:46 +00:00
Chris Lattner
1a12f7c9ca
Initial checkin of stacker samples
...
llvm-svn: 10181
2003-11-23 17:55:19 +00:00
Chris Lattner
ce06685210
Adjust file header
...
llvm-svn: 10180
2003-11-23 17:54:18 +00:00
Chris Lattner
3e6e58efc0
Initial checkin of stacker runtime
...
llvm-svn: 10179
2003-11-23 17:53:46 +00:00
Chris Lattner
42472ef3bc
Initial stacker checkin
...
llvm-svn: 10178
2003-11-23 17:52:55 +00:00
Chris Lattner
cea87e289f
Update file header
...
llvm-svn: 10177
2003-11-23 17:51:56 +00:00
Chris Lattner
4594ed9048
initial checkin of stacker makefile
...
llvm-svn: 10176
2003-11-23 17:51:37 +00:00
Brian Gaeke
960707c335
Put all LLVM code into the llvm namespace, as per bug 109.
...
llvm-svn: 9903
2003-11-11 22:41:34 +00:00
John Criswell
3ea4445600
Removed LLVM copyright from sample Makefile.
...
llvm-svn: 9326
2003-10-21 15:33:12 +00:00
John Criswell
f9924ce362
Removed LLVM copyright notice from sample Makefile.
...
llvm-svn: 9325
2003-10-21 15:31:36 +00:00
John Criswell
ac028f18af
Added LLVM copyrights to Makefiles.
...
llvm-svn: 9313
2003-10-20 22:28:01 +00:00
John Criswell
7d13d565af
Adding license information for the sample project.
...
llvm-svn: 9209
2003-10-17 21:37:26 +00:00
John Criswell
b9c70bb653
Modified the Makefile so that the sample library is linked dynamically.
...
llvm-svn: 9194
2003-10-17 17:47:08 +00:00
John Criswell
dd8d7829b3
Adding autoconf support to the sample project.
...
llvm-svn: 9150
2003-10-16 01:45:35 +00:00
John Criswell
419c0dab18
Adding autoconf support for the sample project.
...
This should make setting up a new project much easier.
llvm-svn: 9149
2003-10-16 01:45:10 +00:00
John Criswell
334a2ed2d1
Adding autoconf support for the sample project.
...
llvm-svn: 9148
2003-10-16 01:44:20 +00:00
John Criswell
bc4511c074
Checkin of autoconf-style object root.
...
Modified Makefiles to use the new Makefile setup in LLVM.
llvm-svn: 8380
2003-09-06 15:03:24 +00:00
Chris Lattner
cc4685a15e
Initial checkin
...
llvm-svn: 8039
2003-08-21 22:33:59 +00:00
Chris Lattner
3397792731
Initial checkin of ModuleMaker project
...
llvm-svn: 8036
2003-08-21 22:29:52 +00:00
Chris Lattner
ce4e6ee671
Remove commented out declaration
...
llvm-svn: 8032
2003-08-21 22:22:24 +00:00
Chris Lattner
256e28f916
Disable sample project until it works
...
llvm-svn: 7287
2003-07-23 23:28:57 +00:00
John Criswell
e17afeb1b4
Adding in sample project tree.
...
llvm-svn: 7018
2003-06-30 22:13:48 +00:00
John Criswell
568d13cf93
Adding in projects subtree.
...
llvm-svn: 7017
2003-06-30 22:12:19 +00:00