summaryrefslogtreecommitdiffstats
path: root/clang
Commit message (Collapse)AuthorAgeFilesLines
* Revert "OnDiskHashTable: Use EndianStream.h to write little endian ostreams"Justin Bogner2014-03-285-153/+128
| | | | | | This reverts commit r205044. llvm-svn: 205047
* OnDiskHashTable: Use Endian.h to read little endian ostreamsJustin Bogner2014-03-284-139/+154
| | | | | | | | | Rather than rolling our own functions to read little endian data from a buffer, we can use the support in llvm's Endian.h. No functional change. llvm-svn: 205045
* OnDiskHashTable: Use EndianStream.h to write little endian ostreamsJustin Bogner2014-03-285-128/+153
| | | | | | | | | Rather than rolling our own functions to write little endian data to an ostream, we can use the support in llvm's EndianStream.h. No functional change. llvm-svn: 205044
* Use constexpr again, this time portablyDuncan P. N. Exon Smith2014-03-281-2/+2
| | | | | | Responding to Justin's review of r205025. llvm-svn: 205037
* Documentation: remove a spurious '1' and wrap to 80 columnsDmitri Gribenko2014-03-281-1/+4
| | | | llvm-svn: 205035
* Document module.private.modulemap and module_private.map.Douglas Gregor2014-03-281-1/+58
| | | | | | Requested in <rdar://problem/16188740>. llvm-svn: 205030
* InstrProf: Fix MSVC after r205023Duncan P. N. Exon Smith2014-03-281-2/+2
| | | | llvm-svn: 205025
* Objective-C. revert r204965. This will makeFariborz Jahanian2014-03-282-2/+2
| | | | | | | | | | | -Wselector-type-mismatch default again. After internal discussions, we think that in most cases it has helped our developers find hard to detect undefined behaviors. We are going to provide a syntax (and fix-it) to suppress the warning in remaining of false positive cases. llvm-svn: 205024
* InstrProf: Emit runtime hook directly in IRGenDuncan P. N. Exon Smith2014-03-285-17/+46
| | | | | | | | | | | | | | | | | | -u behaviour is apparently not portable between linkers (see cfe-commits discussions for r204379 and r205012). I've moved the logic to IRGen, where it should have been in the first place. I don't have a Linux system to test this on, so it's possible this logic *still* doesn't pull in the instrumented profiling runtime on Linux. I'm in the process of getting tests going on the compiler-rt side (llvm-commits "[PATCH] InstrProf: Add initial compiler-rt test"). Once we have tests for the full flow there, the runtime logic should get a whole lot less brittle. <rdar://problem/16458307> llvm-svn: 205023
* Revert "Link in profile library on Linux using --whole-archive"Duncan P. N. Exon Smith2014-03-282-11/+10
| | | | | | This reverts commit r205012. llvm-svn: 205022
* Fix a FIXME, use std::move.Richard Smith2014-03-281-3/+3
| | | | llvm-svn: 205021
* Link in profile library on Linux using --whole-archiveAlexey Samsonov2014-03-282-10/+11
| | | | llvm-svn: 205012
* clang-format: Fix aligning of comments and escaped newlines in macros.Daniel Jasper2014-03-282-0/+9
| | | | | | | | | | | | | | Before: #define A \ int i; /*a*/ \ int jjj; /*b*/ After: #define A \ int i; /*a*/ \ int jjj; /*b*/ llvm-svn: 205011
* Add ARM big endian Target (armeb, thumbeb)Christian Pirker2014-03-289-46/+387
| | | | | | Reviewed at http://llvm-reviews.chandlerc.com/D3096 llvm-svn: 205008
* Use the correct trailing comment syntaxDmitri Gribenko2014-03-281-1/+1
| | | | llvm-svn: 204998
* Get rid of the adapted isLiteral method.Manuel Klimek2014-03-282-7/+6
| | | | | | We don't want to deviate from clang's standard terminology. llvm-svn: 204997
* clang-format: Recognize more ObjC blocks with parameters/return type.Daniel Jasper2014-03-282-2/+10
| | | | llvm-svn: 204990
* clang-cl wants MSVC-style win32Hans Wennborg2014-03-281-1/+3
| | | | | | | This should fix the clang-cl tests after the Windows target triple canonicalization (r204978) llvm-svn: 204985
* Use the new Windows environment for target detectionSaleem Abdulrasool2014-03-2712-84/+130
| | | | | | | | | This follows the LLVM change to canonicalise the Windows target triple spellings. Rather than treating each Windows environment as a single entity, the environments are now modelled properly as an environment. This is a mechanical change to convert the triple use to reflect that change. llvm-svn: 204978
* Reverting r204968 and r204969; while more build bots are happy with the ↵Aaron Ballman2014-03-2713-155/+55
| | | | | | results, some still have link errors. llvm-svn: 204974
* Urgh. Amending r204968 which somehow missed this file!Aaron Ballman2014-03-271-0/+39
| | | | llvm-svn: 204969
* Reapplying r204952 with fixes which should hopefully resolve linking issues ↵Aaron Ballman2014-03-2712-55/+116
| | | | | | with non-MSVC compilers. llvm-svn: 204968
* Objective-C. Make multiple selector warningFariborz Jahanian2014-03-273-5/+6
| | | | | | | an opt-in option under -Wselector-type-mismatch. // rdar://16445728 llvm-svn: 204965
* Support for -Wa,-compress-debug-sections.David Blaikie2014-03-278-7/+24
| | | | | | Also, while I'm here, support -nocompress-debug-sections too. llvm-svn: 204959
* Reverting r204952, while I figure out what's going on with the makefile build.Aaron Ballman2014-03-2713-158/+55
| | | | llvm-svn: 204955
* Don't emit exit-time destructor warnings for trivial explicitly defaulted dtorsStephan Tolksdorf2014-03-273-3/+33
| | | | | | | | This commit also adds an additional test case for the global destructor warning. Reviewed in http://llvm-reviews.chandlerc.com/D3205 llvm-svn: 204954
* Recognize simple cases of trivial explicitly defaulted public dtors as ↵Stephan Tolksdorf2014-03-271-3/+8
| | | | | | | | irrelevant Reviewed in http://llvm-reviews.chandlerc.com/D3190 llvm-svn: 204953
* Clean up the __has_attribute implementation without modifying its behavior. Aaron Ballman2014-03-2713-55/+158
| | | | | | | | Replaces the tablegen-driven AttrSpellings.inc, which lived in the lexing layer with AttrHasAttributeImpl.inc, which lives in the basic layer. Updates the preprocessor to call through to this new functionality which can take additional information into account (such as scopes and syntaxes). Expose the ability for parts of the compiler to ask whether an attribute is supported for a given spelling (including scope), syntax, triple and language options. llvm-svn: 204952
* Fix PR18307: Properly (de)serialize inherited constructors and their using ↵Stephan Tolksdorf2014-03-274-8/+68
| | | | | | | | declarations Reviewed in http://llvm-reviews.chandlerc.com/D3102 llvm-svn: 204951
* Improve handling of bool expressions in template arguments.Manuel Klimek2014-03-273-3/+17
| | | | | | | Now correctly formats: foo<true && false>(); llvm-svn: 204950
* Add an explanatory comment and FIXME about the function declarationEric Christopher2014-03-271-0/+5
| | | | | | for a subprogram DIE. llvm-svn: 204949
* Comment parsing: use different comment styles in different test casesDmitri Gribenko2014-03-271-2/+2
| | | | llvm-svn: 204944
* Comment parsing: attach comments to enums declared using the NS_ENUM macroDmitri Gribenko2014-03-273-17/+47
| | | | | | Previously we would only attach comments to the typedef. llvm-svn: 204942
* Enforce the restriction that a parameter to a kernel functionDavid Tweed2014-03-273-2/+19
| | | | | | | | | cannot be a pointer to the private address space (as clarified in the OpenCL 1.2 specification). Patch by Fraser Cormack! llvm-svn: 204941
* InstrProf: Pull in runtime on non-DarwinDuncan P. N. Exon Smith2014-03-271-0/+7
| | | | | | | r204379 changed the way the profile runtime gets pulled in, but missed updating non-Darwin targets. llvm-svn: 204939
* Add a module cache path to the test that uses -fmodulesDmitri Gribenko2014-03-271-1/+2
| | | | llvm-svn: 204938
* clang-format: Avoid line-breaks that increase the current column.Daniel Jasper2014-03-272-8/+11
| | | | | | | | | | | | | | | | | | While these might make sense for some rule (e.g. break after multi-line operand), they generally appear ugly and confusing. Before: fffffffffff(R\"x( multiline raw string literal xxxxxxxxxxxxxx )x\" + bbbbbb) After: fffffffffff(R\"x( multiline raw string literal xxxxxxxxxxxxxx )x\" + bbbbbb) llvm-svn: 204937
* Comment parsing: when comment ranges are deserialized from multiple modules,Dmitri Gribenko2014-03-278-18/+68
| | | | | | | | | correctly order comments in SourceManager::isBeforeInTranslationUnit() order Unfortunately, this is not as simple as it was implemented previously, and actually requires doing a merge sort. llvm-svn: 204936
* Handle and warn on aliases to weak aliases.Rafael Espindola2014-03-274-1/+42
| | | | | | | This produces valid IR now that llvm rejects aliases to weak aliases and warns the user that the resolution is not changed if the weak alias is overridden. llvm-svn: 204935
* [OPENMP] OMPExecutableDirective re-factoringAlexander Musman2014-03-272-24/+32
| | | | | | | | Store the number of clauses and children of OMPExecutableDirective and dynamically compute the locations of corresponding arrays. http://llvm-reviews.chandlerc.com/D2977 llvm-svn: 204933
* clang-format: Extract getNewLineColumn out of addTokenOnNewLine.Daniel Jasper2014-03-272-74/+103
| | | | | | No functional changes intended. llvm-svn: 204930
* Fix bool expression special case.Manuel Klimek2014-03-272-4/+25
| | | | | | | | Clang-format now correctly formats: some_type<a * b> v; template <bool a, bool b> typename enabled_if<a && b>::type f() {} llvm-svn: 204913
* [cleanup] Stop specifying size overrides for BumpPtrAllocators.Chandler Carruth2014-03-272-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | These don't seem to have any real point. Let's start with IndexingContext. I can't come up with any conceivable reason to have many hundereds of thousands of these alive in an address space which would make the 4x difference in allocated (but unused) memory for the string scratch buffer a significant memory usage problem. The EditedSource one is somewhat more surprising. This is an 8x increase in the memory allocated (but not used) per editted source file. However, for this to realistically be a problem, you would need to have over half a million editted source files in a single address space, and even that would only really have problems on 32-bit Windows where you really only have 2gb of virtual address space. And what's more important, the fix to this if it is actually an issue shouldn't be to shrink the allocator's size, it is to pass a single allocator into *many* edited source file objects and let them share the memory. These were the only two uses of custom sized BumpPtrAllocators (excluding ones in the JIT using a custom allocation strategy) in all of LLVM, Clang, LLD, LLDB, or Polly. I don't think we actually need this complexity in the primary BumpPtrAllocator at all and am planning to remove it. llvm-svn: 204910
* clang-format: Correctly identify ObjC Block with return type.Daniel Jasper2014-03-274-12/+14
| | | | llvm-svn: 204905
* Revert "Just call getContextDescriptor to get the context for subprograms"Eric Christopher2014-03-273-8/+15
| | | | | | | | while I investigate as it seems to be causing issues with the gdb bot. This reverts commit r204874. llvm-svn: 204896
* PR19252: Fix crash if alignas is used with an auto-typed variable. Don't checkRichard Smith2014-03-274-7/+6
| | | | | | the type of the variable until it's known. llvm-svn: 204887
* Don't produce a L symbol in __DATA,__data.Rafael Espindola2014-03-272-1/+3
| | | | | | The section __DATA,__data is atomized by the linker and cannot have L symbols. llvm-svn: 204879
* MS asm: Filter out fpsw clobbersReid Kleckner2014-03-272-0/+14
| | | | | | | | | | | | | | | | When parsing MS inline assembly, we note that fpsw is an implicit def of most x87 FP operations, and add it to the clobber list. However, we don't recognize fpsw as a gcc register name, and we assert. Clang always adds an fpsr clobber, which means the same thing to LLVM, so we can just use that. This test case was broken by my LLVM change r196939. Reviewers: echristo Differential Revision: http://llvm-reviews.chandlerc.com/D2993 llvm-svn: 204878
* Just call getContextDescriptor to get the context for subprogramsEric Christopher2014-03-263-15/+8
| | | | | | | | instead of rolling an inefficient version of the function. This changes some order of emission of metadata nodes, fix up those testcases and make them more flexible to some changes. llvm-svn: 204874
* Try to fix arm bots by removing a superfluous __cdeclReid Kleckner2014-03-261-1/+1
| | | | llvm-svn: 204872
OpenPOWER on IntegriCloud