summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Add comments.Zhongxing Xu2009-11-091-0/+1
| | | | llvm-svn: 86532
* Add checker for CWE-588: Attempt to Access Child of a Non-structure Pointer.Zhongxing Xu2009-11-098-8/+102
| | | | llvm-svn: 86529
* Update CMakeDaniel Dunbar2009-11-091-0/+2
| | | | llvm-svn: 86528
* Put all long strings in 80-col.Zhongxing Xu2009-11-093-3/+7
| | | | llvm-svn: 86527
* make this handle redefinition of malloc with different prototype correctly.Chris Lattner2009-11-091-3/+3
| | | | llvm-svn: 86525
* if a 'with overflow' intrinsic just has the normal result used, simplifyChris Lattner2009-11-092-0/+53
| | | | | | it to a normal binop. Patch by Alastair Lynn, testcase by me. llvm-svn: 86524
* Add checker for CWE-587: Assignment of a Fixed Address to a Pointer.Zhongxing Xu2009-11-096-2/+83
| | | | llvm-svn: 86523
* Hide a couple of options.Evan Cheng2009-11-092-2/+3
| | | | llvm-svn: 86522
* 80 col.Evan Cheng2009-11-091-2/+4
| | | | llvm-svn: 86521
* Add checker for CWE-469: Use of Pointer Subtraction to Determine Size. ThisZhongxing Xu2009-11-094-1/+78
| | | | | | | checker does not build sink nodes. Because svaluator computes an unknown value for the subtraction now. llvm-svn: 86517
* Rearrange function to avoid recursive use-after-free.Eli Friedman2009-11-091-17/+18
| | | | llvm-svn: 86516
* fix PR5104: when printing a single character, return the result ofChris Lattner2009-11-091-9/+13
| | | | | | putchar in case there is an error. llvm-svn: 86515
* fix some bogus asserts, PR5049Chris Lattner2009-11-091-4/+4
| | | | llvm-svn: 86514
* Explicitly note that pre-inc/dec lvalues are not supported yet, so that itEli Friedman2009-11-091-1/+5
| | | | | | doesn't crash. (Such expressions are valid in C++, but not in C.) llvm-svn: 86513
* Remove dead code.Zhongxing Xu2009-11-091-3/+0
| | | | llvm-svn: 86512
* random tidyChris Lattner2009-11-091-2/+1
| | | | llvm-svn: 86511
* remove a redundant printout, LinkInArchive prints this as well.Chris Lattner2009-11-091-1/+0
| | | | llvm-svn: 86510
* fix thinkoChris Lattner2009-11-091-1/+1
| | | | llvm-svn: 86509
* Add hack to make the given testcase work. As far as I can tell, this change isEli Friedman2009-11-092-1/+16
| | | | | | reasonably safe, but it doesn't seem like the right solution. llvm-svn: 86508
* mention that clang defaults to C99 mode, PR5388Chris Lattner2009-11-091-0/+6
| | | | llvm-svn: 86507
* remove a mostly obsolete "word of warning"Chris Lattner2009-11-091-18/+1
| | | | llvm-svn: 86506
* Add a test case for CWE-467, and simplify the wording of the warning.Zhongxing Xu2009-11-092-1/+9
| | | | llvm-svn: 86504
* enhance PHI slicing to handle the case when a slicable PHI is beginChris Lattner2009-11-092-74/+212
| | | | | | used by a chain of other PHIs. llvm-svn: 86503
* Rename areAllFields32Or64BitBasicType to canExpandIndirectArgument to closer ↵Daniel Dunbar2009-11-091-10/+29
| | | | | | | | match what it is semantically used for. Also, fix a major bug where fields from a C++ struct might be dropped -- the expand action doesn't handle them correctly yet. llvm-svn: 86502
* Remove a useless variable that got left behind.Eli Friedman2009-11-091-4/+0
| | | | llvm-svn: 86501
* Unify the codepaths used to verify base and member initializers for explicitlyEli Friedman2009-11-099-200/+65
| | | | | | | | | | | | | | | | and implicitly defined constructors. This has a number of benefits: 1. Less code. 2. Explicit and implicit constructors get the same diagnostics. 3. The AST explicitly contains constructor calls from implicit default constructors. This allows handing some cases that previously weren't handled correctly in IRGen without any additional code. Specifically, implicit default constructors containing calls to constructors with default arguments are now handled correctly. llvm-svn: 86500
* Small cleanups.Owen Anderson2009-11-091-8/+4
| | | | llvm-svn: 86499
* Revert my previous patch to ABCD and fix things the right way. There are ↵Owen Anderson2009-11-093-13/+58
| | | | | | | | | | | | | two problems addressed here: 1) We need to avoid processing sigma nodes as phi nodes for constraint generation. 2) We need to generate constraints for comparisons against constants properly. This includes our first working ABCD test! llvm-svn: 86498
* comment typos pointed out by DuncanChris Lattner2009-11-091-3/+3
| | | | llvm-svn: 86497
* Use Unified Assembly Syntax for the ARM backend.Jim Grosbach2009-11-0953-412/+414
| | | | llvm-svn: 86494
* Fix an issue where the ordering of blocks within a function could lead to ↵Owen Anderson2009-11-081-2/+4
| | | | | | | | | | | | | different constraint graphs being produced. The cause was that we were incorrectly marking sigma instructions as processed after handling the sigma-specific constraints for them, potentially neglecting to process them as normal instructions as well. Unfortunately, the testcase that inspired this still doesn't work because of a bug in the solver, which is next on the list to debug. llvm-svn: 86486
* Fix use-after-free bug.Eli Friedman2009-11-081-3/+2
| | | | llvm-svn: 86485
* Add a 'zkill' script, which is more-or-less a fancy (although not necessarilyDaniel Dunbar2009-11-081-0/+276
| | | | | | | | | very robust) version of killall. Because I like making shiny new wheels out of spare parts. For use by buildbots when people insist on making cc1 infinite loop. :) llvm-svn: 86484
* Teach an instcombine to not pull trunc instructions through PHI nodesChris Lattner2009-11-082-22/+75
| | | | | | | | | when both the source and dest are illegal types, since it would cause the phi to grow (for example, we shouldn't transform test14b's phi to a phi on i320). This fixes an infinite loop on i686 bootstrap with phi slicing turned on, so turn it back on. llvm-svn: 86483
* Revert commit 81144, and add a comment. It caused bugpoint timeoutsDuncan Sands2009-11-081-3/+9
| | | | | | not to work any more on linux. llvm-svn: 86481
* reapply r8644[3-5] with only the scary part Chris Lattner2009-11-083-8/+215
| | | | | | (SliceUpIllegalIntegerPHI) disabled. llvm-svn: 86480
* Update CMake file.Benjamin Kramer2009-11-081-0/+1
| | | | llvm-svn: 86479
* Speculatively revert r8644[3-5], they seem to be leading to infinite loops inDaniel Dunbar2009-11-083-215/+8
| | | | | | llvm-gcc bootstrap. llvm-svn: 86478
* Add and-not (bic) patterns. Based heavily on patch by Brian Lucas!Anton Korobeynikov2009-11-087-3/+85
| | | | llvm-svn: 86471
* Move OR patterns upper to all logical stuff. No functionality change.Anton Korobeynikov2009-11-081-56/+56
| | | | llvm-svn: 86470
* Some nice peephole patterns. Based on patch by Brian Lucas!Anton Korobeynikov2009-11-081-0/+7
| | | | llvm-svn: 86469
* Print tab before operand of jccAnton Korobeynikov2009-11-081-1/+1
| | | | llvm-svn: 86468
* Fix invalid operand updates & implement post-inc memory operandsAnton Korobeynikov2009-11-083-17/+184
| | | | llvm-svn: 86466
* Special-case default argument expression in instantiation. This should fix ↵Sebastian Redl2009-11-082-0/+35
| | | | | | PR4301. Doug, please double-check my assumptions. Read the PR for more details. llvm-svn: 86465
* Add a checker for CWE-467: Use of sizeof() on a Pointer Type.Zhongxing Xu2009-11-084-1/+67
| | | | llvm-svn: 86464
* Throw an error when stack realignment stuff fails instead of silentAnton Korobeynikov2009-11-081-3/+7
| | | | | | code miscompilation llvm-svn: 86463
* It is invalid to infer the value type from the result #0 of the nodeAnton Korobeynikov2009-11-082-1/+65
| | | | | | since the instruction might use the other result of different type. llvm-svn: 86462
* When checking the namespace of a redeclaration or definition, look through ↵Sebastian Redl2009-11-082-11/+23
| | | | | | linkage specs. Fixes PR5430. llvm-svn: 86461
* Don't reprocess non-dependent initializers of non-dependent VarDecls. Fixes ↵Sebastian Redl2009-11-082-0/+31
| | | | | | PR5426. llvm-svn: 86460
* Fix for FreeBSD toolchain in regards to CPP, Credit to Roman Divacky.Edward O'Callaghan2009-11-081-0/+4
| | | | llvm-svn: 86459
OpenPOWER on IntegriCloud