summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Improve unreachable code warnings for with respect to dead functional casts ↵Mike Stump2010-01-213-2/+9
| | | | | | in C++. llvm-svn: 94106
* Trim unneeded includes.Evan Cheng2010-01-213-3/+0
| | | | llvm-svn: 94105
* Add a comment.Dan Gohman2010-01-211-1/+2
| | | | llvm-svn: 94104
* It turns out that this #include is needed because otherwiseChris Lattner2010-01-211-1/+1
| | | | | | | | | ValueMapper.cpp ends up calling an out of line __ZNK4llvm12PATypeHolder3getEv, which is a template and llvm-config determines arbitrarily to use the one in libipo. This sucks, but keeping the #include is a reasonable workaround. llvm-svn: 94103
* unbreak the build, apparently without this transformutils starts depending ↵Chris Lattner2010-01-211-0/+1
| | | | | | on libipa? llvm-svn: 94102
* tidy upChris Lattner2010-01-211-14/+7
| | | | llvm-svn: 94101
* tidy upChris Lattner2010-01-211-9/+16
| | | | llvm-svn: 94100
* Teach the cursor visitor to walk into typeof types (both kinds). ThisDouglas Gregor2010-01-211-0/+16
| | | | | | | is hard to test now; tests will come when we can walk stataements and expressions properly. llvm-svn: 94099
* remove dead .erase.Chris Lattner2010-01-211-3/+1
| | | | llvm-svn: 94098
* back this out for now. Growing Function is not good.Jim Grosbach2010-01-216-54/+5
| | | | llvm-svn: 94097
* testcase for r94095Chris Lattner2010-01-211-0/+22
| | | | llvm-svn: 94096
* fix a problem with a missing _, testcase pending.Chris Lattner2010-01-211-1/+1
| | | | llvm-svn: 94095
* Improve unreachable code warnings for with respect to c-style casts.Mike Stump2010-01-212-0/+8
| | | | llvm-svn: 94094
* Improve unreachable code warnings for with respect to ? :.Mike Stump2010-01-213-4/+22
| | | | llvm-svn: 94093
* Don't need to include IntrinsicInst.h any moreVictor Hernandez2010-01-211-1/+0
| | | | llvm-svn: 94092
* No need to map NULL operands of metadataVictor Hernandez2010-01-211-1/+1
| | | | llvm-svn: 94091
* Allocate the 'Protocols' array in ObjCInterfaceType andTed Kremenek2010-01-213-26/+76
| | | | | | | | ObjCObjectPointerType using the allocator associated with ASTContext. Not only does this fix a memory leak, but it also makes these arrays BumpPtrAllocated (in the typical case). llvm-svn: 94090
* Revert r94073, it fails in Release-Asserts builds.Benjamin Kramer2010-01-211-66/+66
| | | | llvm-svn: 94089
* Fixes a comment.Fariborz Jahanian2010-01-211-1/+1
| | | | llvm-svn: 94088
* Patch to implement rewriting of properties.Fariborz Jahanian2010-01-217-8/+24
| | | | | | Fixes radar 7562952. llvm-svn: 94087
* Improve unreachable code warnings for with respect to compoundMike Stump2010-01-212-0/+11
| | | | | | assignments. llvm-svn: 94086
* Teach the cursor visitor to walk into a variety of different TypeLocDouglas Gregor2010-01-212-9/+175
| | | | | | kinds, so that we see referenced types, protocols, classes, etc. llvm-svn: 94085
* Improve unreachable code warnings with respect to dead binary andMike Stump2010-01-214-12/+40
| | | | | | unary operators. llvm-svn: 94084
* Add a test for clang_rt support on Darwin. With appropriate massaging, thisDaniel Dunbar2010-01-211-0/+258
| | | | | | | | checks that the runtime library can be linked and works for compiling on 10.6 for 10.{4,5,6} targets. Currently test is only for x86, and misses some compiler-rt functions. llvm-svn: 94083
* Tweak OptionalTests paths.Daniel Dunbar2010-01-211-1/+10
| | | | llvm-svn: 94082
* Update to use llvm/utils/GetSourceVersion to detect version number, instead ofDaniel Dunbar2010-01-211-1/+1
| | | | | | assuming SVN. This should be fixed to not necessarily be an integer. llvm-svn: 94081
* Add utils/OptionalTests, a dumping ground for additional (lit) tests which forDaniel Dunbar2010-01-213-0/+24
| | | | | | | | | one reason or another don't belong in the regular test suite. Inside is utils/OptionalTests/Extra which is specifically for tests that match the layout of the regular tests. llvm-svn: 94080
* Move the VTT related code into its own file, CGVTT.cppAnders Carlsson2010-01-214-378/+403
| | | | llvm-svn: 94079
* Introduce type references into the C API, capturing references toDouglas Gregor2010-01-216-4/+87
| | | | | | typedefs only (for now). llvm-svn: 94078
* Add a simple script for getting a version tag from a svn/git-svn/gitDaniel Dunbar2010-01-211-0/+27
| | | | | | repository. Feel free to add support for your favorite VCS. llvm-svn: 94077
* Teach code-completion to deal with calls to functions without prototypes.Douglas Gregor2010-01-212-15/+36
| | | | llvm-svn: 94076
* struct/class mismatch.Benjamin Kramer2010-01-211-1/+1
| | | | llvm-svn: 94075
* Speed up compilation by avoiding generating exceptional edges fromMike Stump2010-01-217-16/+121
| | | | | | | | | | | | | CallExprs as those edges help cause a n^2 explosion in the number of destructor calls. Other consumers, such as static analysis, that would like to have more a more complete CFG can select the inclusion of those edges as CFG build time. This also fixes up the two compilation users of CFGs to be tolerant of having or not having those edges. All catch code is assumed be to live if we didn't generate the exceptional edges for CallExprs. llvm-svn: 94074
* Match branch labels with the trailing colon so we don't accidentally match ↵Benjamin Kramer2010-01-211-66/+66
| | | | | | something else. llvm-svn: 94073
* Make the parser include the lower level error message in its own errorDan Gohman2010-01-211-1/+2
| | | | | | message, to be more informative. llvm-svn: 94072
* Avoid printing a spurious semicolon when there is no filename.Dan Gohman2010-01-211-9/+12
| | | | llvm-svn: 94071
* When re-using an existing cast for a user, it's still necessary to callDan Gohman2010-01-211-1/+3
| | | | | | | rememberInstruction so that future users of that user will be inserted in the correct position. This fixes the Darwin selfhost. llvm-svn: 94070
* Fix a crasher trying to fold each element in a comparison between two vectorsNick Lewycky2010-01-214-11/+25
| | | | | | | | | | if one of the vectors didn't have elements (such as undef). Fixes PR 6096. Fix an issue in the constant folder where fcmp (<2 x %ty>, <2 x %ty>) would have <2 x i1> type if constant folding was successful and i1 type if it wasn't. This exposed a related issue in the bitcode reader. llvm-svn: 94069
* remove a couple of asserts that use RTTI.Chris Lattner2010-01-213-10/+1
| | | | llvm-svn: 94068
* Move some recent checking code into SemaChecking instead.Mike Stump2010-01-212-429/+430
| | | | llvm-svn: 94067
* Run the verifier after LSR, to help catch use-before-def errors beforeDan Gohman2010-01-211-0/+4
| | | | | | they reach codegen. llvm-svn: 94066
* Avoid instantiating std::sort to save on compiler size.Mike Stump2010-01-211-11/+5
| | | | llvm-svn: 94065
* When checking for unreachable code, we can trivially avoid checkingMike Stump2010-01-211-9/+15
| | | | | | | for unreachable loops if all the blocks are already marked live by this point. llvm-svn: 94064
* When checking for unreachable blocks, we can trivially avoid extraMike Stump2010-01-211-3/+11
| | | | | | work, if we know we already marked all blocks as live. llvm-svn: 94063
* Add infrastructure to add base initializers and member initializers toMike Stump2010-01-214-6/+17
| | | | | | the CFG. WIP. llvm-svn: 94062
* Re-implement the main strength-reduction portion of LoopStrengthReduction.Dan Gohman2010-01-2132-2614/+3030
| | | | | | | | | | | | | | This new version is much more aggressive about doing "full" reduction in cases where it reduces register pressure, and also more aggressive about rewriting induction variables to count down (or up) to zero when doing so reduces register pressure. It currently uses fairly simplistic algorithms for finding reuse opportunities, but it introduces a new framework allows it to combine multiple strategies at once to form hybrid solutions, instead of doing all full-reduction or all base+index. llvm-svn: 94061
* eliminate dynamic_cast from the pass manager.Chris Lattner2010-01-211-22/+20
| | | | llvm-svn: 94060
* Add strcpy_chk -> strcpy support for "don't know" object sizeEric Christopher2010-01-211-0/+45
| | | | | | answers. This will update as object size checking gets better information. llvm-svn: 94059
* Fix a minor issue in x86 load / store folding table. movups does an ↵Evan Cheng2010-01-211-1/+1
| | | | | | unaligned load so it doesn't require 16-byte alignment. llvm-svn: 94058
* Make sure that landing pad entries in the EH call site table are in the properJim Grosbach2010-01-216-5/+54
| | | | | | order for SjLj style exception handling. llvm-svn: 94055
OpenPOWER on IntegriCloud