Gabor Greif
3db2902f02
simplify logic, isInvalid check is redundant
...
llvm-svn: 67216
2009-03-18 17:53:25 +00:00
Bill Wendling
7b06cbe6d4
These tests are now passing on Darwin because of r67139.
...
llvm-svn: 67215
2009-03-18 17:45:11 +00:00
Mike Stump
367fee6664
Be sure to not add weak import, if we are ignoring it.
...
llvm-svn: 67214
2009-03-18 17:39:31 +00:00
Chris Lattner
70240a84c7
remove two xfailed tests. These aren't doing any good for us until serialization is revisited.
...
llvm-svn: 67213
2009-03-18 17:16:30 +00:00
Chris Lattner
514fc5b143
aha, DAE does have to think about PHI nodes. Many thanks to "Dr Evil" (aka Duncan)
...
for pointing this out :)
llvm-svn: 67212
2009-03-18 16:48:45 +00:00
Chris Lattner
595923ff75
Fix PR3826 - InstComb assert with vector shift, by not calling ComputeNumSignBits on a vector.
...
llvm-svn: 67211
2009-03-18 16:32:19 +00:00
Chris Lattner
ab8022055a
add an assertion to make it clear that PHI nodes are not allowed.
...
llvm-svn: 67210
2009-03-18 16:23:56 +00:00
Ted Kremenek
c7182d3d4f
Refactor 'Warning', 'Extension', and 'ExtWarn' TableGen classes to subclass
...
'DiagnosticControlled'.
llvm-svn: 67209
2009-03-18 16:00:17 +00:00
Mike Stump
bc7d67ce08
Add codegen support for aggregate BlockDeclRefExprs.
...
llvm-svn: 67207
2009-03-18 15:54:29 +00:00
Mike Stump
3b79d59be7
Fix URL trimming for version information.
...
llvm-svn: 67206
2009-03-18 15:19:35 +00:00
Mike Stump
38cae30095
Ignore weak import on properties.
...
llvm-svn: 67205
2009-03-18 15:05:17 +00:00
Mike Stump
02537142c1
Improve version number.
...
llvm-svn: 67204
2009-03-18 14:00:02 +00:00
Zhou Sheng
4e2af3cb55
Explicitly check for StoreInst, do not lose the chance to delete
...
unused loads or bitcasts.
llvm-svn: 67202
2009-03-18 12:48:48 +00:00
Zhou Sheng
05bea906c1
Revert my previous change on Local.cpp, instead, fix the bug on scalarrepl.
...
If the instruction has no users, it is also not only used by debug info
and should not be deleted.
llvm-svn: 67194
2009-03-18 10:13:08 +00:00
Daniel Dunbar
a2aedc6943
Driver: Port Clang argument translation.
...
llvm-svn: 67193
2009-03-18 10:01:51 +00:00
Daniel Dunbar
e6c8319943
Driver: Bug fix, derived .gch names sometimes started with "/".
...
llvm-svn: 67192
2009-03-18 09:58:30 +00:00
Rafael Espindola
d2b64fc65b
Add -relocation-model=pic so that the test works
...
both in Linux and Darwin.
llvm-svn: 67191
2009-03-18 09:38:28 +00:00
Daniel Dunbar
d72468a61b
ccc: Pass --relocation-model as separate arguments (to match Driver).
...
llvm-svn: 67190
2009-03-18 09:36:19 +00:00
Daniel Dunbar
7591f29f7c
Driver: Add argument translation utilities to ArgList.
...
- Support things like telling which -ffoo -fno-foo option won, and
forwarding all arguments matching a certain set of options to the
tool.
llvm-svn: 67189
2009-03-18 09:29:36 +00:00
Daniel Dunbar
a3246a0638
Driver: Lift out common GCC tool and implement generic GCC tool
...
argument translation.
Also, stub out clang tool implementation a bit more.
llvm-svn: 67185
2009-03-18 08:07:30 +00:00
Daniel Dunbar
72c33f5657
Driver: Forgot to mark -### as a driver option.
...
llvm-svn: 67184
2009-03-18 08:03:24 +00:00
Daniel Dunbar
dcd05482bd
Driver: Add assert and FIXME; arguments which act as linker inputs
...
(e.g., -filelist) are currently broken.
llvm-svn: 67183
2009-03-18 08:02:40 +00:00
Daniel Dunbar
8eba365d36
Driver: Provide Arg::render implementations.
...
llvm-svn: 67182
2009-03-18 08:01:48 +00:00
Daniel Dunbar
4b6058e33a
Driver: Add "d" flag to Options.def for options which are completely
...
handled by driver.
- This is not very precise, we use it to drive the "forward-to-gcc"
predicate, when trying to talk to a generic gcc tool.
- Slightly better than what ccc was doing, and should be good
enough. Platforms which want a robust driver should implement a
proper tool chain.
llvm-svn: 67181
2009-03-18 08:01:15 +00:00
Zhou Sheng
64a6a092b1
Fix a bug.
...
If I->use_empty(), this method should return false.
llvm-svn: 67180
2009-03-18 07:56:13 +00:00
Daniel Dunbar
04c4c2c3db
Driver: ConstructJob also needs to know the destination (where to put
...
its commands).
llvm-svn: 67179
2009-03-18 07:06:02 +00:00
Daniel Dunbar
3beceaf7f1
Driver: Print version on stderr to match [gc]cc.
...
llvm-svn: 67178
2009-03-18 06:51:03 +00:00
Daniel Dunbar
0928b3125c
Driver: Implement -### (hard to tell, since we don't actually
...
construct any jobs).
llvm-svn: 67177
2009-03-18 06:49:39 +00:00
Daniel Dunbar
0381128ad9
Driver: Add forwarding methods to underlying list for PipedJob and
...
JobList.
llvm-svn: 67176
2009-03-18 06:48:39 +00:00
Mon P Wang
32c8074be6
Added missing support for widening when splitting an unary op (PR3683)
...
and expanding a bit convert (PR3711). In both cases, we extract the
valid part of the widen vector and then do the conversion.
llvm-svn: 67175
2009-03-18 06:24:04 +00:00
Daniel Dunbar
2b4bda8073
Driver: Claim inputs when we bind the InputAction.
...
llvm-svn: 67174
2009-03-18 06:21:12 +00:00
Daniel Dunbar
adfd573c3c
Driver: Make Arg::Claimed mutable.
...
- This is unfortunate but necessary to retain any utility for const.
llvm-svn: 67173
2009-03-18 06:20:32 +00:00
Daniel Dunbar
e4197f6203
Driver: Rename Command::Argv to Command::Arguments to make it clearer
...
that this does not include the implicit first argument (the executable
name).
llvm-svn: 67172
2009-03-18 06:13:37 +00:00
Daniel Dunbar
bcd775b436
Driver: Don't claim inputs when pipelining, a tool should eventually
...
claim these.
llvm-svn: 67171
2009-03-18 06:09:38 +00:00
Daniel Dunbar
0450e6dc4c
Driver: Add a dash of const.
...
llvm-svn: 67170
2009-03-18 06:07:59 +00:00
Daniel Dunbar
1a093d2049
Driver: Stub out Tool::ConstructJob.
...
llvm-svn: 67169
2009-03-18 06:00:36 +00:00
Daniel Dunbar
0f62e98d85
Add 'make cscope.files' top level target.
...
llvm-svn: 67168
2009-03-18 05:59:14 +00:00
Daniel Dunbar
aabaac4743
Driver: Fix Compilation::getArgsForToolChain, local variable was
...
shadowing member.
llvm-svn: 67167
2009-03-18 05:58:45 +00:00
Daniel Dunbar
1197adcbf1
Driver: Add two normalizations for powerpc.
...
- PR3830
llvm-svn: 67166
2009-03-18 04:41:46 +00:00
Chris Lattner
c2a0b97950
fix PR3809, codegen for inc/dec of function pointers.
...
llvm-svn: 67165
2009-03-18 04:25:13 +00:00
Chris Lattner
63d06ab65a
teach codegen to handle noop casts as lvalues.
...
llvm-svn: 67164
2009-03-18 04:02:57 +00:00
Daniel Dunbar
dc78bd9f79
Fix -E mismatch; an identifier followed by a numeric constant does not
...
require a space (to avoid concatenation) if the numeric constant had a
leading period.
- PR3819.
llvm-svn: 67163
2009-03-18 03:32:24 +00:00
Daniel Dunbar
eb843bedf9
Driver: Ditch Driver::DefaultToolChain, this can vary between compilations.
...
llvm-svn: 67162
2009-03-18 03:13:20 +00:00
Daniel Dunbar
896cb66166
Driver: I was too hasty in free'ing Actions, we sometimes share
...
Actions so a simple tree traversal isn't quite good enough. Leaving a
FIXME for now.
llvm-svn: 67161
2009-03-18 03:02:22 +00:00
Daniel Dunbar
06d918c2f4
Driver: Initialize Arg::Claimed
...
llvm-svn: 67160
2009-03-18 02:57:50 +00:00
Daniel Dunbar
bea41f1da9
Driver: Err, didn't mean to commit this part yet.
...
llvm-svn: 67159
2009-03-18 02:56:39 +00:00
Daniel Dunbar
f0eddb8510
Driver: Move actions into Compilation, and construct the compilation
...
earlier.
- This gives us a simple ownership model, and allows clients access
to more information should they ever want it.
- We now free Actions correctly.
llvm-svn: 67158
2009-03-18 02:55:38 +00:00
Evan Cheng
8df898917f
Add another test case for r64440.
...
llvm-svn: 67156
2009-03-18 02:43:01 +00:00
Daniel Dunbar
d9b80c2af8
Driver: Use custom diag printer to drop dependency on libFrontend and
...
libLex.
llvm-svn: 67155
2009-03-18 02:11:26 +00:00
Zhongxing Xu
e40de828fc
add test case.
...
llvm-svn: 67154
2009-03-18 02:07:30 +00:00