Dan Gohman
|
fb83b043eb
|
Revert r111058, the lint check for indirectbr successors that aren't
address-taken. This can occur normally, if the code which took the
address got DCEd.
llvm-svn: 111121
|
2010-08-16 14:39:19 +00:00 |
Dan Gohman
|
21e6dc6aa3
|
Add a lint check for an indirectbr destination which has not
had its address taken.
llvm-svn: 111058
|
2010-08-13 23:56:28 +00:00 |
Owen Anderson
|
a7aed18624
|
Reapply r110396, with fixes to appease the Linux buildbot gods.
llvm-svn: 110460
|
2010-08-06 18:33:48 +00:00 |
Owen Anderson
|
bda59bd247
|
Revert r110396 to fix buildbots.
llvm-svn: 110410
|
2010-08-06 00:23:35 +00:00 |
Owen Anderson
|
755aceb5d0
|
Don't use PassInfo* as a type identifier for passes. Instead, use the address of the static
ID member as the sole unique type identifier. Clean up APIs related to this change.
llvm-svn: 110396
|
2010-08-05 23:42:04 +00:00 |
Dan Gohman
|
da7182e116
|
Add a convenient form of AliasAnalysis::alias for the case where the sizes
are unknown.
llvm-svn: 110090
|
2010-08-03 00:56:30 +00:00 |
Dan Gohman
|
d8968da2c5
|
Add a lint check for indirectbr with no successors.
llvm-svn: 110074
|
2010-08-02 23:06:43 +00:00 |
Owen Anderson
|
a57b97e7e7
|
Fix batch of converting RegisterPass<> to INTIALIZE_PASS().
llvm-svn: 109045
|
2010-07-21 22:09:45 +00:00 |
Dan Gohman
|
c128e70ff2
|
Add a lint check for mismatched return types, inspired by PR6944.
llvm-svn: 108162
|
2010-07-12 18:02:04 +00:00 |
Dan Gohman
|
1e33b18e28
|
Add some more TODO comments.
llvm-svn: 107657
|
2010-07-06 15:23:00 +00:00 |
Dan Gohman
|
f855b39edd
|
Add a comment.
llvm-svn: 107656
|
2010-07-06 15:21:57 +00:00 |
Dan Gohman
|
49a372cebc
|
Fix the noalias checking so that it doesn't worry about
an argument aliasing itself. Thanks Duncan!
llvm-svn: 105288
|
2010-06-01 20:51:40 +00:00 |
Dan Gohman
|
0fa67e479a
|
Add lint checks for function attributes.
llvm-svn: 105009
|
2010-05-28 21:43:57 +00:00 |
Dan Gohman
|
c575ec61ea
|
Fix lint's memcpy and memmove checks, and its basic block traversal.
llvm-svn: 104970
|
2010-05-28 17:44:00 +00:00 |
Dan Gohman
|
862f034188
|
Detect self-referential values.
llvm-svn: 104957
|
2010-05-28 16:45:33 +00:00 |
Dan Gohman
|
cef9fc37f4
|
Eli pointed out that va_arg instruction result values don't
reference the stack.
llvm-svn: 104951
|
2010-05-28 16:34:49 +00:00 |
Dan Gohman
|
54d7aaa819
|
Teach lint how to look through simple store+load pairs and other
effective no-op constructs, to make it more effective on
unoptimized IR.
llvm-svn: 104950
|
2010-05-28 16:21:24 +00:00 |
Dan Gohman
|
ddba4b725a
|
Add a lint check for returning the address of stack memory.
llvm-svn: 104936
|
2010-05-28 04:33:42 +00:00 |
Dan Gohman
|
084bcb1322
|
Fix Lint printing warnings multiple times. Remove the ErrorStr
option from lintModule, which was an artifact from being
based on Verifier code.
llvm-svn: 104765
|
2010-05-26 22:28:53 +00:00 |
Dan Gohman
|
a20a5cd24f
|
Reinstate checking of stackrestore, with checking for both Read
and Write, and add a comment explaining this.
llvm-svn: 104756
|
2010-05-26 22:21:25 +00:00 |
Dan Gohman
|
996bc42a26
|
Stackrestore is not a load.
llvm-svn: 104752
|
2010-05-26 22:00:10 +00:00 |
Dan Gohman
|
c96c6db59d
|
Remove a TODO which isn't practical.
llvm-svn: 104748
|
2010-05-26 21:50:41 +00:00 |
Dan Gohman
|
1249adf160
|
Implement checking of the tail keyword.
llvm-svn: 104744
|
2010-05-26 21:46:36 +00:00 |
Dan Gohman
|
299e7b93ac
|
Add lint checks for invalid uses of memory.
llvm-svn: 102733
|
2010-04-30 19:05:00 +00:00 |
Dan Gohman
|
c951e6e414
|
Tidy a comment.
llvm-svn: 102041
|
2010-04-22 01:30:05 +00:00 |
Dan Gohman
|
9ba08a4631
|
Add several more lint checks.
llvm-svn: 100841
|
2010-04-09 01:39:53 +00:00 |
Dan Gohman
|
7808d490d3
|
Add a few more lint checks.
llvm-svn: 100825
|
2010-04-08 23:05:57 +00:00 |
Dan Gohman
|
98bc4371c7
|
Add a -lint pass which checks for common sources of undefined or likely
unintended behavior.
llvm-svn: 100798
|
2010-04-08 18:47:09 +00:00 |