Chris Lattner
aef2bbf942
'Pass' should now not be derived from by clients. Instead, they should derive
...
from ModulePass. Instead of implementing Pass::run, then should implement
ModulePass::runOnModule.
llvm-svn: 16430
2004-09-20 04:36:29 +00:00
Reid Spencer
046d7d920a
Put in a #error in the event that we don't have an mmap that can map a file
...
into memor. This is just a reminder that the ReadFileIntoAddressSpace
function needs to be properly converted to lib/System and implemented via
read/write if there's no mmap of file support.
llvm-svn: 16428
2004-09-20 04:13:43 +00:00
Reid Spencer
028111e37d
Fix problems with AC_FUNC_MMAP_FILE and AC_LINK_USE_R that caused problems
...
with correctly recognizing mmap of files and the linker's support of -r.
llvm-svn: 16427
2004-09-20 04:09:56 +00:00
Reid Spencer
5fd27c9428
Correct the use AC_RUN_IFELSE to ensure it builds programs correctly by
...
using the AC_LANG_PROGRAM macro.
llvm-svn: 16426
2004-09-20 04:08:22 +00:00
Reid Spencer
1fe303c95c
Allow the suffix for shared libraries to be obtained correctly so we can
...
build them again.
llvm-svn: 16425
2004-09-20 03:06:28 +00:00
Reid Spencer
cdfc10207e
The problem with depending on the internal implementation of third party
...
tools is that you break when they change. This is a case in point.
llvm-svn: 16424
2004-09-20 03:05:46 +00:00
Reid Spencer
8fb0a02460
libtool's name is now back to mklib.
...
llvm-svn: 16423
2004-09-20 01:43:00 +00:00
Reid Spencer
61be2ebab7
Change to support creation of "mklib" instead of "libtool" in builddir.
...
llvm-svn: 16422
2004-09-20 01:42:32 +00:00
Reid Spencer
d16796d37b
Update the script to generate mklib instead of libtool.
...
llvm-svn: 16421
2004-09-20 01:41:24 +00:00
Reid Spencer
a889e9e1df
Adjust the libtool macros so that libtool's name is "mklib". Also, tidy up
...
the use of obsolete macros, hopefully making us more compliant on more sys.
llvm-svn: 16420
2004-09-19 23:53:36 +00:00
Reid Spencer
94bae39edc
Various minor cleanups and replacement of obsoleted macro names.
...
llvm-svn: 16419
2004-09-19 23:43:52 +00:00
Reid Spencer
dd0df28d37
Numerous fixes to convert ~ into ; that (probably) occurred during data
...
transmission.
llvm-svn: 16418
2004-09-19 23:42:55 +00:00
Chris Lattner
d34f6978fb
The lexicon doc is more of a user guide than programming dox
...
llvm-svn: 16417
2004-09-19 23:15:47 +00:00
Reid Spencer
1b4e38a275
Bring the script out of the dark ages and into modern autoconfness.
...
llvm-svn: 16415
2004-09-19 22:31:49 +00:00
Reid Spencer
4ae326c323
Make the "Warning" notice a LOT more prominent.
...
llvm-svn: 16414
2004-09-19 22:30:53 +00:00
Reid Spencer
6f04a51925
Add in version dependency checks on all the tools we depend on. This is
...
necessary to ensure that a consistent configuration is created on each
platform. Certain definitions we use (like m4/libtool.m4) require certain
versions of the tools and we can no longer be slack about this or we'll
have problems with mis-configured builds.
llvm-svn: 16412
2004-09-19 22:14:24 +00:00
Reid Spencer
8d7bab5e63
Add our own version of libtool.m4 instead of relying on the installed one.
...
This is a potential version mismatch problem because this file came from
libtool 1.5.10. If you're running a different version of libtool, the
checks in this file may not be quite right. Having our own version of this
file violates the spirit of libtool and is only provided to change the name
of "libtool" to "mklib". This is done so that the name "libtool" does not
conflict with the "lib" directory when doing tab completion and your
$objdir == $srcdir.
llvm-svn: 16411
2004-09-19 21:47:47 +00:00
Chris Lattner
cc0377196a
better code
...
Move other things to the right sections
llvm-svn: 16410
2004-09-19 19:21:26 +00:00
Chris Lattner
f607a26457
Make isSafeToLoadUnconditionally a bit smarter, implementing PR362 and
...
Regression/Transforms/InstCombine/CPP_min_max.llx
llvm-svn: 16409
2004-09-19 19:18:10 +00:00
Chris Lattner
9b61bc84a7
New testcase for PR362: Icky code generated for std::min/std::max
...
llvm-svn: 16408
2004-09-19 19:17:10 +00:00
Chris Lattner
e6755fe307
Fix a nasty iterator invalidation problem I introduced yesterday. This
...
unfortunately is the cause of a bunch of failures from tonight, and the
reason the tester is running so slow :(
llvm-svn: 16407
2004-09-19 19:01:06 +00:00
Chris Lattner
98d434988e
Remove a whole bunch of horrible hacky code that was used to promote allocas
...
whose addresses where used by trivial phi nodes and select instructions. This
is now performed by the instcombine pass, which is more powerful, is much
simpler, and is faster. This allows the deletion of a bunch of code, two
FIXME's and two gotos.
llvm-svn: 16406
2004-09-19 18:51:51 +00:00
Chris Lattner
980e6b99f7
Instcombine now helps out with these
...
llvm-svn: 16405
2004-09-19 18:45:45 +00:00
Chris Lattner
f45dc6dae6
Make instruction combining a bit more aggressive in the face of volatile
...
loads, and implement two new transforms: InstCombine/load.ll:test[56].
llvm-svn: 16404
2004-09-19 18:43:46 +00:00
Chris Lattner
c4cf835f45
Add two new testcases that instcombine should handle
...
llvm-svn: 16403
2004-09-19 18:43:01 +00:00
Reid Spencer
5eee940491
Minor correction to Signals implementation.
...
Patch submitted by Jeff Cohen. Thanks Jeff!
llvm-svn: 16401
2004-09-19 05:37:39 +00:00
Chris Lattner
188b4e4983
Add comment
...
llvm-svn: 16400
2004-09-19 01:05:16 +00:00
Chris Lattner
12bcdf2e01
Fix the inliner to always delete any edges from the external call node to
...
a function being deleted. Due to optimizations done while inlining, there
can be edges from the external call node to a function node that were not
apparent any longer.
This fixes the compiler crash while compiling 175.vpr
llvm-svn: 16399
2004-09-18 21:37:03 +00:00
Chris Lattner
110bbafcf7
Add CallGraphNode::removeAnyCallEdgeTo method
...
llvm-svn: 16398
2004-09-18 21:34:34 +00:00
Reid Spencer
b503c250a3
Use the /dev/zero device as the device on which the pages are mapped.
...
Patch contributed by Henrik Bach. Thanks Henrik!
llvm-svn: 16397
2004-09-18 19:34:09 +00:00
Reid Spencer
fb3c25ded9
Porting of Unix implementation to Win32.
...
Patch contributed by Jeff Cohen. Thanks Jeff!
llvm-svn: 16396
2004-09-18 19:29:16 +00:00
Reid Spencer
9717ec42eb
Get rid of file descriptor leak in create_file.
...
llvm-svn: 16395
2004-09-18 19:25:11 +00:00
Chris Lattner
cd2d763599
Misha implemented the ModuleProvider interface back in 9/18/2003.
...
llvm-svn: 16394
2004-09-18 16:16:28 +00:00
Chris Lattner
0e39c41ba3
Provide initial docs for CallGraphSCCPass's, and fix several grammar-o's and
...
other problems.
llvm-svn: 16393
2004-09-18 06:39:35 +00:00
Chris Lattner
fea8bb30c7
Make this HTML 4.01 strict
...
Update to reflect changes to the 'Register' tblgen class.
llvm-svn: 16392
2004-09-18 06:28:07 +00:00
Chris Lattner
30c93a192b
Don't include libtool "object" files
...
llvm-svn: 16391
2004-09-18 04:40:46 +00:00
Chris Lattner
223e9d38b5
Convert this pass to be a CallGraphSCCPass instead of a Pass, which eliminates
...
the worklist and makes it more efficient. This does not change functionality
at all.
llvm-svn: 16390
2004-09-18 00:34:13 +00:00
Chris Lattner
f31ae4da07
Make sure to remove the Select instruction as well
...
llvm-svn: 16389
2004-09-18 00:32:40 +00:00
Chris Lattner
53dea1ce37
When changing a function, make sure to update the CallGraphNode for the
...
function, not just the CallGraph.
llvm-svn: 16388
2004-09-18 00:27:20 +00:00
Chris Lattner
e9772b7a63
Implement new changeFunction method, nuke a never implemented one.
...
Add comments and doxygenify others.
llvm-svn: 16387
2004-09-18 00:22:43 +00:00
Chris Lattner
a9b80a3258
Implement new changeFunction method, nuke a never implemented one.
...
llvm-svn: 16386
2004-09-18 00:22:13 +00:00
John Criswell
4f0bd93c80
Changed the distclean target to handle the new location of config.h.
...
llvm-svn: 16385
2004-09-17 15:08:25 +00:00
Chris Lattner
228e66d208
Fix typo in comment
...
llvm-svn: 16384
2004-09-17 03:58:39 +00:00
Reid Spencer
fe3656ecc6
Make sure critical sections are entered before trying to leave them.
...
Add some additional commentary about the workings of this module.
Patch contributed by Jeff Cohen. Thanks Jeff!
llvm-svn: 16383
2004-09-17 03:02:27 +00:00
Reid Spencer
81f249245b
Adjust the license files based on the actual content of llvm and llvm-test
...
after llvm-test was split out of llvm.
llvm-svn: 16382
2004-09-16 16:41:31 +00:00
Reid Spencer
08cba3070b
Allow "bc" as suffix for bytecode files.
...
llvm-svn: 16381
2004-09-16 16:36:10 +00:00
Reid Spencer
c7ed215028
Implement the signals interface for Win32.
...
Patch provided by Jeff Cohen. Thanks Jeff!
llvm-svn: 16380
2004-09-16 15:53:16 +00:00
John Criswell
cb28d6a419
Add dependencies so that project tools are recompiled if LLVM libraries
...
are updated.
llvm-svn: 16378
2004-09-16 14:11:25 +00:00
Chris Lattner
e54e70266e
Add a newline
...
llvm-svn: 16369
2004-09-15 17:53:52 +00:00
Reid Spencer
c6a8d70cff
Convert code to compile with vc7.1.
...
Patch contributed by Paolo Invernizzi. Thanks Paolo!
llvm-svn: 16368
2004-09-15 17:06:42 +00:00