oota-llvm.git
20 years agoFix a bug that Chris asserts emphatically is a bug. The changed clause
Reid Spencer [Sun, 30 May 2004 01:19:48 +0000 (01:19 +0000)]
Fix a bug that Chris asserts emphatically is a bug. The changed clause
would always return false because the Type of a type value is always
Type::TypeTY and can never be a floating point type.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13902 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoMake the Regression/Feature test support excise all ": PASS" lines that
Reid Spencer [Sun, 30 May 2004 00:17:47 +0000 (00:17 +0000)]
Make the Regression/Feature test support excise all ": PASS" lines that
indicate successful tests. We're really only interested in the bad news
in this output :)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13901 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoMoved this file to lib/Bytecode/Writer because its used there only.
Reid Spencer [Sun, 30 May 2004 00:09:32 +0000 (00:09 +0000)]
Moved this file to lib/Bytecode/Writer because its used there only.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13900 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoRemove unused #include.
Brian Gaeke [Sat, 29 May 2004 23:26:13 +0000 (23:26 +0000)]
Remove unused #include.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13899 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoAdd comments.
Brian Gaeke [Sat, 29 May 2004 23:10:20 +0000 (23:10 +0000)]
Add comments.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13898 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoTrim whitespace.
Brian Gaeke [Sat, 29 May 2004 22:49:51 +0000 (22:49 +0000)]
Trim whitespace.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13897 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoGive InsertCodeForPhis() a new documentation comment.
Brian Gaeke [Sat, 29 May 2004 22:20:59 +0000 (22:20 +0000)]
Give InsertCodeForPhis() a new documentation comment.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13896 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoAdd method to assign stack slot to virtual register without creating a
Alkis Evlogimenos [Sat, 29 May 2004 20:38:05 +0000 (20:38 +0000)]
Add method to assign stack slot to virtual register without creating a
new one.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13895 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoAdd grow() member that grows the maps when the number of virtual
Alkis Evlogimenos [Sat, 29 May 2004 19:03:29 +0000 (19:03 +0000)]
Add grow() member that grows the maps when the number of virtual
registers in the function has changed.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13893 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoRemove defs vector from live intervals.
Alkis Evlogimenos [Sat, 29 May 2004 16:18:57 +0000 (16:18 +0000)]
Remove defs vector from live intervals.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13892 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoThoroughly rehack the dynamic linking mechanisms on Win32. The Win32
Chris Lattner [Fri, 28 May 2004 23:54:07 +0000 (23:54 +0000)]
Thoroughly rehack the dynamic linking mechanisms on Win32.  The Win32
dynamic linker does not automatically search libraries when looking up
symbols with GetProcAddress.  Because of this we have to emulate it.  The
only detail is that there doesn't seem to be a way to enumerate the
libraries loaded, so we have a gross hack (tm).

This make the JIT functional on win32 under cygwin.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13887 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoPrune #includes
Chris Lattner [Fri, 28 May 2004 23:35:39 +0000 (23:35 +0000)]
Prune #includes

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13886 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoFix bizzare problems when you include Config/dlfcn and Config/windows.h in
Chris Lattner [Fri, 28 May 2004 21:07:11 +0000 (21:07 +0000)]
Fix bizzare problems when you include Config/dlfcn and Config/windows.h in
the same xlation unit

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13885 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoAdd links to new-featuer and code-cleanup bugs
Chris Lattner [Fri, 28 May 2004 20:41:37 +0000 (20:41 +0000)]
Add links to new-featuer and code-cleanup bugs

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13884 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoReid implemented this.
Chris Lattner [Fri, 28 May 2004 20:30:48 +0000 (20:30 +0000)]
Reid implemented this.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13883 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoChanges to make the nightly tester run the regression tests at night, yaay!
Chris Lattner [Fri, 28 May 2004 20:30:23 +0000 (20:30 +0000)]
Changes to make the nightly tester run the regression tests at night, yaay!

Change contributed by Reid Spencer.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13882 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoupdates to ModuloSched
Tanya Lattner [Fri, 28 May 2004 20:14:12 +0000 (20:14 +0000)]
updates to ModuloSched

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13881 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoGive PhiCp nodes better names in many cases.
Brian Gaeke [Fri, 28 May 2004 19:34:00 +0000 (19:34 +0000)]
Give PhiCp nodes better names in many cases.
Simplify InsertPhiElimInstructions(), and give it a better doxygen comment.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13880 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoMake debugging output with -print-machineinstrs more useful: always print out
Brian Gaeke [Fri, 28 May 2004 19:33:59 +0000 (19:33 +0000)]
Make debugging output with -print-machineinstrs more useful: always print out
the transformed LLVM code which is the input to the instruction selector.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13879 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoUnbreak the bugpoint image
Chris Lattner [Fri, 28 May 2004 16:49:54 +0000 (16:49 +0000)]
Unbreak the bugpoint image

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13878 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoFix the big regression that has been killing the nightly tester these last
Chris Lattner [Fri, 28 May 2004 05:47:27 +0000 (05:47 +0000)]
Fix the big regression that has been killing the nightly tester these last
few days.  Apparently the old symbol table used to auto rename collisions in
the type symbol table and the new one does not.  It doesn't really make sense
for the new one to do so, so we just make the client do it.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13877 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoDon't use size() when you mean empty()
Chris Lattner [Fri, 28 May 2004 05:40:19 +0000 (05:40 +0000)]
Don't use size() when you mean empty()

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13876 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoMinor efficiency gain: do 1 nlogn lookup instead of two
Chris Lattner [Fri, 28 May 2004 05:36:49 +0000 (05:36 +0000)]
Minor efficiency gain: do 1 nlogn lookup instead of two
Code cleanup

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13875 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoMinor changes. Switch to a SymbolTable remove that does not take linear time
Chris Lattner [Fri, 28 May 2004 05:30:51 +0000 (05:30 +0000)]
Minor changes.  Switch to a SymbolTable remove that does not take linear time

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13874 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoEliminate this form of SymbolTable::remove. It ignores the type argument
Chris Lattner [Fri, 28 May 2004 05:30:29 +0000 (05:30 +0000)]
Eliminate this form of SymbolTable::remove.  It ignores the type argument
anyway.  Add a form that takes a type_iterator for the C backend.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13873 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoFix one of the major things that is causing the C Backend to infinite loop
Chris Lattner [Fri, 28 May 2004 05:02:13 +0000 (05:02 +0000)]
Fix one of the major things that is causing the C Backend to infinite loop

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13872 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoAdd support for getting executable memory on Windows. This is actually
Chris Lattner [Fri, 28 May 2004 01:20:58 +0000 (01:20 +0000)]
Add support for getting executable memory on Windows.  This is actually
much easier than on unix.  :)  The only evil thing is that windows.h defines
a macro named FindExecutable, which collides with one of our names.

The JIT now runs on windows, but it cannot resolve external functions
(like printf) yet.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13871 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoAdd a new function for the JIT. libsupport is now the only library that
Chris Lattner [Fri, 28 May 2004 00:59:40 +0000 (00:59 +0000)]
Add a new function for the JIT.  libsupport is now the only library that
includes mman.h

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13870 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoAdd a new function for the JIT
Chris Lattner [Fri, 28 May 2004 00:58:48 +0000 (00:58 +0000)]
Add a new function for the JIT

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13869 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoUse the SystemUtils.h file to do our dirty work.
Chris Lattner [Fri, 28 May 2004 00:57:27 +0000 (00:57 +0000)]
Use the SystemUtils.h file to do our dirty work.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13868 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoRight: the #includes are not needed either
Chris Lattner [Fri, 28 May 2004 00:35:51 +0000 (00:35 +0000)]
Right: the #includes are not needed either

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13867 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoAdd support for zero length files
Chris Lattner [Fri, 28 May 2004 00:34:42 +0000 (00:34 +0000)]
Add support for zero length files

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13866 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoUse fileutilities instead of mmap directly
Chris Lattner [Fri, 28 May 2004 00:31:36 +0000 (00:31 +0000)]
Use fileutilities instead of mmap directly

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13865 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoUse the new FileUtilities.h API for mapping a file into an address
Chris Lattner [Fri, 28 May 2004 00:24:41 +0000 (00:24 +0000)]
Use the new FileUtilities.h API for mapping a file into an address
space

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13864 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoAdd a pair of functions to hide system specific details of mapping a file in for...
Chris Lattner [Fri, 28 May 2004 00:23:48 +0000 (00:23 +0000)]
Add a pair of functions to hide system specific details of mapping a file in for reading.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13863 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoRemove some more dead code resulting from adding setTypeName().
Reid Spencer [Fri, 28 May 2004 00:21:06 +0000 (00:21 +0000)]
Remove some more dead code resulting from adding setTypeName().

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13862 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoRemove an assertion that uses Type::TypeTy that is never hit and will
Reid Spencer [Thu, 27 May 2004 22:05:50 +0000 (22:05 +0000)]
Remove an assertion that uses Type::TypeTy that is never hit and will
break when Type::TypeTy goes away. Also remove a dead block of code and
dead comments.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13861 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoClean up a comment.
Reid Spencer [Thu, 27 May 2004 22:04:46 +0000 (22:04 +0000)]
Clean up a comment.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13860 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoFix for bug 348.
Reid Spencer [Thu, 27 May 2004 21:58:13 +0000 (21:58 +0000)]
Fix for bug 348.
The SymbolTable changes caused this one too.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13859 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoMake comment lines stick out less.
Brian Gaeke [Thu, 27 May 2004 21:41:48 +0000 (21:41 +0000)]
Make comment lines stick out less.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13858 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoRemove long unused #includes
Chris Lattner [Thu, 27 May 2004 21:25:44 +0000 (21:25 +0000)]
Remove long unused #includes

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13857 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoThese #includes are long dead
Chris Lattner [Thu, 27 May 2004 21:24:38 +0000 (21:24 +0000)]
These #includes are long dead

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13856 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoFix a bug in the -deadtypeelim pass. The SymbolTable re-write changed it
John Criswell [Thu, 27 May 2004 21:16:46 +0000 (21:16 +0000)]
Fix a bug in the -deadtypeelim pass.  The SymbolTable re-write changed it
to eliminate the wrong type.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13855 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoFix warnings about reaching end of non-void function
Chris Lattner [Thu, 27 May 2004 20:57:01 +0000 (20:57 +0000)]
Fix warnings about reaching end of non-void function

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13852 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoAdd DynamicLinker support for systems that provide windows.h
Chris Lattner [Thu, 27 May 2004 20:53:10 +0000 (20:53 +0000)]
Add DynamicLinker support for systems that provide windows.h

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13851 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoAn "autoconf wrapper" for the infamous windows.h file
Chris Lattner [Thu, 27 May 2004 20:51:22 +0000 (20:51 +0000)]
An "autoconf wrapper" for the infamous windows.h file

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13849 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoMake the test pass by using the correct RUN: syntax.
Reid Spencer [Thu, 27 May 2004 20:49:16 +0000 (20:49 +0000)]
Make the test pass by using the correct RUN: syntax.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13848 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoAdded a check for a new header file.
John Criswell [Thu, 27 May 2004 20:40:39 +0000 (20:40 +0000)]
Added a check for a new header file.
My apologies for changing config.h.in.  Now you will all have to
re-configure.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13846 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoNeuter the -q option. Stop printing the "program modified" message, ever
Chris Lattner [Thu, 27 May 2004 20:32:10 +0000 (20:32 +0000)]
Neuter the -q option.  Stop printing the "program modified" message, ever

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13844 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoUse the SymbolTable::isEmpty() method instead of checking for no value
Reid Spencer [Thu, 27 May 2004 20:18:51 +0000 (20:18 +0000)]
Use the SymbolTable::isEmpty() method instead of checking for no value
planes. A SymbolTable could still have types in it! This fixes problems
with two regression tests that failed because a symbol table that only
contained types was being omitted from bytecode files. Thanks to Chris
for the reduced test case that helped find this immediately.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13842 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoAdd support for dos-style files
Chris Lattner [Thu, 27 May 2004 18:28:32 +0000 (18:28 +0000)]
Add support for dos-style files

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13840 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoThis code is a real mess, but at least get the JIT *building* on platforms
Chris Lattner [Thu, 27 May 2004 18:03:56 +0000 (18:03 +0000)]
This code is a real mess, but at least get the JIT *building* on platforms
(such as plan 9) without mmap.  Of course it won't RUN... but that's another
step.  :)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13839 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agodoxygen no longer builds into the docs tree, and we no longer have boost
Chris Lattner [Thu, 27 May 2004 17:58:45 +0000 (17:58 +0000)]
doxygen no longer builds into the docs tree, and we no longer have boost
in the tree

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13838 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoAdd support for dos-style files
Chris Lattner [Thu, 27 May 2004 17:49:14 +0000 (17:49 +0000)]
Add support for dos-style files

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13837 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoAdd support for dos style files.
Chris Lattner [Thu, 27 May 2004 17:44:18 +0000 (17:44 +0000)]
Add support for dos style files.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13836 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoAdd back a test I accidentally removed
Chris Lattner [Thu, 27 May 2004 17:43:33 +0000 (17:43 +0000)]
Add back a test I accidentally removed

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13835 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoFix InstCombine/load.ll & PR347.
Chris Lattner [Thu, 27 May 2004 17:30:27 +0000 (17:30 +0000)]
Fix InstCombine/load.ll & PR347.

This code hadn't been updated after the "structs with more than 256 elements"
related changes to the GEP instruction.  Also it was not handling the
ConstantAggregateZero class.

Now it does!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13834 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoAdd another testcase
Chris Lattner [Thu, 27 May 2004 17:28:55 +0000 (17:28 +0000)]
Add another testcase

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13833 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoRe-introduce the -q option and make opt always return 0, even if the
Reid Spencer [Thu, 27 May 2004 16:28:54 +0000 (16:28 +0000)]
Re-introduce the -q option and make opt always return 0, even if the
optimization pasess fail. This is necessary to avoid breaking feature
tests in the tests suite that depend on this behavior. *sigh*

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13832 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoAdded a "RUN:" line so this file can be executed by TestRunner.sh
Reid Spencer [Thu, 27 May 2004 08:28:42 +0000 (08:28 +0000)]
Added a "RUN:" line so this file can be executed by TestRunner.sh

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13829 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoRemoved the -q option and the default message written to stderr. The
Reid Spencer [Thu, 27 May 2004 08:26:22 +0000 (08:26 +0000)]
Removed the -q option and the default message written to stderr. The
output produces confusing results in TestRunner.sh

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13828 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoremove bogus test
Chris Lattner [Thu, 27 May 2004 07:39:51 +0000 (07:39 +0000)]
remove bogus test

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13827 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoMake the test test what it is supposed to
Chris Lattner [Thu, 27 May 2004 07:37:45 +0000 (07:37 +0000)]
Make the test test what it is supposed to

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13826 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoThe -exprs pass is no longer with LLVM. *sniff*
Chris Lattner [Thu, 27 May 2004 07:36:08 +0000 (07:36 +0000)]
The -exprs pass is no longer with LLVM.  *sniff*

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13825 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoCorrect test. use "not grep" instead of "grep -v"
Chris Lattner [Thu, 27 May 2004 07:32:25 +0000 (07:32 +0000)]
Correct test.  use "not grep" instead of "grep -v"

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13824 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoImplement constant folding of fmod, which is used a lot in povray
Chris Lattner [Thu, 27 May 2004 07:25:00 +0000 (07:25 +0000)]
Implement constant folding of fmod, which is used a lot in povray

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13823 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoRight, globals aren't values yet..
Chris Lattner [Thu, 27 May 2004 06:43:37 +0000 (06:43 +0000)]
Right, globals aren't values yet..

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13822 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoRestructure call constant folding code a bit to make it simpler
Chris Lattner [Thu, 27 May 2004 06:26:28 +0000 (06:26 +0000)]
Restructure call constant folding code a bit to make it simpler
Add support for acos/asin/atan.  188.ammp contains three calls to acos with
constant arguments.  Constant folding it allows elimination of those 3 calls
and three FP divisions of the results.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13821 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoAdd a simple pass.
Chris Lattner [Thu, 27 May 2004 06:13:36 +0000 (06:13 +0000)]
Add a simple pass.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13820 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoContinue the exposition
Chris Lattner [Thu, 27 May 2004 05:52:10 +0000 (05:52 +0000)]
Continue the exposition

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13819 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoContinue the implementation
Chris Lattner [Thu, 27 May 2004 05:51:31 +0000 (05:51 +0000)]
Continue the implementation

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13818 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoA few more microsteps
Chris Lattner [Thu, 27 May 2004 05:51:13 +0000 (05:51 +0000)]
A few more microsteps

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13817 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agogc_init now gets an argument
Chris Lattner [Thu, 27 May 2004 05:51:00 +0000 (05:51 +0000)]
gc_init now gets an argument

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13816 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoUhh, that doesn't exist.
Chris Lattner [Thu, 27 May 2004 05:44:22 +0000 (05:44 +0000)]
Uhh, that doesn't exist.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13815 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoBeta-test moving a header from include/Support into the llvm hierarchy:
Chris Lattner [Thu, 27 May 2004 05:42:33 +0000 (05:42 +0000)]
Beta-test moving a header from include/Support into the llvm hierarchy:
it seems to work :)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13814 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoHeader file moved
Chris Lattner [Thu, 27 May 2004 05:41:36 +0000 (05:41 +0000)]
Header file moved

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13813 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoHeader moved
Chris Lattner [Thu, 27 May 2004 05:37:32 +0000 (05:37 +0000)]
Header moved

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13812 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoSignals.h header moved. Eventually this should move into a lib/System library,
Chris Lattner [Thu, 27 May 2004 05:31:24 +0000 (05:31 +0000)]
Signals.h header moved.  Eventually this should move into a lib/System library,
but not right now.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13811 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoMoved header from include/Support/ to include/llvm/System
Chris Lattner [Thu, 27 May 2004 05:30:18 +0000 (05:30 +0000)]
Moved header from include/Support/ to include/llvm/System

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13810 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoChanges to make libSupport build on systems that don't have the wait syscall.
Chris Lattner [Thu, 27 May 2004 01:20:55 +0000 (01:20 +0000)]
Changes to make libSupport build on systems that don't have the wait syscall.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13806 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoAdd section on the newly added Instruction and subclasses constructor
Alkis Evlogimenos [Thu, 27 May 2004 00:57:51 +0000 (00:57 +0000)]
Add section on the newly added Instruction and subclasses constructor
variant.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13802 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoOnly give warnings if the user doesn't have mmap(). This is pretty much
John Criswell [Thu, 27 May 2004 00:57:50 +0000 (00:57 +0000)]
Only give warnings if the user doesn't have mmap().  This is pretty much
a hack that allows users to fight through a build if they don't have mmap().
When I get into the office, I'll make something better.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13801 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoAdd constructors that take a BasicBlock to append to, to the rest of
Alkis Evlogimenos [Thu, 27 May 2004 00:15:23 +0000 (00:15 +0000)]
Add constructors that take a BasicBlock to append to, to the rest of
the llvm::Instruction hierarchy.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13800 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoFix a test that was "broken" by new optimizations. The transformation we
Chris Lattner [Wed, 26 May 2004 23:51:29 +0000 (23:51 +0000)]
Fix a test that was "broken" by new optimizations.  The transformation we
are doing is certainly correct, its just that we didn't have the capability
to do it when the testcase was written (no select instr)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13799 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoDo not pass a null pointer if this instruction is not prepended or
Alkis Evlogimenos [Wed, 26 May 2004 22:50:28 +0000 (22:50 +0000)]
Do not pass a null pointer if this instruction is not prepended or
appended anywhere.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13798 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoInline trivial constructors.
Alkis Evlogimenos [Wed, 26 May 2004 22:07:18 +0000 (22:07 +0000)]
Inline trivial constructors.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13797 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoSeveral clean ups suggested by Chris: remove tabs, make SlotMachine do lazy
Reid Spencer [Wed, 26 May 2004 21:56:09 +0000 (21:56 +0000)]
Several clean ups suggested by Chris: remove tabs, make SlotMachine do lazy
initialization so we don't scan large Modules/Functions needlessly, tighten
up restrictions on what can be put in SlotMachine (no Constants that aren't
GlobalValues).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13796 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoProvide the correct patch for bug 345. The solution is to add a setTypeName
Reid Spencer [Wed, 26 May 2004 21:48:31 +0000 (21:48 +0000)]
Provide the correct patch for bug 345. The solution is to add a setTypeName
function to llvmAsmParser.y and then use it in the one place in the grammar
that needs it. Also had to make Type::setName public because setTypeName
needs it in order to retain compatibility with setValueName.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13795 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoTighten up checking on SymbolTable interface to make it illegal to pass a
Reid Spencer [Wed, 26 May 2004 21:46:18 +0000 (21:46 +0000)]
Tighten up checking on SymbolTable interface to make it illegal to pass a
Type* where a Value* is expected.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13794 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoRefactor common initialization code in private init() functions.
Alkis Evlogimenos [Wed, 26 May 2004 21:41:09 +0000 (21:41 +0000)]
Refactor common initialization code in private init() functions.

This is a first step in supplying append to basic block constructors
for all instruction types.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13793 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoUse one destination constructor for the unconditional branch.
Alkis Evlogimenos [Wed, 26 May 2004 21:38:14 +0000 (21:38 +0000)]
Use one destination constructor for the unconditional branch.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13792 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoFix spelling of doxygen directive.
Misha Brukman [Wed, 26 May 2004 17:42:51 +0000 (17:42 +0000)]
Fix spelling of doxygen directive.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13791 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoFix PR344: the incorrect remove was being used.
Chris Lattner [Wed, 26 May 2004 17:20:52 +0000 (17:20 +0000)]
Fix PR344: the incorrect remove was being used.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13790 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoMake the test use the %A type
Chris Lattner [Wed, 26 May 2004 17:14:49 +0000 (17:14 +0000)]
Make the test use the %A type

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13789 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoA quick and ugly hack to fix PR345. I used TypeTy specifically to make
Chris Lattner [Wed, 26 May 2004 17:08:25 +0000 (17:08 +0000)]
A quick and ugly hack to fix PR345.  I used TypeTy specifically to make
Reid cringe :)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13788 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoFix a bug in reid's checkin
Chris Lattner [Wed, 26 May 2004 16:52:55 +0000 (16:52 +0000)]
Fix a bug in reid's checkin

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13787 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoAdded a section on the SymbolTable class.
Reid Spencer [Wed, 26 May 2004 08:41:35 +0000 (08:41 +0000)]
Added a section on the SymbolTable class.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13786 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoPart of bug 122:
Reid Spencer [Wed, 26 May 2004 07:37:11 +0000 (07:37 +0000)]
Part of bug 122:
This change removes the BuildBytecodeInfo flag from the SlotCalculator
class. This flag was needed to distinguish between the Bytecode/Writer
and the AsmWriter. Now that AsmWriter doesn't use SlotCalculator, we can
remove this flag and simplify some code. Also, some minor name changes
to CachedWriter.h needed to be committed (missed in previous commit).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13785 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoPart of bug 122. Removed dependency of AsmWriter on SlotCalculator by
Reid Spencer [Wed, 26 May 2004 07:18:52 +0000 (07:18 +0000)]
Part of bug 122. Removed dependency of AsmWriter on SlotCalculator by
incorporating a significantly simpler "SlotMachine" into this file. The
SlotMachine is tailored for use by only the AsmWriter whose requirements
for slot numbers are vastly different than from the Bytecode/Writer. Code
change passes all Feature and Regression tests.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13784 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoAdding scheduling class.
Tanya Lattner [Wed, 26 May 2004 06:27:36 +0000 (06:27 +0000)]
Adding scheduling class.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13783 91177308-0d34-0410-b5e6-96231b3b80d8