Bill Wendling
0d630c33b2
Need <iostream> for the time being.
...
llvm-svn: 31821
2006-11-17 10:09:22 +00:00
Bill Wendling
605795ea8c
Need iostream to be included for the time being.
...
llvm-svn: 31820
2006-11-17 10:05:07 +00:00
Reid Spencer
3005d47797
Minor style fixes from review.
...
llvm-svn: 31685
2006-11-11 19:59:25 +00:00
Reid Spencer
471bcb750e
Add a -disable-loop-extraction option to bugpoint.
...
llvm-svn: 31683
2006-11-11 19:05:02 +00:00
Reid Spencer
75db664f44
For PR998:
...
Fix an infinite loop in the Linker and a few other assorted link problems.
Patch contributed by Scott Michel. Thanks, Scott!
llvm-svn: 31680
2006-11-11 11:54:25 +00:00
Chris Lattner
7275b02ea5
completely revert patrick's enhancement to bugpoint. Though it makes bugpoint
...
speed up, it sometimes makes it crash on complex bc files, which isn't very nice.
With this, bugpoint can reduce the 176.gcc failure.
llvm-svn: 31589
2006-11-09 06:24:56 +00:00
Chris Lattner
f1a1a7ae6f
add a new bugpoint mode -llc-safe. This uses LLC for both halves of a
...
miscompilation. This is useful for working around GCC+CBE bugs or for handling
programs that CBE doesn't support (e.g. inline asm) when searching for
optimizer bugs.
llvm-svn: 31588
2006-11-09 05:57:53 +00:00
Reid Spencer
fdff938a7e
For PR950:
...
This patch converts the old SHR instruction into two instructions,
AShr (Arithmetic) and LShr (Logical). The Shr instructions now are not
dependent on the sign of their operands.
llvm-svn: 31542
2006-11-08 06:47:33 +00:00
Reid Spencer
5e5a05e753
Fix a problem in the the last patch that subverts error message printing.
...
llvm-svn: 31466
2006-11-05 19:53:08 +00:00
Jeff Cohen
7d6f3db3e2
Unbreak VC++ build.
...
llvm-svn: 31464
2006-11-05 19:31:28 +00:00
Reid Spencer
8bfe22d08d
Make llvm2cpp -pedantic clean.
...
llvm-svn: 31389
2006-11-03 00:05:16 +00:00
Reid Spencer
de46e48420
For PR786:
...
Turn on -Wunused and -Wno-unused-parameter. Clean up most of the resulting
fall out by removing unused variables. Remaining warnings have to do with
unused functions (I didn't want to delete code without review) and unused
variables in generated code. Maintainers should clean up the remaining
issues when they see them. All changes pass DejaGnu tests and Olden.
llvm-svn: 31380
2006-11-02 20:25:50 +00:00
Reid Spencer
7eb55b395f
For PR950:
...
Replace the REM instruction with UREM, SREM and FREM.
llvm-svn: 31369
2006-11-02 01:53:59 +00:00
Bill Wendling
ce3afd64e9
Forgot a }
...
llvm-svn: 31226
2006-10-27 20:22:04 +00:00
Bill Wendling
74a4a2a80b
Re-added the part where it tries to remove all global variables first.
...
llvm-svn: 31225
2006-10-27 20:18:06 +00:00
Devang Patel
a9abd62ede
Save temp. bc files when saveTemps flag is true. Use final output file
...
name supplied by linker to construct temp bc file names.
Remove tabs.
llvm-svn: 31205
2006-10-26 20:46:22 +00:00
Reid Spencer
7e80b0b31e
For PR950:
...
Make necessary changes to support DIV -> [SUF]Div. This changes llvm to
have three division instructions: signed, unsigned, floating point. The
bytecode and assembler are bacwards compatible, however.
llvm-svn: 31195
2006-10-26 06:15:43 +00:00
Bill Wendling
3f83343c52
Fix for PR960. Improves bugpoint so that it removes global variable
...
initializers as well. This is only a first pass. It can be slow because
it clones the module for each pass. An obvious improvement is not to do that.
llvm-svn: 31182
2006-10-25 18:36:14 +00:00
Devang Patel
07631698ac
Supply alignment info to linker through LLVMSymbol.
...
llvm-svn: 31181
2006-10-25 18:10:07 +00:00
Devang Patel
b0a5e39b26
Instead of hard coding global prefix, use TargetAsmInfo.
...
Add LTO destructor.
llvm-svn: 31168
2006-10-24 18:41:02 +00:00
Devang Patel
fdf6144168
Fix typo. Add more comment. Avoid extra hash_map search.
...
llvm-svn: 31144
2006-10-23 23:57:53 +00:00
Devang Patel
6c01383118
Add removeModule().
...
llvm-svn: 31142
2006-10-23 23:12:26 +00:00
Reid Spencer
e0fc4dfc22
For PR950:
...
This patch implements the first increment for the Signless Types feature.
All changes pertain to removing the ConstantSInt and ConstantUInt classes
in favor of just using ConstantInt.
llvm-svn: 31063
2006-10-20 07:07:24 +00:00
Chris Lattner
8adfe927bb
Make the bugpoint reduction heuristics more effective. Patch submitted by
...
Domagoj Babic, thanks!
llvm-svn: 30863
2006-10-10 21:42:25 +00:00
Devang Patel
d90c2d7386
Use FindProgramByName instead of FindExecutable.
...
llvm-svn: 30846
2006-10-09 21:16:05 +00:00
Devang Patel
060c4857ca
Do error checking.
...
llvm-svn: 30842
2006-10-09 20:20:13 +00:00
Chris Lattner
dfa8d9258a
Remove a dead var noticed by Yorion
...
llvm-svn: 30841
2006-10-09 20:12:37 +00:00
Devang Patel
dacaf1e375
Use GetTemporaryDirectory. Fix http://llvm.org/bugs/show_bug.cgi?id=894
...
llvm-svn: 30838
2006-10-09 19:04:51 +00:00
Chris Lattner
ddfe6998de
simplify code
...
llvm-svn: 30661
2006-09-28 23:24:48 +00:00
Nick Lewycky
25587182f3
Enable 'predsimplify' optimization.
...
llvm-svn: 30589
2006-09-24 00:08:16 +00:00
Devang Patel
5af1651f7d
Use abstract class to facilitate dlopen() interface.
...
llvm-svn: 30569
2006-09-21 17:22:55 +00:00
Chris Lattner
ff8a6b86db
comment out debug code
...
llvm-svn: 30401
2006-09-15 23:01:10 +00:00
Chris Lattner
634bc046ca
Add a new -cbe-bug mode, which works just like -run-llc, except that it uses
...
LLC as the reference compiler to reduce testcases for bugs in GCC.
llvm-svn: 30400
2006-09-15 21:29:15 +00:00
Anton Korobeynikov
d61d39ec53
Adding dllimport, dllexport and external weak linkage types.
...
DLL* linkages got full (I hope) codegeneration support in C & both x86
assembler backends.
External weak linkage added for future use, we don't provide any
codegeneration, etc. support for it.
llvm-svn: 30374
2006-09-14 18:23:27 +00:00
Chris Lattner
3f0ffd31cf
add a new (hidden) -disable-core-files option
...
llvm-svn: 30318
2006-09-14 06:17:09 +00:00
Devang Patel
dd53fd41cd
Add comment.
...
llvm-svn: 30315
2006-09-14 05:49:10 +00:00
Nick Lewycky
a2c681ab41
Fix --enable-valgrind. Add room for the new arguments, and don't keep
...
a pointer to a temporary.
llvm-svn: 30312
2006-09-14 04:20:17 +00:00
Nick Lewycky
7faef23f02
Add --enable-valgrind option to run optimizations through valgrind to
...
pick up on memory errors.
llvm-svn: 30311
2006-09-14 03:49:54 +00:00
Devang Patel
e480d2a2d7
GlobalValue with InternalLinkage may have operands with ExternalLinkage
...
type. Do not ignore these operands while finding external references.
llvm-svn: 30310
2006-09-14 01:35:13 +00:00
Chris Lattner
70b9f5bd1e
Move ipsccp pass earlier to clean up obvious bogosities
...
llvm-svn: 30232
2006-09-09 21:30:13 +00:00
Chris Lattner
fe01c281a9
ok this really works :)
...
llvm-svn: 30195
2006-09-08 18:33:49 +00:00
Devang Patel
842163d60a
Remove redundant include.
...
llvm-svn: 30194
2006-09-08 18:20:25 +00:00
Chris Lattner
eda4a9e008
Need to include Makefile.config to get the value of $(OS). Add a comment.
...
llvm-svn: 30193
2006-09-08 18:08:50 +00:00
Anton Korobeynikov
dc7b51910b
Enabling LTO building on Darwin only right now. This probably should be
...
removed after 'PIC vs non-PIC' problem solution
llvm-svn: 30192
2006-09-08 18:00:43 +00:00
Devang Patel
5606dd8a45
Using addPassesToEmitWholeFile is not a good idea here.
...
Use FunctionPassManager to do the job.
llvm-svn: 30160
2006-09-07 21:41:11 +00:00
Devang Patel
ce2c1eb154
Add linker into list of LINK_COMPONENTS.
...
llvm-svn: 30159
2006-09-07 21:36:55 +00:00
Devang Patel
12ee0cbde4
Add lto into the list of PARALLEL_DIRS
...
llvm-svn: 30154
2006-09-07 20:21:58 +00:00
Devang Patel
5b3510abd3
Use addPassesToEmitWholeFile() instead of addPassesToEmitFile()
...
llvm-svn: 30153
2006-09-07 20:20:56 +00:00
Chris Lattner
3b18c1a946
Change DisambiguateGlobalSymbols to not rename asm globals, which breaks
...
bugpoint on leopard.
llvm-svn: 30150
2006-09-07 18:21:07 +00:00
Devang Patel
5561aa7271
Add getTargetTriple() that linker can use to query target architecture.
...
llvm-svn: 30132
2006-09-06 20:16:28 +00:00