Commit Graph

7571 Commits

Author SHA1 Message Date
Chris Lattner 88e7d59316 Add versions of InlineFunction which work on Invoke instructions and general call sites
llvm-svn: 8105
2003-08-24 06:58:32 +00:00
Chris Lattner ca3e569269 Fix copy-and-paste-o
llvm-svn: 8104
2003-08-24 06:57:53 +00:00
Chris Lattner 0f12ef6289 New testcases for inlining invoke instructions
llvm-svn: 8103
2003-08-24 06:55:07 +00:00
Chris Lattner ade9410c99 Initial support for recognizing LLVM exception handling intrinsics
llvm-svn: 8102
2003-08-24 05:30:29 +00:00
Chris Lattner 9c5bfd0f80 Big diff for a small change: delete inlined functions if all callees have
inlined the function.
Implements: Inline/inline_dce.ll

llvm-svn: 8101
2003-08-24 05:03:14 +00:00
Chris Lattner 1f71401180 New testcase
llvm-svn: 8100
2003-08-24 05:02:26 +00:00
Chris Lattner fc3fe5cd75 Implement: Inline/cfg_preserve_test.ll
llvm-svn: 8099
2003-08-24 04:06:56 +00:00
Chris Lattner 58dfca7d4a new testcase
llvm-svn: 8098
2003-08-24 04:06:04 +00:00
Chris Lattner 6d5693566f Allow specifying the name for the newly split basic block
llvm-svn: 8097
2003-08-24 03:41:39 +00:00
Chris Lattner 9fa8906009 New testcase, distilled from 176.gcc
llvm-svn: 8096
2003-08-24 00:21:50 +00:00
Chris Lattner e6235443a5 Fix bug: Jello/2003-08-23-RegisterAllocatePhysReg.ll
llvm-svn: 8095
2003-08-23 23:49:42 +00:00
Chris Lattner 3be2088ae7 new testcase distilled from 176.gcc
llvm-svn: 8094
2003-08-23 23:38:59 +00:00
Chris Lattner c54d608377 Implement SimplifyCFG/2003-08-17-FoldSwitch.ll:test5
llvm-svn: 8093
2003-08-23 23:18:19 +00:00
Chris Lattner b42ef2dbdb Add a new switch folding testcase
llvm-svn: 8092
2003-08-23 23:17:59 +00:00
Chris Lattner a541e80b3c Add new label
llvm-svn: 8091
2003-08-23 23:16:37 +00:00
Chris Lattner 4f9247c937 Add period
llvm-svn: 8090
2003-08-23 23:15:10 +00:00
Chris Lattner 6a2b859191 Rename SwitchInst::dest_push_back -> addCase
llvm-svn: 8089
2003-08-23 23:14:52 +00:00
Chris Lattner 180e14cb87 Rename SwitchInst::dest_push_back -> addCase
Add new removeCase method

llvm-svn: 8088
2003-08-23 23:14:37 +00:00
Chris Lattner f1b1c5ec2f Fix bug: LowerSwitch/2003-08-23-EmptySwitch.ll
llvm-svn: 8087
2003-08-23 22:54:34 +00:00
Chris Lattner 1a6242154e New testcase
llvm-svn: 8086
2003-08-23 22:43:42 +00:00
Chris Lattner 10887b41c1 New testcase
llvm-svn: 8085
2003-08-23 22:09:26 +00:00
Chris Lattner 02da0ef418 Do not consider any types that exist in the global symbol table!
llvm-svn: 8084
2003-08-23 21:32:24 +00:00
Chris Lattner f38c0483ba Fix bug: Linker/2003-08-23-RecursiveOpaqueTypeResolve.ll
llvm-svn: 8083
2003-08-23 21:25:54 +00:00
Chris Lattner 9b11f0515b New testcase, which causes the linker to segv.
llvm-svn: 8082
2003-08-23 21:13:26 +00:00
Chris Lattner bc9c1bc3c7 Ignore more
llvm-svn: 8081
2003-08-23 20:35:08 +00:00
Chris Lattner 31de50ab44 Implement Linker/2003-08-23-GlobalVarLinking.ll, which should fix 176.gcc
llvm-svn: 8080
2003-08-23 20:31:10 +00:00
Chris Lattner b7408ec7ed Test functions as well as globals
llvm-svn: 8079
2003-08-23 20:30:29 +00:00
Chris Lattner bb4dd7ed34 Fix bug: TailDup/2003-08-23-InvalidatedPointers.ll
llvm-svn: 8078
2003-08-23 20:08:30 +00:00
Chris Lattner a476e2d30b Of course, the copy ctor really should copy the operand as well
llvm-svn: 8077
2003-08-23 20:06:38 +00:00
Chris Lattner 6fc0ee9901 Fix bug: FunctionResolve/2003-08-23-ArgumentWarning.ll
llvm-svn: 8076
2003-08-23 20:03:05 +00:00
Chris Lattner 6b4b1e67b0 new testcase: we warn if we are merging together two functions whose argument
types to not match, but we should not warn unless their _primitive_ types mismatch

llvm-svn: 8075
2003-08-23 19:59:55 +00:00
Chris Lattner 18fca71f8e Add more methods to be more value-like
llvm-svn: 8074
2003-08-23 19:51:10 +00:00
Chris Lattner ca009fe280 Initial checkin of ValueHolder helper class
llvm-svn: 8073
2003-08-23 19:43:18 +00:00
Chris Lattner 32db9de2ff Initial checkin of ValueHolder helper
llvm-svn: 8072
2003-08-23 19:43:16 +00:00
Chris Lattner 39a4430722 New testcase
llvm-svn: 8071
2003-08-23 19:37:39 +00:00
Chris Lattner c38d7fa4e1 Fix typeo
llvm-svn: 8069
2003-08-23 15:56:38 +00:00
Chris Lattner 251f1c948d New testcase, which is basically the problem with 176.gcc
llvm-svn: 8068
2003-08-23 15:53:38 +00:00
Chris Lattner 716b1fea7f Add missing #include
llvm-svn: 8063
2003-08-22 23:08:55 +00:00
Chris Lattner 954a6095d7 Fix typeo
llvm-svn: 8059
2003-08-22 20:16:48 +00:00
Chris Lattner b4d9921728 add preliminary support for -export-dynamic
llvm-svn: 8058
2003-08-22 19:18:45 +00:00
Chris Lattner 1a8a45977a The process of linking types can cause their addresses to become invalid. For this reason, we must use TypeHandles!
llvm-svn: 8057
2003-08-22 19:12:55 +00:00
Chris Lattner d1123fde11 Kill warning
llvm-svn: 8056
2003-08-22 18:57:43 +00:00
Chris Lattner 23edbf25f4 Changes to work better with GCC3.4/LLVM G++
llvm-svn: 8054
2003-08-22 14:26:59 +00:00
Chris Lattner e9d7d70ae7 Remove last remenants of cleandeps
Allow disabling generation of .d files for a whole directory

llvm-svn: 8053
2003-08-22 14:10:16 +00:00
Chris Lattner 4f59be2126 Disable .d file generation for LLVM tests
llvm-svn: 8052
2003-08-22 14:09:46 +00:00
Chris Lattner f872d41f55 Implement Linker/2003-08-20-OpaqueTypeResolve.ll
Hopefully this will fix the 176.gcc spec test as well.

llvm-svn: 8051
2003-08-22 06:07:12 +00:00
Chris Lattner 9eb287583b Accept double quoted strings everwhere we accept a %ABC variable name.
This introduces one more innoculous shift-reduce conflict, but will REALLY
help the type names generated by the C++ frontend, which wants to use all
kinds of crazy stuff.

llvm-svn: 8050
2003-08-22 05:42:10 +00:00
Chris Lattner 1c3430491e If an "LLVM name" has wierd characters in it, print it out in double quotes instead of prefixing it with %
llvm-svn: 8049
2003-08-22 05:40:38 +00:00
Chris Lattner 88052abce8 New testcase for non-simple variable and type names
llvm-svn: 8048
2003-08-22 05:40:04 +00:00
Chris Lattner 7016ddc012 Ugh, really fix it now... :(
llvm-svn: 8047
2003-08-22 05:22:13 +00:00
Chris Lattner f2df8f3c9d Fix computation of LLVM_OBJ_ROOT for non-projects :(
llvm-svn: 8046
2003-08-22 05:18:49 +00:00
Chris Lattner e9c210242d Remove name, add body. Causes llvmg++ segfault!
llvm-svn: 8045
2003-08-22 04:36:12 +00:00
Chris Lattner 1e5031d81b add comment
llvm-svn: 8044
2003-08-22 04:31:24 +00:00
Chris Lattner d3cd988d5c new testcase
llvm-svn: 8043
2003-08-22 04:13:13 +00:00
Misha Brukman 188bf100aa Squash the warning that `Result' may not be initialized on all code paths.
llvm-svn: 8042
2003-08-22 03:35: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 558085b76c Include the top-level Makefile.config from the LLVM tree for projects
llvm-svn: 8035
2003-08-21 22:28:46 +00:00
Chris Lattner b42c15396c Projects no longer need to specify LLVM_OBJ_ROOT. Also, for the prdirs target, don't let make print out all of the echo commands before the echos get echo'd
llvm-svn: 8034
2003-08-21 22:23:49 +00:00
Chris Lattner ce4e6ee671 Remove commented out declaration
llvm-svn: 8032
2003-08-21 22:22:24 +00:00
Misha Brukman 1430522e2d The word `dependence' has no `a'.
llvm-svn: 8031
2003-08-21 22:14:57 +00:00
Misha Brukman be372b91e1 The word `dependent' has no `a'.
llvm-svn: 8030
2003-08-21 22:14:26 +00:00
Chris Lattner a73b95821a Fix spello
llvm-svn: 8029
2003-08-21 22:05:57 +00:00
Misha Brukman a1f0c145e9 The word `dependence' and its derivatives have no `a'.
llvm-svn: 8028
2003-08-21 22:02:18 +00:00
Chris Lattner 132c88da07 Make the tags rule tolerate lack of one of the standard directories
llvm-svn: 8027
2003-08-21 21:53:38 +00:00
Chris Lattner f02da5ba9d Only use :: rules for #included files
llvm-svn: 8026
2003-08-21 21:47:12 +00:00
Chris Lattner 746f804dda Simplify test
llvm-svn: 8025
2003-08-21 21:33:19 +00:00
Chris Lattner abca19d2b3 Minor cleanups: wrap at 80 lines. Convert file comment to doxygen format and
llvm style

llvm-svn: 8024
2003-08-21 21:32:12 +00:00
John Criswell 42c6d5940b Regression test that verifies that the JIT passes the environment to the
main() function.

llvm-svn: 8023
2003-08-21 21:18:21 +00:00
John Criswell 71c3e6236f The JIT now passes the environment pointer to the main() function when it
starts a program.  This allows the GNU env program to compile and JIT under
LLVM.

llvm-svn: 8022
2003-08-21 21:12:30 +00:00
Chris Lattner e08478eb59 Remove unused file
llvm-svn: 8021
2003-08-21 20:54:51 +00:00
Chris Lattner a896edb1bb * Remove cleandeps target
* Implement much nicer .d files, as suggested by Casey Carter

llvm-svn: 8020
2003-08-21 20:39:08 +00:00
Chris Lattner 43450cb075 Change all #include'd files to be :: rules instead of : rules
llvm-svn: 8019
2003-08-21 20:37:17 +00:00
Brian Gaeke 482100941f Reoptimizer has moved to reopt cvs module.
llvm-svn: 8018
2003-08-21 20:32:04 +00:00
Misha Brukman 71a1ba6a68 Make build errors stand out by coloring them red.
llvm-svn: 8017
2003-08-21 20:22:52 +00:00
Chris Lattner 941b06bf3c Implement Assembler/2003-08-21-ConstantExprCast-Fold.llx
llvm-svn: 8015
2003-08-21 19:45:55 +00:00
Chris Lattner 3b156bb2a5 New testcase
llvm-svn: 8014
2003-08-21 19:37:46 +00:00
Misha Brukman 7bf78b5b27 Test case distilled from bash.
llvm-svn: 8013
2003-08-21 18:59:56 +00:00
Chris Lattner fac8f6188d remove invalid test
llvm-svn: 8012
2003-08-21 18:48:13 +00:00
Misha Brukman 8635998389 Test case distilled from `bash'.
llvm-svn: 8011
2003-08-21 18:45:48 +00:00
Chris Lattner f08cb1accf Yet another testcase distilled from emacs by Misha!
llvm-svn: 8010
2003-08-21 18:25:37 +00:00
Chris Lattner ee333b1194 New testcase, distilled from emacs by Misha
llvm-svn: 8009
2003-08-21 17:56:32 +00:00
Chris Lattner 9bc7626fa8 Fix warning on sparc build
llvm-svn: 8006
2003-08-21 15:59:16 +00:00
Chris Lattner ed51e6858c Start testing SPEC as well as singlesource/multisource
llvm-svn: 8005
2003-08-21 15:55:26 +00:00
Chris Lattner 38dbc3c35b fix dependency
llvm-svn: 8004
2003-08-21 15:47:37 +00:00
John Criswell 45cd0a8acd Adding a copyright notice to each file is unnecessary.
llvm-svn: 8003
2003-08-21 15:25:55 +00:00
John Criswell 69e64badf8 Further updates:
o Autoconf has been moved to its own directory.
	o The bugs are fixed but still need regressions.
	o Sparc now has a nightly tester.
	o The test/Programs directory has been cleaned up.

llvm-svn: 8002
2003-08-21 15:25:20 +00:00
John Criswell 63abacc766 Added the ability to run the QMTests. It is currently not enabled by default,
but is here in case others want to start trying it out.

llvm-svn: 8001
2003-08-21 15:09:29 +00:00
John Criswell 5618aa6ad8 Updated to reflect current work:
1. Chris fixed the sys/select.h hack
	2. The pool allocator now lives in its own tree.  Reoptimizer still
	   needs to be done.
	3. The USE_SPEC option now works.

llvm-svn: 8000
2003-08-21 15:06:06 +00:00
Chris Lattner 015d98e940 Unless we CANNOT merge the arguments, do so
llvm-svn: 7999
2003-08-20 23:50:38 +00:00
Chris Lattner 397b6677ba Point to the RIGHT GCC library directory
llvm-svn: 7998
2003-08-20 22:42:17 +00:00
Chris Lattner bc9b0b91f5 Point to the correct cc1/cc1plus binaries
llvm-svn: 7997
2003-08-20 22:11:45 +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 67fc400da8 Added dummy version of the `util' library.
llvm-svn: 7995
2003-08-20 21:44:04 +00:00
Misha Brukman db3c78202d Added dummy library `libutempter' for non-privileged access to utmp/wtmp data.
llvm-svn: 7994
2003-08-20 21:42:01 +00:00
Misha Brukman 90869942e7 Make the bytecode file executable as well for LLEE purposes.
llvm-svn: 7992
2003-08-20 20:38:15 +00:00
Chris Lattner 820153f204 Simplify testcase even more
llvm-svn: 7991
2003-08-20 20:36:09 +00:00
Chris Lattner 963346a1d7 New makefile for new directory
llvm-svn: 7990
2003-08-20 20:24:16 +00:00
Chris Lattner 9ca74f1cfe new testcase
llvm-svn: 7989
2003-08-20 20:24:09 +00:00
Chris Lattner e1c787f2f5 new testcase
llvm-svn: 7988
2003-08-20 19:48:18 +00:00
Chris Lattner 70c5421547 new testcase
llvm-svn: 7987
2003-08-20 19:22:28 +00:00
Chris Lattner e62a6faef9 Whoa, GCC accepts this. Whack.
llvm-svn: 7986
2003-08-20 18:25:04 +00:00
Chris Lattner 986b244976 New testcase, distilled from bison
llvm-svn: 7985
2003-08-20 18:17:13 +00:00
Chris Lattner 941fba4a63 New testcase, distilled from 'screen' by Misha
llvm-svn: 7984
2003-08-20 16:13:10 +00:00
Chris Lattner ddab239262 Implement testcase: Assembler/2003-08-20-ConstantExprGEP-Fold.llx
llvm-svn: 7983
2003-08-20 16:11:27 +00:00
Chris Lattner c0f058e4a9 New testcase for GEP folding
llvm-svn: 7982
2003-08-20 16:11:05 +00:00
Chris Lattner 42fee012b0 Catch testing errors
llvm-svn: 7981
2003-08-20 15:44:33 +00:00
Chris Lattner 717658476c Fix bug where we printed the month number instead of the day number *blush*
llvm-svn: 7980
2003-08-20 15:33:33 +00:00
John Criswell 816deb775d Modified the SUFFIXES pseudo targets so that we remove all default suffixes
and explicitly declare all the ones we're using for LLVM.
This quickly cancels many of GNU Make's implicit rules and reduces build time.
The only caveat is that any new suffixes may need to be explictly added to
the .SUFFIXES pseudo target.

Removed the -only-static option as it is no longer used.

llvm-svn: 7979
2003-08-20 15:18:41 +00:00
Brian Gaeke f2ea9e0bdf Add ParseEnvironmentOptions documentation
llvm-svn: 7978
2003-08-19 23:11:43 +00:00
Brian Gaeke 8b89b2bcbb Add warning about how you have to put cl::init after cl::location, if both
appear for the same option.

llvm-svn: 7977
2003-08-19 22:56:22 +00:00
Chris Lattner e90e4c4ec0 Make testcase more interesting
llvm-svn: 7976
2003-08-19 21:57:23 +00:00
Chris Lattner 9a4dbf6da0 Make assertion message more helpful in a case that might happen...
llvm-svn: 7975
2003-08-19 21:57:00 +00:00
Chris Lattner 05c8f64b81 Fix bugs in tester
Add new -norunningtests option

llvm-svn: 7972
2003-08-19 18:35:03 +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 dbfec2c56a Since we broke up SingleSource and MultiSource testing, the logs are now
separate as well.

llvm-svn: 7970
2003-08-19 15:54:16 +00:00
Chris Lattner d1fc00d4b0 Do not force a runtimelimit! We were actually reducing it.
Start running LARGE_PROBLEM_SIZE tests on Olden, keeping track of the results.

llvm-svn: 7969
2003-08-19 15:08:34 +00:00
Chris Lattner d729a47a29 Increase the size of the LOC chart
llvm-svn: 7968
2003-08-19 14:27:44 +00:00
Chris Lattner a34c477b05 Fix grammar, add comment
llvm-svn: 7967
2003-08-18 22:54:06 +00:00
Chris Lattner 07d26d47b7 Fix buggy testcase
llvm-svn: 7966
2003-08-18 22:34:14 +00:00
Chris Lattner a615c77cde no-strict-aliasing redux
llvm-svn: 7965
2003-08-18 22:32:48 +00:00
Chris Lattner c8e81ba355 The CBE generates code which violates the TBAA rules of C, thus we must disable
optimizations based on these rules.  :(

llvm-svn: 7964
2003-08-18 22:32:03 +00:00
Chris Lattner f8a77578a2 Do not even attempt to compute dominator information for unreachable blocks
llvm-svn: 7963
2003-08-18 22:11:16 +00:00
Chris Lattner dfada99650 Add new methods, update comments
llvm-svn: 7962
2003-08-18 22:10:57 +00:00
Chris Lattner e06f51c55f Make the testcase more interesting
llvm-svn: 7961
2003-08-18 21:44:10 +00:00
Chris Lattner 016ccdfea6 Add new -disable-verify option
llvm-svn: 7960
2003-08-18 20:47:13 +00:00
Chris Lattner f3f63ace86 New testcase distilled from mutt
llvm-svn: 7959
2003-08-18 20:19:18 +00:00
Chris Lattner 7291a2998d Remove fixme
llvm-svn: 7958
2003-08-18 20:08:32 +00:00
Chris Lattner 3c81d9ac54 Add the magic incantations to get a running LOC graph updated each night...
llvm-svn: 7957
2003-08-18 20:07:54 +00:00
Chris Lattner b3b70f982e Add in the running LOC chart
llvm-svn: 7956
2003-08-18 19:59:28 +00:00
Chris Lattner 8e69339879 no really, implement it!
llvm-svn: 7955
2003-08-18 17:33:15 +00:00
Chris Lattner 598222b5e8 Add new cleandeps target, to allow easy cleaning out of .d files
llvm-svn: 7954
2003-08-18 17:27:40 +00:00
Chris Lattner 0627a96e7e Add support for casting any pointer to any integer type
llvm-svn: 7953
2003-08-18 17:23:40 +00:00
Chris Lattner ab69ecc6d5 Fix linking bug in xboard
llvm-svn: 7952
2003-08-18 16:54:48 +00:00
Chris Lattner a592cac43c Add support for the sig(set|long)jmp intrinsics
llvm-svn: 7951
2003-08-18 16:06:09 +00:00
Chris Lattner 26399a7a84 New testcase, distilled from ed-0.2
llvm-svn: 7950
2003-08-18 15:45:55 +00:00
Chris Lattner 748e9e143b Add intrinsics for the llvm.sig(set|long)jmp functions
llvm-svn: 7949
2003-08-18 15:41:24 +00:00
Chris Lattner 71f6543c0e Wrap line at 80 columns
Fix bogus failures

llvm-svn: 7947
2003-08-18 15:11:13 +00:00
Misha Brukman 7eb05a170a Spell `necessary' correctly.
llvm-svn: 7944
2003-08-18 14:43:39 +00:00
Chris Lattner 688d99fd9c Fix minor bugs in the tester
llvm-svn: 7943
2003-08-18 14:07:03 +00:00
Chris Lattner f5ba14b58a * Split the programs table into MultiSource and SingleSource components
* Instead of printing the time to configure as the build time, print the
  time to configure AND the build time, explicitly

llvm-svn: 7942
2003-08-18 06:05:21 +00:00
Chris Lattner 978b8487dd The CBE output is compiled at -O2
llvm-svn: 7938
2003-08-18 04:39:41 +00:00
Chris Lattner fe2b22fe54 Add docs for new column, native tests now run with -O2
llvm-svn: 7935
2003-08-18 04:32:34 +00:00
Chris Lattner fe65f947dd New testcase distilled from GNU Go
llvm-svn: 7930
2003-08-18 02:57:31 +00:00
Chris Lattner 7a993b7aad Give correct command line for making a shared object
llvm-svn: 7929
2003-08-17 23:38:53 +00:00
Chris Lattner 4b422520ca Fix ABI issue: Longs really do need to be only 4 byte aligned on X86.
This bug caused miscompilation of programs using 'struct stat', but only if
compiled with support for 64-bit filesystems.  This could in theory effect
other things, but only if the LLVM code shared data structures with native code.

llvm-svn: 7928
2003-08-17 23:20:40 +00:00
Chris Lattner f1243ba515 Make sure that "newmain" gets names for its arguments
llvm-svn: 7927
2003-08-17 22:14:20 +00:00
Chris Lattner 8877fa2e5e Fix message
llvm-svn: 7926
2003-08-17 22:08:25 +00:00
Chris Lattner c01f05f4be Fix the bug that broke the nightly tester in McCat/18-imp last night. :(
llvm-svn: 7925
2003-08-17 21:47:33 +00:00
Chris Lattner 61b05eaeec Make the check for a failed test run more robust!!
llvm-svn: 7924
2003-08-17 20:52:05 +00:00