summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Remove the JustSP single-register regclass.Jakob Stoklund Olesen2010-01-132-14/+1
| | | | | | | | It was only being used by instructions with the t_addrmode_sp addressing mode, and that is pattern matched in a way that guarantees SP is used. There is never any register allocation done from this class. llvm-svn: 93280
* Try to fix the ARM and PPC buildbots. The -mattr=vector-unaligned-memJeffrey Yasskin2010-01-131-1/+1
| | | | | | flag doesn't exist there, and this is an x86 test. llvm-svn: 93279
* Add a quick pass to optimize sign / zero extension instructions. For targets ↵Evan Cheng2010-01-139-28/+203
| | | | | | | | where the pre-extension values are available in the subreg of the result of the extension, replace the uses of the pre-extension value with the result + extract_subreg. For now, this pass is fairly conservative. It only perform the replacement when both the pre- and post- extension values are used in the block. It will miss cases where the post-extension values are live, but not used. llvm-svn: 93278
* Improve the reporting of non-viable overload candidates by noting the reasonJohn McCall2010-01-1323-79/+152
| | | | | | | | why the candidate is non-viable. There's a lot we can do to improve this, but it's a good start. Further improvements should probably be integrated with the bad-initialization reporting routines. llvm-svn: 93277
* Move definitions for visitor methods in CDeclVisitor out-of-line.Ted Kremenek2010-01-131-73/+103
| | | | llvm-svn: 93276
* Make method definitions in TUVisitor out-of-line, making it easy to tell ↵Ted Kremenek2010-01-131-44/+67
| | | | | | | | what visitor methods are defined. Generalize TUVisitor to take a general "root" and "iterator" callback; this is prep. work to merging TUVisitor and CDeclVisitor. llvm-svn: 93275
* Remove broken fix-it when a default function argument has beenDouglas Gregor2010-01-131-10/+10
| | | | | | | redefined. There's a FIXME with an apology about why we don't try to do better here. Fixes <rdar://problem/7513023>. llvm-svn: 93274
* Further progration of metadata operands. TheDale Johannesen2010-01-134-2/+19
| | | | | | | dumper doesn't really do what I want yet, but at least it doesn't crash now. llvm-svn: 93272
* When in objective-c methods, do the built-in name lookup afterFariborz Jahanian2010-01-123-6/+60
| | | | | | ivar name lookup. Fixes pr5986. llvm-svn: 93271
* Make WriteConstants() more robust against stray values in ValueEnumerator's ↵Victor Hernandez2010-01-121-0/+5
| | | | | | ValueList llvm-svn: 93270
* Add USR printing modes to c-index-test.Ted Kremenek2010-01-121-10/+54
| | | | llvm-svn: 93269
* Make clang_getDeclUSR() visible.Ted Kremenek2010-01-121-1/+1
| | | | llvm-svn: 93268
* Rename clang_getUSR() -> clang_getDeclUSR(). For now we take a CXDecl ↵Ted Kremenek2010-01-122-51/+62
| | | | | | | | instead of a CXEntity. Enhance USR generation a bit with support for records. llvm-svn: 93267
* Don't emit string-comparison or self-comparison warnings inDouglas Gregor2010-01-124-12/+59
| | | | | | | | | | unevaluated contexts, because they only matter for code that will actually be evaluated at runtime. As part of this, I had to extend PartialDiagnostic to support fix-it hints. llvm-svn: 93266
* Remove unused code.Mike Stump2010-01-121-3/+0
| | | | llvm-svn: 93262
* Fix a comment typo.Bob Wilson2010-01-121-1/+1
| | | | llvm-svn: 93261
* testcase for -ftabstop, patch by Christian Adaker!Chris Lattner2010-01-121-0/+30
| | | | llvm-svn: 93260
* use consistent tag kinds for ilist_traitsChris Lattner2010-01-121-1/+1
| | | | llvm-svn: 93259
* use DiagRuntimeBehavior to silence the div/rem by zero warning whenChris Lattner2010-01-124-5/+8
| | | | | | not in an evaluated context. This removes some bogus warnings. llvm-svn: 93258
* Improve recovery for template-ids whose template-name doesn't actuallyDouglas Gregor2010-01-127-6/+123
| | | | | | | | | | | | | | | | | | | | | | name a template, when they occur in a base-specifier. This is one of the (few) places where we know for sure that an identifier followed by a '<' must be a template name, so we can diagnose and recover well: test/SemaTemplate/dependent-base-classes.cpp:9:16: error: missing 'template' keyword prior to dependent template name 'T::apply' struct X1 : T::apply<U> { }; // expected-error{{missing 'template' ... ^ template test/SemaTemplate/dependent-base-classes.cpp:12:13: error: unknown template name 'vector' struct X2 : vector<T> { }; // expected-error{{unknown template name 'vector'}} ^ 2 diagnostics generated. llvm-svn: 93257
* implement PR6004, warning about divide and remainder by zero.Chris Lattner2010-01-128-29/+53
| | | | llvm-svn: 93256
* implement PR6007, diagnosing invalid attribute((section))Chris Lattner2010-01-123-5/+17
| | | | llvm-svn: 93255
* Improve covariance tester to randomize the return value more.Mike Stump2010-01-121-16/+57
| | | | llvm-svn: 93254
* 1) Use the new SimplifyInstructionsInBlock routine instead of the copyChris Lattner2010-01-122-23/+15
| | | | | | | | | | | | in JT. 2) When cloning blocks for PHI or xor conditions, use instsimplify to simplify the code as we go. This allows us to squish common cases early in JT which opens up opportunities for subsequent iterations, and allows it to completely simplify the testcase. llvm-svn: 93253
* Fix the CodeGen half of PR5911 by changing reference initialization toChandler Carruth2010-01-124-18/+28
| | | | | | | correctly look through arrays to see cv-qualifiers. Also enhances the routine for doing this to preserve more type sugaring for diagnostics. llvm-svn: 93252
* add a helper function.Chris Lattner2010-01-122-0/+32
| | | | llvm-svn: 93251
* Further tweaking of USR generation. WIP.Ted Kremenek2010-01-121-6/+20
| | | | llvm-svn: 93250
* Use Twine, instead of StringRef, for consistency.Devang Patel2010-01-122-8/+21
| | | | llvm-svn: 93249
* Make 'CXTranslationUnitIterator' an argument to perform_test_load(),Ted Kremenek2010-01-121-8/+12
| | | | | | perform_test_load_tu(), and perform_test_load_source(). llvm-svn: 93248
* Use ilist_tratis to autoinsert and remove NamedMDNode from MDSymbolTable.Devang Patel2010-01-125-18/+31
| | | | llvm-svn: 93247
* Define __weak attribute for objective-c pointers inFariborz Jahanian2010-01-122-0/+17
| | | | | | win32 targets. Fixes radar 7530235. Daniel please review. llvm-svn: 93246
* Eliminate or_not_add and just use AddedComplexity so isel tries or_is_add ↵Evan Cheng2010-01-122-22/+13
| | | | | | patterns first. llvm-svn: 93245
* Add nounwind.Evan Cheng2010-01-121-2/+2
| | | | llvm-svn: 93244
* Parse dependent template-ids in base clauses and memberDouglas Gregor2010-01-122-3/+10
| | | | | | | | | initializers. This isn't actually in the C++ grammar (in any version), but that's clearly an oversight: both GCC and EDG support this syntax, and it's used within Boost code. I'll file a core issue proposing precisely the change made here. Fixes PR6008. llvm-svn: 93243
* Revert commit 93204, since it causes the assembler to barfDuncan Sands2010-01-122-43/+1
| | | | | | | on x86-64 linux with messages like this: Error: Incorrect register `%r14' used with `l' suffix llvm-svn: 93242
* 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
OpenPOWER on IntegriCloud