Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Attempt to fix the MSVC build. | Anders Carlsson | 2009-12-03 | 1 | -4/+4 |
| | | | | llvm-svn: 90427 | ||||
* | clang-cc: Move to CompilerInvocation based command line parsing. | Daniel Dunbar | 2009-12-03 | 4 | -1437/+3 |
| | | | | llvm-svn: 90426 | ||||
* | Fix layering violation by moving Analysis/CallGraph to Index | Daniel Dunbar | 2009-12-03 | 3 | -3/+3 |
| | | | | llvm-svn: 90424 | ||||
* | Don't pull vector sext through both hands of a logical operation, since ↵ | Nate Begeman | 2009-12-03 | 2 | -2/+37 |
| | | | | | | | | | doing so prevents the fusion of vector sext and setcc into vsetcc. Add a testcase for the above transformation. Fix a bogus use of APInt noticed while tracking this down. llvm-svn: 90423 | ||||
* | clang-cc: Honor -help and -version when using new style option parsing. | Daniel Dunbar | 2009-12-03 | 4 | -0/+32 |
| | | | | llvm-svn: 90422 | ||||
* | CC1Options: Normalize meta var spellings, and fix a few help texts. | Daniel Dunbar | 2009-12-03 | 1 | -27/+27 |
| | | | | llvm-svn: 90421 | ||||
* | Add OptTable::PrintHelp. | Daniel Dunbar | 2009-12-03 | 3 | -0/+89 |
| | | | | llvm-svn: 90420 | ||||
* | fix a build problem with VC++, PR5664, patch by Alp Toker! | Chris Lattner | 2009-12-03 | 1 | -2/+4 |
| | | | | llvm-svn: 90419 | ||||
* | Recognize canonical forms of vector shuffles where the same vector is used for | Bob Wilson | 2009-12-03 | 2 | -1/+106 |
| | | | | | | | | both source operands. In the canonical form, the 2nd operand is changed to an undef and the shuffle mask is adjusted to only reference elements from the 1st operand. Radar 7434842. llvm-svn: 90417 | ||||
* | Update test and CIndex to use -FOO BAR form for ↵ | Daniel Dunbar | 2009-12-03 | 2 | -6/+8 |
| | | | | | | -{remap-file,code-completion-at}. llvm-svn: 90416 | ||||
* | Don't call getValueType() on a null SDValue | Jakob Stoklund Olesen | 2009-12-03 | 1 | -1/+2 |
| | | | | llvm-svn: 90415 | ||||
* | Add clang -cc1 support for -remap-file. | Daniel Dunbar | 2009-12-03 | 3 | -2/+26 |
| | | | | llvm-svn: 90414 | ||||
* | Add clang -cc1 -load option. | Daniel Dunbar | 2009-12-03 | 5 | -1/+24 |
| | | | | llvm-svn: 90413 | ||||
* | Fix thunk generation for thunks with a parameter with reference type. | Eli Friedman | 2009-12-03 | 2 | -1/+9 |
| | | | | llvm-svn: 90412 | ||||
* | Minor cleanup. | Eli Friedman | 2009-12-03 | 3 | -12/+7 |
| | | | | llvm-svn: 90411 | ||||
* | Honor using declarations in overload resolution. Most of the code for | John McCall | 2009-12-03 | 5 | -68/+171 |
| | | | | | | | | | | | overloaded-operator resolution is wildly untested, but the parallel code for methods seems to satisfy some trivial tests. Also change some overload-resolution APIs to take a type instead of an expression, which lets us avoid creating a spurious CXXThisExpr when resolving implicit member accesses. llvm-svn: 90410 | ||||
* | Add support for thunking dtors. Oh why does this make my head hurt? | Mike Stump | 2009-12-03 | 4 | -15/+27 |
| | | | | llvm-svn: 90409 | ||||
* | Fix this crasher, and add a FIXME for a missed optimization. | Owen Anderson | 2009-12-03 | 2 | -1/+10 |
| | | | | llvm-svn: 90408 | ||||
* | Reflow. | Mike Stump | 2009-12-03 | 1 | -1/+3 |
| | | | | llvm-svn: 90407 | ||||
* | Revert r90402 for now, virt.cpp is failing. | Anders Carlsson | 2009-12-03 | 1 | -11/+9 |
| | | | | llvm-svn: 90406 | ||||
* | Add batch version of 'StoreManager::InvalidateRegion()' for invalidating ↵ | Ted Kremenek | 2009-12-03 | 4 | -28/+70 |
| | | | | | | multiple regions as once. After adopting this in the CFRefCount::EvalCall(), we see a reduction in analysis time of 1.5% when analyzing all of SQLite3. llvm-svn: 90405 | ||||
* | Use Eli's ComputeThunkAdjustment for calculating the return adjustment. | Anders Carlsson | 2009-12-03 | 1 | -9/+11 |
| | | | | llvm-svn: 90402 | ||||
* | Add CodeGenModule::ComputeThunkAdjustment, which Eli wrote. | Anders Carlsson | 2009-12-03 | 2 | -1/+42 |
| | | | | llvm-svn: 90401 | ||||
* | Remove the index from the Thunk struct. | Anders Carlsson | 2009-12-03 | 1 | -14/+10 |
| | | | | llvm-svn: 90400 | ||||
* | Change the Thunks map to use the vtable index as the key. | Anders Carlsson | 2009-12-03 | 1 | -7/+9 |
| | | | | llvm-svn: 90399 | ||||
* | Add the global decl to the Thunk struct. | Anders Carlsson | 2009-12-03 | 1 | -5/+7 |
| | | | | llvm-svn: 90398 | ||||
* | Remove unused struct fields. | Anders Carlsson | 2009-12-03 | 1 | -7/+2 |
| | | | | llvm-svn: 90397 | ||||
* | Delay computing the return adjustments for covariant thunks until when they ↵ | Anders Carlsson | 2009-12-03 | 1 | -98/+113 |
| | | | | | | are added to the vtable. llvm-svn: 90396 | ||||
* | Fill out codegen SSA updater. It's not yet tested. | Evan Cheng | 2009-12-03 | 4 | -15/+270 |
| | | | | llvm-svn: 90395 | ||||
* | No need to create the covariant thunk in both places now. | Anders Carlsson | 2009-12-03 | 1 | -12/+5 |
| | | | | llvm-svn: 90394 | ||||
* | Whoops, forgot to save :) | Anders Carlsson | 2009-12-03 | 1 | -2/+4 |
| | | | | llvm-svn: 90393 | ||||
* | Remove the index field from the CovariantThunk structure. | Anders Carlsson | 2009-12-03 | 1 | -14/+6 |
| | | | | llvm-svn: 90392 | ||||
* | Change the CovariantThunk map to use the vtable index as its key. | Anders Carlsson | 2009-12-03 | 1 | -9/+9 |
| | | | | llvm-svn: 90391 | ||||
* | Fix typo. | Ted Kremenek | 2009-12-03 | 1 | -1/+1 |
| | | | | llvm-svn: 90390 | ||||
* | Add __has_feature(cxx_exceptions) and __has_feature(cxx_rtti) to table of ↵ | Ted Kremenek | 2009-12-03 | 1 | -6/+10 |
| | | | | | | contents. llvm-svn: 90389 | ||||
* | Add section on what language features __has_feature() supports for querying ↵ | Ted Kremenek | 2009-12-03 | 1 | -0/+18 |
| | | | | | | if they are enabled. llvm-svn: 90388 | ||||
* | Store a GlobalDecl in the return adjustment. | Anders Carlsson | 2009-12-03 | 1 | -4/+7 |
| | | | | llvm-svn: 90387 | ||||
* | Do not include the 'this' pointer adjustment in the covariant return type. ↵ | Anders Carlsson | 2009-12-03 | 1 | -26/+39 |
| | | | | | | Instead, store it in the (now oddly named) Thunks map. llvm-svn: 90386 | ||||
* | Switch clang_createTranslationUnitFromSourceFile to use ↵ | Daniel Dunbar | 2009-12-03 | 4 | -20/+87 |
| | | | | | | | | | | | | | | | | | | | ASTUnit::LoadFromCommandLine. - This is much faster, as it avoids the overhead of dumping an AST file to disk and reloading it. - For debugging purposes, there is a clang_setUseExternalASTGeneration hook which can be used to disable this. On the Sketch Cocoa app, the speedup is pretty nice, especially when using a PCH file while scanning the source: Wall time to c-index-test all files (no PCH): Old: 23.4221 New: 12.3884 Wall time to c-index-test all files (with a PCH, and "local" mode): Old: 10.9233 New: 1.9038 llvm-svn: 90385 | ||||
* | Revert r90371. It was causing build failures. | Bill Wendling | 2009-12-03 | 1 | -23/+42 |
| | | | | llvm-svn: 90383 | ||||
* | Move VtableBuilder::OverrideMethod out of line in preparation of other ↵ | Anders Carlsson | 2009-12-03 | 1 | -112/+117 |
| | | | | | | changes to it. No functionality change. llvm-svn: 90382 | ||||
* | Don't hang on to pointers or references after vector::push_back. | Jakob Stoklund Olesen | 2009-12-03 | 1 | -6/+3 |
| | | | | | | | The MO reference to a MachineOperand can be invalidated by MachineInstr::addOperand. Don't even use it for debugging. llvm-svn: 90381 | ||||
* | add a failing testcase. | Chris Lattner | 2009-12-03 | 1 | -0/+44 |
| | | | | llvm-svn: 90380 | ||||
* | Fix ASTUnit to allows require a (persistent) Diagnostic object be provided; ↵ | Daniel Dunbar | 2009-12-03 | 7 | -83/+53 |
| | | | | | | propogate and simplify. llvm-svn: 90379 | ||||
* | Add 'has_feature(cxx_exceptions)' to allow code to determine via ↵ | Ted Kremenek | 2009-12-03 | 2 | -0/+14 |
| | | | | | | preprocessor logic if C++ exceptions are enabled. llvm-svn: 90378 | ||||
* | Remove untrue statement. | Mike Stump | 2009-12-03 | 1 | -3/+0 |
| | | | | llvm-svn: 90377 | ||||
* | Rename has_feature(rtti) to has_feature(cxx_rtti) for clarity. | Ted Kremenek | 2009-12-03 | 2 | -4/+4 |
| | | | | llvm-svn: 90376 | ||||
* | Emit method definition DIE at module level (even for methods with inlined ↵ | Devang Patel | 2009-12-03 | 2 | -28/+90 |
| | | | | | | functino body at soure level) so that the debugger can invoke it. This fixes many test failures in gdb test suite. llvm-svn: 90375 | ||||
* | Note a failure I saw from the g++ testsuite: | Mike Stump | 2009-12-03 | 1 | -0/+1 |
| | | | | | | FAIL: g++.old-deja/g++.mike/eh23.C (test for excess errors) llvm-svn: 90374 | ||||
* | Add FileCheck test for '__has_feature(rtti)'. | Ted Kremenek | 2009-12-03 | 1 | -0/+11 |
| | | | | llvm-svn: 90373 |