summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Improve on objective-c pointer recognitionFariborz Jahanian2010-01-121-2/+3
| | | | | | during rewrite. No functionality chang. llvm-svn: 93241
* When determining whether a given name is a template in a dependentDouglas Gregor2010-01-122-2/+20
| | | | | | | | context, do not attempt typo correction. This harms performance (as Abramo noted) and can cause some amusing errors, as in this new testcase. llvm-svn: 93240
* Fix tests for r93231.Benjamin Kramer2010-01-122-2/+2
| | | | llvm-svn: 93238
* Remove trailing semicolons and silence MSVC warning about C linkage.Benjamin Kramer2010-01-121-5/+5
| | | | | | | warning C4190: 'GetEntity' has C-linkage specified, but returns UDT 'clang::idx::Entity' which is incompatible with C llvm-svn: 93237
* Fix typo.Duncan Sands2010-01-121-1/+1
| | | | llvm-svn: 93235
* Tweak commit 91745, which changed target data for both Mingw and Cygwin,Duncan Sands2010-01-121-1/+1
| | | | | | | to not touch Cygwin: the change caused llvm-gcc build failures due to long double getting the wrong size. Patch by Aaron Gray. llvm-svn: 93234
* So I was sitting around, trying vainly to think of something to commit, and thenJohn McCall2010-01-125-35/+42
| | | | | | | | I said to myself, self, why don't you go add a couple of parameters to a method and then fail to use them, and I thought that sounded like a pretty good idea, so I did it. llvm-svn: 93233
* Use horizontal-space markers in code-completion results rather thanDouglas Gregor2010-01-124-33/+40
| | | | | | embedding single space characters. <rdar://problem/7485503> llvm-svn: 93231
* Make several tests less fragile.Dan Gohman2010-01-125-15/+21
| | | | llvm-svn: 93230
* Reapply the MOV64r0 patch, with a fix: MOV64r0 clobbers EFLAGS.Dan Gohman2010-01-126-39/+46
| | | | llvm-svn: 93229
* Update a partially obsolete comment.Dan Gohman2010-01-121-1/+1
| | | | llvm-svn: 93228
* Fix a typo in a comment.Dan Gohman2010-01-121-1/+1
| | | | llvm-svn: 93227
* Add covariance tester.Mike Stump2010-01-121-8/+35
| | | | llvm-svn: 93226
* Remove duplicate class name, MSVC doesn't like this.Daniel Dunbar2010-01-121-1/+1
| | | | llvm-svn: 93225
* Reorganize some of the code to note overload candidates. Improves theJohn McCall2010-01-123-52/+79
| | | | | | | fidelity with which we note them as functions/constructors and templates thereof. Also will be helpful when reporting bad conversions (next). llvm-svn: 93224
* Add a boilerplate implementation for clang_getUSR(). WIP.Ted Kremenek2010-01-121-2/+80
| | | | llvm-svn: 93223
* tidy upChris Lattner2010-01-121-5/+1
| | | | llvm-svn: 93222
* Teach jump threading to duplicate small blocks when the branchChris Lattner2010-01-122-14/+141
| | | | | | | | | | | | | | | | | | | condition is a xor with a phi node. This eliminates nonsense like this from 176.gcc in several places: LBB166_84: testl %eax, %eax - setne %al - xorb %cl, %al - notb %al - testb $1, %al - je LBB166_85 + je LBB166_69 + jmp LBB166_85 This is rdar://7391699 llvm-svn: 93221
* Add MO_Metadata as an operand kind. Not used yet.Dale Johannesen2010-01-121-1/+18
| | | | llvm-svn: 93220
* Fix rewriting of MacOS sjlj based eh.Fariborz Jahanian2010-01-122-4/+24
| | | | | | Fixes radar 7522880. llvm-svn: 93219
* Name lookup should know better than to look into a class before it's definedDouglas Gregor2010-01-121-1/+3
| | | | llvm-svn: 93217
* Chris thinks these diagnostics are better now. :)John McCall2010-01-121-1/+0
| | | | llvm-svn: 93216
* Sort overload results by viability.John McCall2010-01-121-10/+19
| | | | llvm-svn: 93215
* Introduce a specific representation for the ambiguous implicit conversionJohn McCall2010-01-1210-210/+327
| | | | | | | sequence. Lots of small relevant changes. Fixes some serious problems with ambiguous conversions; also possibly improves associated diagnostics. llvm-svn: 93214
* Change clang_getUSR() to return a CXString instead of a 'const char *'.Ted Kremenek2010-01-122-3/+3
| | | | llvm-svn: 93213
* Make createCXString() a static member function of class CIndex.Ted Kremenek2010-01-122-16/+23
| | | | llvm-svn: 93212
* Allow N_FIELDS to be 0.Mike Stump2010-01-121-1/+1
| | | | llvm-svn: 93211
* Add TargetInstrInfo::isCoalescableInstr. It returns true if the specifiedEvan Cheng2010-01-123-0/+74
| | | | | | | | | instruction is copy like where the source and destination registers can overlap. This is to be used by the coalescable to coalesce the source and destination registers of instructions like X86::MOVSX64rr32. Apparently some crazy people believe the coalescer is too simple. llvm-svn: 93210
* CIndex:Ted Kremenek2010-01-114-16/+52
| | | | | | | | | - Remove unused (and unimplemented) clang_getDeclarationName(). - Remove unused (and unimplemented) clang_getEntity(). - Add clang_getEntityFromDecl(): maps from a CXDecl to a CXEntity) - Add clang_getDeclaration(): maps from a (CXEntity, CXTranslationUnit) to a CXDecl). llvm-svn: 93209
* some cleanup, and make it obvious that ProcessJumpOnPHI only worksChris Lattner2010-01-111-24/+14
| | | | | | on branches by renaming it and checking for a branch at the call site. llvm-svn: 93208
* Eliminate an embarrassing performance regression in C/ObjC, where weDouglas Gregor2010-01-113-1/+13
| | | | | | | | | | were performing name lookup for template names in C/ObjC and always finding nothing. Turn off such lookup unless we're in C++ mode, along with the check that determines whether the given identifier is a "current class name", and assert that we don't make this mistake again. llvm-svn: 93207
* disable this testcase, PR5997Chris Lattner2010-01-111-6/+8
| | | | llvm-svn: 93206
* Reverted r93198; done without reading relevant PR.David Chisnall2010-01-111-4/+2
| | | | llvm-svn: 93205
* Add manual ISD::OR fastisel selection routines. TableGen is no longer ↵Evan Cheng2010-01-112-1/+43
| | | | | | autogen them after 93152 and 93191. llvm-svn: 93204
* Add documentation for llvm.dbg.value intrinsicVictor Hernandez2010-01-111-0/+20
| | | | llvm-svn: 93203
* reenable the piece that turns trunc(zext(x)) -> x even if zext has multiple ↵Chris Lattner2010-01-111-3/+1
| | | | | | | | | uses, codegen has no apparent problem with the trunc version of this, because it turns into a simple subreg idiom llvm-svn: 93202
* Fix rewriting for forward class declaration.Fariborz Jahanian2010-01-112-3/+19
| | | | | | (fixes radar 6969189). llvm-svn: 93201
* Disable folding sext(trunc(x)) -> x (and other similar cast/cast cases) when ↵Chris Lattner2010-01-111-6/+14
| | | | | | | | | | | the trunc has multiple uses. Codegen is not able to coalesce the subreg case correctly and so this leads to higher register pressure and spilling (see PR5997). This speeds up 256.bzip2 from 8.60 -> 8.04s on my machine, ~7%. llvm-svn: 93200
* When performing name lookup into a scope, check that its entity isDouglas Gregor2010-01-112-1/+9
| | | | | | non-NULL before looking at the entity itself. llvm-svn: 93199
* Allow VLAs in C++ if in GNU mode (GNU C++ permits them). Clang can now ↵David Chisnall2010-01-111-2/+4
| | | | | | compile LanguageKit, although the resulting code crashes (although not in any of the functions that use VLAs). llvm-svn: 93198
* Consolidate ConvertGlobalValIDToValue, ConvertGlobalOrMetadataValIDToValue, ↵Victor Hernandez2010-01-112-111/+74
| | | | | | and ConvertValIDToValue into a more powerful ConvertValIDToValue() that does all three's work llvm-svn: 93197
* C++0x [dcl.typedef]p4, take 3, where we actually figure out what "thatDouglas Gregor2010-01-112-4/+7
| | | | | | | is not also a typedef-name" actually means. For anyone keeping score, that's John: 2, Doug: 0. llvm-svn: 93196
* Remove trailing white spaces in post dominators header fileTobias Grosser2010-01-111-6/+6
| | | | llvm-svn: 93195
* Add getNode() to post dominators.Tobias Grosser2010-01-111-0/+4
| | | | | | Implement the same interface as already available for dominators. llvm-svn: 93194
* Use isa<ElaboratedType> rather than getAs<ElaboratedType>, since theDouglas Gregor2010-01-112-2/+6
| | | | | | | latter may (eventually) perform multiple levels of desugaring (thus breaking the newly-added tests) and the former is faster. Thanks, John! llvm-svn: 93192
* Extend r93152 to work on OR r, r. If the source set bits are known not to ↵Evan Cheng2010-01-114-10/+51
| | | | | | overlap, then select as an ADD instead. llvm-svn: 93191
* Add test case from PR5763Douglas Gregor2010-01-111-0/+7
| | | | llvm-svn: 93190
* reduce this to a sensible testcase.Chris Lattner2010-01-111-18/+5
| | | | llvm-svn: 93189
* Allow redefinitions of typedef-names within class scope when the typeDouglas Gregor2010-01-112-5/+29
| | | | | | | | | they redefine is a class-name but not a typedef-name, per C++0x [dcl.typedef]p4. The code in the test was valid C++98 and is valid C++0x, but an unintended consequence of DR56 made it ill-formed in C++03 (which we were luck enough to implement). Fixes PR5455. llvm-svn: 93188
* Shorten up this testcase.David Greene2010-01-111-378/+0
| | | | llvm-svn: 93187
OpenPOWER on IntegriCloud