Reid Spencer [Sun, 2 Jan 2005 00:10:03 +0000 (00:10 +0000)]
Make printing a warning message optional in CheckBytecodeOutputToConsole.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19240
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Sun, 2 Jan 2005 00:08:46 +0000 (00:08 +0000)]
Prevent output of bytecode to std::cout unless the --force flag is given.
This prevents bytecode splats with usage like: cat file.ll | llvm-as -
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19239
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Sat, 1 Jan 2005 23:57:01 +0000 (23:57 +0000)]
Move the code for printing out a warning about bytecode output to a console
into lib/Support so it can be used with other tools.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19238
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Sat, 1 Jan 2005 23:56:20 +0000 (23:56 +0000)]
Implement a function to print a warning if bytecode output is to be sent to
a terminal/console.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19237
91177308-0d34-0410-b5e6-
96231b3b80d8
Jeff Cohen [Sat, 1 Jan 2005 22:54:05 +0000 (22:54 +0000)]
Add functions for determining if the stdin/out/err is connected to a
console or not.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19236
91177308-0d34-0410-b5e6-
96231b3b80d8
Jeff Cohen [Sat, 1 Jan 2005 22:32:26 +0000 (22:32 +0000)]
Add llvm-link, Linker projects to Visual Studio.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19235
91177308-0d34-0410-b5e6-
96231b3b80d8
Jeff Cohen [Sat, 1 Jan 2005 22:30:19 +0000 (22:30 +0000)]
Add missing header files to projects.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19234
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Sat, 1 Jan 2005 22:29:26 +0000 (22:29 +0000)]
Add functions for determining if the stdin/out/err is connected to a
console or not.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19233
91177308-0d34-0410-b5e6-
96231b3b80d8
Jeff Cohen [Sat, 1 Jan 2005 22:10:32 +0000 (22:10 +0000)]
Fix typo 'ompress' => 'compress'.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19232
91177308-0d34-0410-b5e6-
96231b3b80d8
Jeff Cohen [Sat, 1 Jan 2005 22:05:56 +0000 (22:05 +0000)]
Add llvm-ranlib project to Visual Studio.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19231
91177308-0d34-0410-b5e6-
96231b3b80d8
Jeff Cohen [Sat, 1 Jan 2005 22:00:28 +0000 (22:00 +0000)]
Add llvm-ar project to Visual Studio.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19230
91177308-0d34-0410-b5e6-
96231b3b80d8
Jeff Cohen [Sat, 1 Jan 2005 21:35:39 +0000 (21:35 +0000)]
Add -v option to bison.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19229
91177308-0d34-0410-b5e6-
96231b3b80d8
Jeff Cohen [Sat, 1 Jan 2005 21:34:18 +0000 (21:34 +0000)]
Add missing file SystemUtils.cpp to Support project.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19228
91177308-0d34-0410-b5e6-
96231b3b80d8
Jeff Cohen [Sat, 1 Jan 2005 20:51:41 +0000 (20:51 +0000)]
Add llvm-as project to Visual Studio
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19227
91177308-0d34-0410-b5e6-
96231b3b80d8
Jeff Cohen [Sat, 1 Jan 2005 20:18:03 +0000 (20:18 +0000)]
Add llvm-dis project to Visual Studio
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19226
91177308-0d34-0410-b5e6-
96231b3b80d8
Jeff Cohen [Sat, 1 Jan 2005 19:37:14 +0000 (19:37 +0000)]
Put executables into a single directory
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19225
91177308-0d34-0410-b5e6-
96231b3b80d8
Jeff Cohen [Sat, 1 Jan 2005 18:58:23 +0000 (18:58 +0000)]
Fix bountiful sources of VC++ 'possible loss of data' warnings
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19224
91177308-0d34-0410-b5e6-
96231b3b80d8
Jeff Cohen [Sat, 1 Jan 2005 18:17:40 +0000 (18:17 +0000)]
Improve TableGen dependencies
Move TableGen generated files out of the src tree
Add descriptions to the custom build steps
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19223
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Sat, 1 Jan 2005 18:16:16 +0000 (18:16 +0000)]
Add HAVE_SBRK
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19222
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Sat, 1 Jan 2005 18:14:18 +0000 (18:14 +0000)]
Ignore some files
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19221
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 1 Jan 2005 16:22:27 +0000 (16:22 +0000)]
This is a bulk commit that implements the following primary improvements:
* We can now fold cast instructions into select instructions that
have at least one constant operand.
* We now optimize expressions more aggressively based on bits that are
known to be zero. These optimizations occur a lot in code that uses
bitfields even in simple ways.
* We now turn more cast-cast sequences into AND instructions. Before we
would only do this if it if all types were unsigned. Now only the
middle type needs to be unsigned (guaranteeing a zero extend).
* We transform sign extensions into zero extensions in several cases.
This corresponds to these test/Regression/Transforms/InstCombine testcases:
2004-11-22-Missed-and-fold.ll
and.ll: test28-29
cast.ll: test21-24
and-or-and.ll
cast-cast-to-and.ll
zeroext-and-reduce.ll
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19220
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 1 Jan 2005 16:14:46 +0000 (16:14 +0000)]
New testcases that we should combine.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19219
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 1 Jan 2005 16:14:18 +0000 (16:14 +0000)]
New testcase for common bitfield manipulation instruction sequences.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19218
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 1 Jan 2005 16:13:43 +0000 (16:13 +0000)]
Add a bunch of tests for cases that should be eliminated.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19217
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 1 Jan 2005 16:13:19 +0000 (16:13 +0000)]
Add a bunch of tests for ANDs that should be eliminated.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19216
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 1 Jan 2005 16:12:52 +0000 (16:12 +0000)]
This now works.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19215
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 1 Jan 2005 16:10:12 +0000 (16:10 +0000)]
Fix a FIXME: Select instructions on longs were miscompiled.
While we're at it, improve codegen of select instructions. For this
testcase:
int %test(bool %C, int %A, int %B) {
%D = select bool %C, int %A, int %B
ret int %D
}
We used to generate this code:
_test:
cmpwi cr0, r3, 0
bne .LBB_test_2 ;
.LBB_test_1: ;
b .LBB_test_3 ;
.LBB_test_2: ;
or r5, r4, r4
.LBB_test_3: ;
or r3, r5, r5
blr
Now we emit:
_test:
cmpwi cr0, r3, 0
bne .LBB_test_2 ;
.LBB_test_1: ;
or r4, r5, r5
.LBB_test_2: ;
or r3, r4, r4
blr
-Chris
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19214
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 1 Jan 2005 16:06:57 +0000 (16:06 +0000)]
Substantially improve the code generated by non-folded setcc instructions.
In particular, instead of compiling this:
bool %test(int %A, int %B) {
%C = setlt int %A, %B
ret bool %C
}
to this:
test:
save %sp, -96, %sp
subcc %i0, %i1, %g0
bl .LBBtest_1 !
nop
ba .LBBtest_2 !
nop
.LBBtest_1: !
or %g0, 1, %i0
ba .LBBtest_3 !
nop
.LBBtest_2: !
or %g0, 0, %i0
ba .LBBtest_3 !
nop
.LBBtest_3: !
restore %g0, %g0, %g0
retl
nop
We now compile it to this:
test:
save %sp, -96, %sp
subcc %i0, %i1, %g0
or %g0, 1, %i0
bl .LBBtest_2 !
nop
.LBBtest_1: !
or %g0, %g0, %i0
.LBBtest_2: !
restore %g0, %g0, %g0
retl
nop
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19213
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 1 Jan 2005 16:02:12 +0000 (16:02 +0000)]
Implement SimplifyCFG/DeadSetCC.ll
SimplifyCFG is one of those passes that we use for final cleanup: it should
not rely on other passes to clean up its garbage. This fixes the "why are
trivially dead setcc's in the output of gccas" problem.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19212
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 1 Jan 2005 16:00:56 +0000 (16:00 +0000)]
Add new test to make sure simplifycfg doesn't leave around trivially
dead instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19211
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 1 Jan 2005 15:59:57 +0000 (15:59 +0000)]
Allow getZeroExtend and getSignExtend to work with boolean inputs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19210
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 1 Jan 2005 15:58:55 +0000 (15:58 +0000)]
Add a useful accessor
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19209
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 1 Jan 2005 15:58:41 +0000 (15:58 +0000)]
Add two helper functions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19208
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Sat, 1 Jan 2005 09:26:55 +0000 (09:26 +0000)]
Update to autoconf 2.59 standards.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19207
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Fri, 31 Dec 2004 22:56:14 +0000 (22:56 +0000)]
Correct the conditional test for non-portable tools so that it will
correctly omit them for non-Unix operating systems.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19206
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Fri, 31 Dec 2004 22:54:28 +0000 (22:54 +0000)]
For PR351:
Make LLVM_ON_UNIX and LLVM_ON_WIN32 available in the makefiles
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19205
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Fri, 31 Dec 2004 19:48:59 +0000 (19:48 +0000)]
Describe both objdir==srcdir and objdir!=srcdir methods of building LLVM
libraries and tools. Thanks to Henrik Bach for this suggestion.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19204
91177308-0d34-0410-b5e6-
96231b3b80d8
Jeff Cohen [Fri, 31 Dec 2004 19:03:31 +0000 (19:03 +0000)]
Where do these tabs keep coming from???
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19203
91177308-0d34-0410-b5e6-
96231b3b80d8
Jeff Cohen [Fri, 31 Dec 2004 19:01:08 +0000 (19:01 +0000)]
Mostly cleanup, but also some bug fixes, for win32/Path.cpp
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19202
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Fri, 31 Dec 2004 05:53:27 +0000 (05:53 +0000)]
Fix a compilation error for the case where mallinfo() is not available.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19201
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Fri, 31 Dec 2004 05:49:15 +0000 (05:49 +0000)]
For PR351:
* lib/System depends on sbrk(3), make sure we check for it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19200
91177308-0d34-0410-b5e6-
96231b3b80d8
Jeff Cohen [Fri, 31 Dec 2004 05:07:26 +0000 (05:07 +0000)]
Get rid of those nasty tabs...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19199
91177308-0d34-0410-b5e6-
96231b3b80d8
Jeff Cohen [Fri, 31 Dec 2004 04:39:07 +0000 (04:39 +0000)]
Bring win32/Path.cpp up to date with respect to Unix/Path.cpp
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19198
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Fri, 31 Dec 2004 00:13:14 +0000 (00:13 +0000)]
* Add missing libraries: Linker, Archive, SparcV8
* Make library descriptions consistently lower case.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19197
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Thu, 30 Dec 2004 23:13:12 +0000 (23:13 +0000)]
* Don't include weak definitions as a definition
* Make subordinate libraries presented with a vertical list instead of all
listed on a single line.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19196
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Thu, 30 Dec 2004 23:12:04 +0000 (23:12 +0000)]
Add a section on library dependencies now that GenLibDeps.html is written.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19195
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Thu, 30 Dec 2004 23:07:56 +0000 (23:07 +0000)]
A Perl script to generate an HTML definition list containing the LLVM
library dependencies, for documentation purposes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19194
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Thu, 30 Dec 2004 17:51:57 +0000 (17:51 +0000)]
Fix the help documentation to not imply multiple archive files can be
processed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19193
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Thu, 30 Dec 2004 05:36:08 +0000 (05:36 +0000)]
For PR351:
* Place a try/catch block around the entire tool to Make sure std::string
exceptions are caught and printed before exiting the tool.
* Make sure we catch unhandled exceptions at the top level so that we don't
abort with a useless message but indicate than an unhandled exception was
generated.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19192
91177308-0d34-0410-b5e6-
96231b3b80d8
Jeff Cohen [Thu, 30 Dec 2004 03:02:31 +0000 (03:02 +0000)]
Fix MINGW compilation errors
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19190
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Wed, 29 Dec 2004 07:07:57 +0000 (07:07 +0000)]
* Fix a bug in an m4 macro that used an incorrect test operator
* Add CAN_DLOPEN_SELF so we can determine if dlopen(0) will open the
program or not.
* Correct a warning messages to be a little more specific on what it checks
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19184
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Wed, 29 Dec 2004 06:59:36 +0000 (06:59 +0000)]
Fix a Bourne Shell syntax error in a test
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19183
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Wed, 29 Dec 2004 05:47:04 +0000 (05:47 +0000)]
Fix one of the names to not have a . in front of it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19182
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 29 Dec 2004 04:39:50 +0000 (04:39 +0000)]
Bug fixed
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19181
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 29 Dec 2004 04:36:02 +0000 (04:36 +0000)]
Fix PR491 and testcase Transforms/DeadStoreElimination/2004-12-28-PartialStore.ll
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19180
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 29 Dec 2004 04:35:30 +0000 (04:35 +0000)]
Add a comment, add a new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19179
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 29 Dec 2004 04:27:26 +0000 (04:27 +0000)]
New testcase for PR491
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19178
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 29 Dec 2004 04:03:23 +0000 (04:03 +0000)]
Bug fixed
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19177
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 29 Dec 2004 04:00:09 +0000 (04:00 +0000)]
Fix PR490
Fix testcase CodeGen/CBackend/2004-12-28-LogicalConstantExprs.ll
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19176
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 29 Dec 2004 03:57:25 +0000 (03:57 +0000)]
new testcase for PR490
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19175
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Wed, 29 Dec 2004 03:17:30 +0000 (03:17 +0000)]
XFAIL this test everywhere.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19174
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Wed, 29 Dec 2004 03:16:40 +0000 (03:16 +0000)]
XFAIL this everywhere, the CFE doesn't support bitfield initialization.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19173
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Wed, 29 Dec 2004 01:20:24 +0000 (01:20 +0000)]
Remove potential platform portability issue with size of "int".
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19172
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Tue, 28 Dec 2004 07:59:22 +0000 (07:59 +0000)]
Correct the name of the variable for the LLVM examples directory so that
parallel builds don't attempt to create it twice.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19171
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Tue, 28 Dec 2004 07:56:14 +0000 (07:56 +0000)]
Make the x86_64 target names match between def and use. Thanks Misha.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19170
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Tue, 28 Dec 2004 06:34:11 +0000 (06:34 +0000)]
Make the 64-bit x86 target named "x86_64" instead of "AMD64".
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19169
91177308-0d34-0410-b5e6-
96231b3b80d8
Misha Brukman [Mon, 27 Dec 2004 19:05:16 +0000 (19:05 +0000)]
Add a note about registering the backend so it's available in LLC and LLI
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19168
91177308-0d34-0410-b5e6-
96231b3b80d8
Jeff Cohen [Mon, 27 Dec 2004 16:49:34 +0000 (16:49 +0000)]
Bring VS projects up to date with respect to recent changes
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19167
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Mon, 27 Dec 2004 09:33:46 +0000 (09:33 +0000)]
Don't create symbolic links for lib/System any more. It doesn't need them.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19166
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Mon, 27 Dec 2004 08:51:55 +0000 (08:51 +0000)]
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
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19165
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Mon, 27 Dec 2004 08:50:27 +0000 (08:50 +0000)]
Make it possible to reconfigure a project as well as just LLVM main dir.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19164
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Mon, 27 Dec 2004 08:03:04 +0000 (08:03 +0000)]
Fix a bug that made the nightly tester *really* slow. During changes for
portability, the --track-space option was inadvertently ignored. This patch
fixes that so that sys::Process::GetMallocUsage() is only invoked if the
--track-spaces option is given. Apparently the mallinfo() call that
GetMallocUsage() uses is *very* slow, especially when processing very large
modules like projects/llvm-test/MultiSource/Applications/kimwitu++.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19163
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Mon, 27 Dec 2004 06:18:02 +0000 (06:18 +0000)]
For PR351:
* sys::PreventCoreFiles -> sys::Process::PreventCoreFiles
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19162
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Mon, 27 Dec 2004 06:17:50 +0000 (06:17 +0000)]
For PR351:
* Ensure #includes are wrapped with appropriate HAVE_ guards
* Account for variations in time.h and sys/time.h inclusion.
* Add macros for getting wait(2) exit status correctly (per autoconf sugg.)
* Implement ThrowErrno in terms of strerror_r, strerror or none based on
what is available on the platform.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19161
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Mon, 27 Dec 2004 06:17:39 +0000 (06:17 +0000)]
For PR351:
* Remove redundant #includes that are now in Unix.h
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19160
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Mon, 27 Dec 2004 06:17:27 +0000 (06:17 +0000)]
For PR351:
* Move implementation of sys::PreventCoreFiles function to this file from
the now defunct SysConfig abstraction.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19159
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Mon, 27 Dec 2004 06:17:15 +0000 (06:17 +0000)]
For PR351:
* Ensure #includes are wrapped with appropriate HAVE_ guards
* Ensure variations in "dirent" structure are accounted for.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19158
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Mon, 27 Dec 2004 06:17:03 +0000 (06:17 +0000)]
For PR351:
* Ensure #includes are wrapped with appropriate HAVE_ guards
* Consolidate implementation from operating system specific directory.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19157
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Mon, 27 Dec 2004 06:16:52 +0000 (06:16 +0000)]
For PR351:
* Ensure #includes are wrapped with appropriate HAVE_ guards
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19156
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Mon, 27 Dec 2004 06:16:38 +0000 (06:16 +0000)]
For PR351:
* Consolidate implementation for Unix systems into Unix/TimeValue.cpp
* Avoid use of symbolic link to #include platform-specific implementation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19155
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Mon, 27 Dec 2004 06:16:25 +0000 (06:16 +0000)]
For PR351:
* Consolidate implementation for Unix systems into Unix/Program.cpp
* Avoid use of symbolic link to #include platform-specific implementation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19154
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Mon, 27 Dec 2004 06:16:11 +0000 (06:16 +0000)]
For PR351:
* Consolidate implementation for Unix systems into Unix/Signals.cpp
* Avoid use of symbolic link to #include platform-specific implementation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19153
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Mon, 27 Dec 2004 06:15:57 +0000 (06:15 +0000)]
For PR351:
* Consolidate implementation for Unix systems into Unix/Memory.cpp
* Avoid use of symbolic link to #include platform-specific implementation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19152
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Mon, 27 Dec 2004 06:15:43 +0000 (06:15 +0000)]
For PR351:
* Consolidate implementation for Unix systems into Unix/MappedFile.cpp
* Avoid use of symbolic link to #include platform-specific implementation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19151
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Mon, 27 Dec 2004 06:15:29 +0000 (06:15 +0000)]
For PR351:
* Consolidate implementation for Unix systems into Unix/Process.cpp
* Avoid use of symbolic link to #include platform-specific implementation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19150
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Mon, 27 Dec 2004 06:15:14 +0000 (06:15 +0000)]
For PR351:
SysConf abstraction was pointless because it had a single function in it that
pertained only to the current process. So merge it into the Process abstraction
and remove the files completely.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19149
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Mon, 27 Dec 2004 06:15:02 +0000 (06:15 +0000)]
For PR351:
* Add checks for sterror and strerror_r functions
* Add check to determine if /dev/zero is needed for allocating RWX memory.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19148
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Mon, 27 Dec 2004 06:14:48 +0000 (06:14 +0000)]
For PR351:
Provide a check to determine if /dev/zero is needed for AllocateRWX function.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19147
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Mon, 27 Dec 2004 03:15:28 +0000 (03:15 +0000)]
Oops, reverse the logic on a test for WITH_LLVMGCCDIR to make it define
the path names correctly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19146
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Mon, 27 Dec 2004 03:14:43 +0000 (03:14 +0000)]
Provide a value for HAVE_MMAP_ANONYMOUS variable, for consistency with
other #define's.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19145
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Sun, 26 Dec 2004 05:47:26 +0000 (05:47 +0000)]
Describe the --with-llvmgccdir option to configure.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19144
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Sun, 26 Dec 2004 05:21:13 +0000 (05:21 +0000)]
Revert the last patch so that the LLVMGCCDIR environment variable is
still viable and will make use of the resurrected --with-llvmgccdir
configure option.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19143
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Sat, 25 Dec 2004 07:31:29 +0000 (07:31 +0000)]
For PR351:
* Make sure all headers used by lib/System have checks
* Use "standard" autoconf checks for certain problematic headers
For PR432:
* Resurrect --with-llvmgccdir so a specific llvm-gcc/llvm-g++ installation
can be specified.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19142
91177308-0d34-0410-b5e6-
96231b3b80d8
Jeff Cohen [Sat, 25 Dec 2004 04:50:17 +0000 (04:50 +0000)]
mingw doesn't support the official debug API.
Old versions of the C runtime somehow get loaded into the process. Make
sure they aren't searched for symbols.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19141
91177308-0d34-0410-b5e6-
96231b3b80d8
Jeff Cohen [Fri, 24 Dec 2004 16:26:47 +0000 (16:26 +0000)]
Get VC++ building again
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19140
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Fri, 24 Dec 2004 15:11:23 +0000 (15:11 +0000)]
Ignore the autom4te.cache directoy.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19139
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Fri, 24 Dec 2004 14:47:34 +0000 (14:47 +0000)]
Make sure llvm-g++ gets the right path for the llvm tools.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19138
91177308-0d34-0410-b5e6-
96231b3b80d8
Jeff Cohen [Fri, 24 Dec 2004 07:57:09 +0000 (07:57 +0000)]
Eliminate use of ltdl.c when doing a VC++ build. Because libtool isn't used,
ltdl's LGPL license would infect all of LLVM.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19137
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Fri, 24 Dec 2004 06:49:16 +0000 (06:49 +0000)]
Make the symbolic link using the correct variable!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19136
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Fri, 24 Dec 2004 06:32:54 +0000 (06:32 +0000)]
Remove references to LLVMGCCDIR because it was only used to provide a
value for the --with-llvmgccdir configure option which is no longer
supported.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19135
91177308-0d34-0410-b5e6-
96231b3b80d8