summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* When computing the decltype of an expression, consider Objective-CDouglas Gregor2012-09-131-3/+9
| | | | | | | ivar and property references as member accesses and produce the actual type of the declaration. Fixes <rdar://problem/12031582>. llvm-svn: 163858
* Fixed the #defines for YES and NO, and centralizedSean Callanan2012-09-131-33/+35
| | | | | | | | | them in one place rather than having them replicated across all the potential function wrappers. <rdar://problem/12293880> llvm-svn: 163857
* Fix both the test for zero and what we do if we have a zero forEric Christopher2012-09-132-1/+54
| | | | | | | | umulo legalization. Fixes PR13839 llvm-svn: 163856
* Reformat, remove a couple unused variables and move some variablesEric Christopher2012-09-131-8/+8
| | | | | | closer to where they're needed. llvm-svn: 163855
* Assembler: Darwin variables defined via .set are no-dead-strip.Jim Grosbach2012-09-133-4/+167
| | | | | | | | For gas compatibility. rdar://12219394 llvm-svn: 163854
* MachO: Correctly mark symbol-difference variables as N_ABS.Jim Grosbach2012-09-132-5/+32
| | | | | | | | | | | .set a, b - c + CONSTANT d = b - c + CONSTANT Both 'a' and 'd' should be marked as absolute symbols (N_ABS). rdar://12219394 llvm-svn: 163853
* Fixing a typoEnrico Granata2012-09-131-1/+0
| | | | llvm-svn: 163852
* Fixed an error with a static enum definition where it wasn't NULL terminate ↵Greg Clayton2012-09-131-0/+1
| | | | | | and could crash. llvm-svn: 163851
* Fix incorrect comment.Richard Smith2012-09-131-1/+1
| | | | llvm-svn: 163850
* Fix up after r163846. Sorry!Richard Smith2012-09-131-3/+4
| | | | llvm-svn: 163849
* Actually rebuild function types properly when adjusting the functionDouglas Gregor2012-09-131-4/+13
| | | | | | type of an instantiation. llvm-svn: 163848
* Revert r163829. The world (or libstdc++, at least) is not ready.Richard Smith2012-09-133-8/+13
| | | | llvm-svn: 163846
* When we substitute into the type of a function based on theDouglas Gregor2012-09-132-2/+43
| | | | | | | | TypeSourceInfo, we may have lost some adjustments made to the type of that function due to declaration merging. Adjust the resulting type correspondingly. Fixes PR12948 / <rdar://problem/11552434>. llvm-svn: 163845
* Handle the new !tbaa.struct metadata tags when converting a memcpy into scalarDan Gohman2012-09-132-0/+43
| | | | | | loads and stores. llvm-svn: 163844
* Better const handling for RuntimeDyld and MCJIT.Jim Grosbach2012-09-135-6/+7
| | | | | | mapSectionAddress() wasn't consistent. llvm-svn: 163843
* Comment to XML conversion: we try not to emit empty <Discussion> elements, butDmitri Gribenko2012-09-131-2/+2
| | | | | | | it is not possible to guarantee that without duplicating logic or buffering <Discussion> element contents. So, allow empty <Discussion> elements in schema. llvm-svn: 163842
* Implement C++11 [conv.prom]p4: an enumeration with a fixed underlying type hasRichard Smith2012-09-133-3/+42
| | | | | | | | | integral promotions to both its underlying type and to its underlying type's promoted type. This matters now that boolean conversions aren't permitted in converted constant expressions (a la DR1407): an enumerator with a fixed underlying type of bool still can be. llvm-svn: 163841
* Fix some code which is invalid in C++11: an expression of enumeration typeRichard Smith2012-09-131-5/+5
| | | | | | can't be used as a non-type template argument of type bool. llvm-svn: 163840
* Made the help for the -n option onSean Callanan2012-09-134-14/+33
| | | | | | | | | | "target image lookup" a bit better documented by indicating that it takes symbols OR functions. <rdar://problem/12281325> llvm-svn: 163839
* Don't perform template argument deduction against invalid templates;Douglas Gregor2012-09-134-1/+34
| | | | | | | it's likely to lead to a crash later on. Fixes PR12933 / <rdar://problem/11525335>. llvm-svn: 163838
* AsmWriterEmitter: OpInfo2 should be unsigned 16-bit.Manman Ren2012-09-131-1/+1
| | | | | | Fix an issue in r163814. llvm-svn: 163837
* Comment parsing: handle \deprecated command. It is a block command, but itDmitri Gribenko2012-09-135-0/+25
| | | | | | | should be fine to use it without further explanations in the attached paragraph, so the warning about empty paragraph was turned off for it. llvm-svn: 163836
* Fix commentMichael Liao2012-09-131-1/+1
| | | | llvm-svn: 163835
* Fix documentation: parameter being documented was removed in r98220.Dmitri Gribenko2012-09-131-1/+0
| | | | llvm-svn: 163834
* remove duplicate code.Fariborz Jahanian2012-09-131-3/+0
| | | | llvm-svn: 163833
* Add wider vector/integer support for PR12312Michael Liao2012-09-133-113/+223
| | | | | | | | - Enhance the fix to PR12312 to support wider integer, such as 256-bit integer. If more than 1 fully evaluated vectors are found, POR them first followed by the final PTEST. llvm-svn: 163832
* Promote the warning about extra qualification on a declaration from aDouglas Gregor2012-09-139-17/+20
| | | | | | | | warning to an error. C++ bans it, and both GCC and EDG diagnose it as an error. Microsoft allows it, so we still warn in Microsoft mode. Fixes <rdar://problem/11135644>. llvm-svn: 163831
* Enhance type legalization on bitcast from vector to integerMichael Liao2012-09-132-5/+45
| | | | | | | | - Find a legal vector type before casting and extracting element from it. - As the new vector type may have more than 2 elements, build the final hi/lo pair by BFS pairing them from bottom to top. llvm-svn: 163830
* Remove speculative fix for C++ core issue 1407, since it was resolved as NAD.Richard Smith2012-09-133-13/+8
| | | | llvm-svn: 163829
* Fix grammar.Ted Kremenek2012-09-131-4/+4
| | | | llvm-svn: 163828
* Fix test case to avoid PIC magic.Jakob Stoklund Olesen2012-09-131-2/+1
| | | | llvm-svn: 163827
* Recover properly after a parse error in a static_assert declaration.Richard Smith2012-09-132-3/+6
| | | | llvm-svn: 163826
* Use a "better" unicode character, to avoid buildbot breakage on bots which ↵Richard Smith2012-09-131-3/+3
| | | | | | can print some unicode characters. llvm-svn: 163825
* Move back the stuff about missing ownership attribute warningFariborz Jahanian2012-09-132-32/+27
| | | | | | | to SemaDeclObjC and apply some simplification per John's comment. // rdar://12280826 llvm-svn: 163824
* Making sure to create the count attribute in synthetic children providers ↵Enrico Granata2012-09-131-0/+2
| | | | | | for libcxx at the right time llvm-svn: 163823
* Make TextDiagnostic more robust against SourceLocations which point into theRichard Smith2012-09-132-27/+73
| | | | | | | middle of UTF-8 characters, and avoid walking to such positions when adjusting column ranges for display. Fixes a couple of hangs when rendering diagnostics. llvm-svn: 163820
* Fix the TCRETURNmi64 bug differently.Jakob Stoklund Olesen2012-09-132-2/+60
| | | | | | | | | | Add a PatFrag to match X86tcret using 6 fixed registers or less. This avoids folding loads into TCRETURNmi64 using 7 or more volatile registers. <rdar://problem/12282281> llvm-svn: 163819
* <rdar://problem/11086338> Implementing support for synthetic children ↵Enrico Granata2012-09-1315-78/+898
| | | | | | generated by running C++ code instead of Python scripts ; Adding a bunch of value-generating APIs to our private code layer ; Providing synthetic children for NSArray llvm-svn: 163818
* Extract code for reducing a type to a single value type into a helper function.Dan Gohman2012-09-131-15/+21
| | | | llvm-svn: 163817
* When warning about unsafe uses of dispatch_once, specially handle theTed Kremenek2012-09-132-1/+28
| | | | | | | | | | crazy case where dispatch_once gets redefined as a macro that calls _dispatch_once (which calls the real dispatch_once). Users want to see the warning in their own code. Fixes <rdar://problem/11617767> llvm-svn: 163816
* Define an official slot for the new !tbaa.struct metadata tag.Dan Gohman2012-09-132-1/+7
| | | | llvm-svn: 163815
* AsmWriterEmitter: increase the number of bits for OpcodeInfo from 32-bit toManman Ren2012-09-131-11/+46
| | | | | | | | | | | 48-bit if necessary, in order to reduce the generated code size. We have 900 cases not covered by OpcodeInfo in ATT AsmWriter and more in Intel AsmWriter and ARM AsmWriter. This patch reduced the clang Release build size by 50k, running on a Mac Pro. llvm-svn: 163814
* Move no explicit ownership warning to SemaType.cpp.Fariborz Jahanian2012-09-132-27/+32
| | | | | | // rdar://12280826 llvm-svn: 163813
* Add tests for r163778.Ted Kremenek2012-09-133-0/+36
| | | | llvm-svn: 163812
* mips16: When copying operands in a conditional branch instruction, allow forAkira Hatanaka2012-09-131-3/+9
| | | | | | | | immediate operands to be copied. Patch by Reed Kotler. llvm-svn: 163811
* Revert r163761 "Don't fold indexed loads into TCRETURNmi64."Jakob Stoklund Olesen2012-09-134-74/+2
| | | | | | The patch caused "Wrong topological sorting" assertions. llvm-svn: 163810
* MemCpyOpt: When forming a memset from stores also take GEP constexprs into ↵Benjamin Kramer2012-09-132-3/+27
| | | | | | | | account. This is common when storing to global variables. llvm-svn: 163809
* Fix an 80 char line limit.Nadav Rotem2012-09-131-1/+2
| | | | llvm-svn: 163808
* Rename the flag which protects from escaped allocas, which may come from ↵Nadav Rotem2012-09-131-5/+12
| | | | | | bugs in user code or in the compiler. Also, dont assert if the protection is not enabled. llvm-svn: 163807
* The current implementation does not allow more than 32 types to be properly ↵Micah Villmow2012-09-131-4/+8
| | | | | | handled with target lowering. This doubles the size to 64bit types and easily allows extension to more types. llvm-svn: 163806
OpenPOWER on IntegriCloud