summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Reland "Fix miscompile of MS inline assembly with stack realignment"Reid Kleckner2013-12-1010-35/+108
| | | | | | | | | | | This re-lands commit r196876, which was reverted in r196879. The tests have been fixed to pass on platforms with a stack alignment larger than 4. Update to clang side tests will land shortly. llvm-svn: 196939
* [analyzer] Misc. tidying in IdenticalExprChecker.Jordan Rose2013-12-101-18/+16
| | | | | | Some things I missed when this first went in. llvm-svn: 196938
* [analyzer] Extend IdenticalExprChecker to check ternary operator results.Jordan Rose2013-12-104-8/+269
| | | | | | | | | | Warn if both result expressions of a ternary operator (? :) are the same. Because only one of them will be executed, this warning will fire even if the expressions have side effects. Patch by Anders Rönnholm and Per Viberg! llvm-svn: 196937
* [AArch64] Refactor the redundant code in the EmitAArch64ScalarBuiltinExpr()Chad Rosier2013-12-101-206/+189
| | | | | | function. No functional change intended. llvm-svn: 196936
* Objective-C. Provide fixit's for objc_bride_relatedFariborz Jahanian2013-12-105-9/+64
| | | | | | | attributed CF to ObjC type conversions. // rdar://15499111 llvm-svn: 196935
* Make Triple's isOSBinFormatXXX functions partition triple-space.Tim Northover2013-12-108-26/+22
| | | | | | | | | | | Most users would be surprised if "isCOFF" and "isMachO" were simultaneously true, unless they'd put the compiler in a box with a gun attached to a photon detector. This makes sure precisely one of the three formats is true for any triple and simplifies some target logic based on that. llvm-svn: 196934
* As consistency, invoke python with /usr/bin/env (like it is done in the rest ↵Sylvestre Ledru2013-12-101-1/+1
| | | | | | of the file). Thanks to Xavier De Gaye for the patch llvm-svn: 196933
* Support: Update documentation for Program functionsAlp Toker2013-12-101-8/+13
| | | | | | | | | | The docstrings were describing an older interface that has been replaced with functions. Also describe the performance characteristics of FindProgramByName() and ExecuteAndWait() explaining when it's best to avoid them. llvm-svn: 196932
* [AArch64] Refactor the Neon vector/scalar floating-point convert intrinsics soChad Rosier2013-12-101-12/+11
| | | | | | that they use float/double rather than the vector equivalents when appropriate. llvm-svn: 196931
* [AArch64] Refactor the Neon vector/scalar floating-point convert intrinsics soChad Rosier2013-12-104-84/+103
| | | | | | that they use float/double rather than the vector equivalents when appropriate. llvm-svn: 196930
* Remove IndentBlocks, which sneaked winto the previous commitAlexander Kornienko2013-12-102-7/+0
| | | | llvm-svn: 196929
* Early attempts to format in GNU style.Alexander Kornienko2013-12-103-36/+35
| | | | | | | | | | | | | | | | Summary: This still misses a few important features, so there's no mention of this style in the help message, but a few style rules are implemented. Reviewers: djasper Reviewed By: djasper CC: cfe-commits, klimek Differential Revision: http://llvm-reviews.chandlerc.com/D2371 llvm-svn: 196928
* [AArch64] Refactor the Neon vector/scalar floating-point convert implementation.Chad Rosier2013-12-101-24/+24
| | | | | | Specifically, reuse the ARM intrinsics when possible. llvm-svn: 196927
* [AArch64] Refactor the Neon vector/scalar floating-point convert implementation.Chad Rosier2013-12-104-152/+160
| | | | | | Specifically, reuse the ARM intrinsics when possible. llvm-svn: 196926
* Ensure that the backend no longer emits unnecessary vector insert instructionsAndrea Di Biagio2013-12-102-0/+435
| | | | | | | | | | | | | | | | | | | | | | immediately after SSE scalar fp instructions like addss or mulss. Added patterns to select SSE scalar fp arithmetic instructions from a scalar fp operation followed by a blend. For example, given the following code: __m128 foo(__m128 A, __m128 B) { A[0] += B[0]; return A; } previously we generated: addss %xmm0, %xmm1 movss %xmm1, %xmm0 now we generate: addss %xmm1, %xmm0 llvm-svn: 196925
* Use Field Lists for the types' "Overview", "Syntax" and "Examples".Rafael Espindola2013-12-101-56/+31
| | | | | | Thanks to Sean Silva for the suggestion. llvm-svn: 196924
* R600: Fix an infinite loop when trying to reorganize export/tex vector inputVincent Lejeune2013-12-102-5/+67
| | | | llvm-svn: 196923
* R600: Fix input modifiers lost for CaymanVincent Lejeune2013-12-102-0/+44
| | | | llvm-svn: 196922
* Next step in Mips16 prologue/epilogue cleanup.Reed Kotler2013-12-109-27/+159
| | | | | | | | Save S2(reg 18) only when we are calling floating point stubs that have a return value of float or complex. Some more work to make this better but this is the first step. llvm-svn: 196921
* test: FreeBSD calls the 64-bit x86 platform amd64Ed Maste2013-12-102-10/+11
| | | | | | Also add decorator for an issue that this uncovered: llvm.org/pr18200 llvm-svn: 196920
* test: Fix match string to work with st0 or stmm0Ed Maste2013-12-101-1/+1
| | | | llvm-svn: 196919
* AVX-512: changed intrinsics for mask operationsElena Demikhovsky2013-12-105-58/+78
| | | | llvm-svn: 196918
* clang-format-diff.py: Support -regex filter and more filename extensionsAlp Toker2013-12-102-10/+12
| | | | | | | | | | | | | Add support for more filename extensions based on the list in the clang plus JavaScript. Also adds a -regex option so users can override defaults if they have unusual file extensions or want to format everything in the diff. Keeping with tradition the flag is modelled on Unix conventions, this time matching the semantics of find(1). llvm-svn: 196917
* [CMake] Update target_link_libraries() and LLVM_LINK_COMPONENTS for each ↵NAKAMURA Takumi2013-12-1019-114/+106
| | | | | | CMakeLists.txt. llvm-svn: 196916
* Add ObjCARCOpts to LINK_COMPONENTS.NAKAMURA Takumi2013-12-102-2/+3
| | | | llvm-svn: 196915
* AVX-512: Changed intrinsics of VPCONFLICT to match GCC builtin formElena Demikhovsky2013-12-104-50/+66
| | | | llvm-svn: 196914
* Darwin: update clang test to new iOS default version (5.0)Tim Northover2013-12-101-4/+4
| | | | llvm-svn: 196913
* Darwin: update default iOS version to 5.0Tim Northover2013-12-102-10/+10
| | | | | | | | | | | | Defaulting to iOS 3.0 when LLVM has to guess the version is no longer a useful option and can give surprising results (like tail calls being disabled). 5.0 seems like a reasonable compromise as a platform that's still interesting to some people. rdar://problem/15567348 llvm-svn: 196912
* [CMake] Add MCDisassembler to tools/lto. (has been removed since r196908)NAKAMURA Takumi2013-12-101-0/+1
| | | | | | lto.exports really exports LLVM-C Disasm stuff. llvm-svn: 196911
* [mips][msa] Correct sld and sldi builtins.Daniel Sanders2013-12-106-86/+122
| | | | | | | | | | | | | Summary: The result register of these instructions is also the first operand. Reviewers: jacksprat, dsanders Reviewed By: dsanders Differential Revision: http://llvm-reviews.chandlerc.com/D2362 Differential Revision: http://llvm-reviews.chandlerc.com/D2363 llvm-svn: 196910
* Allow predefined styles to define different options for different languages.Alexander Kornienko2013-12-104-98/+188
| | | | | | | | | | | | | | | | | | | | | | | Summary: Allow predefined styles to define different options for different languages so that one can run: clang-format -style=google file1.cpp file2.js or use a single .clang-format file with "BasedOnStyle: Google" for both c++ and JS files. Added Google style for JavaScript with "BreakBeforeTernaryOperators" set to false. Reviewers: djasper Reviewed By: djasper CC: cfe-commits, klimek Differential Revision: http://llvm-reviews.chandlerc.com/D2364 llvm-svn: 196909
* [CMake] Update LLVM_LINK_COMPONENTS for each CMakeLists.txt.NAKAMURA Takumi2013-12-1048-57/+291
| | | | llvm-svn: 196908
* Add JIT to LINK_COMPONENTS in MCJITTests/Makefile.NAKAMURA Takumi2013-12-101-1/+1
| | | | llvm-svn: 196907
* Add TargetLowering::prepareVolatileOrAtomicLoadRichard Sandiford2013-12-1015-73/+75
| | | | | | | | | | | | | | | | | One unusual feature of the z architecture is that the result of a previous load can be reused indefinitely for subsequent loads, even if a cache-coherent store to that location is performed by another CPU. A special serializing instruction must be used if you want to force a load to be reattempted. Since volatile loads are not supposed to be omitted in this way, we should insert a serializing instruction before each such load. The same goes for atomic loads. The patch implements this at the IR->DAG boundary, in a similar way to atomic fences. It is a no-op for targets other than SystemZ. llvm-svn: 196906
* Add TargetLowering::prepareVolatileOrAtomicLoadRichard Sandiford2013-12-1024-51/+106
| | | | | | | | | | | | | | | | | One unusual feature of the z architecture is that the result of a previous load can be reused indefinitely for subsequent loads, even if a cache-coherent store to that location is performed by another CPU. A special serializing instruction must be used if you want to force a load to be reattempted. Since volatile loads are not supposed to be omitted in this way, we should insert a serializing instruction before each such load. The same goes for atomic loads. The patch implements this at the IR->DAG boundary, in a similar way to atomic fences. It is a no-op for targets other than SystemZ. llvm-svn: 196905
* [asan] relax HugeMallocTest so that it does not fail on small-RAM machinesKostya Serebryany2013-12-101-1/+3
| | | | llvm-svn: 196904
* Trivial change: added 'using clang::format::FormatStyle;'Alexander Kornienko2013-12-101-68/+54
| | | | llvm-svn: 196903
* [CMake] lli/CMakeLists.txt: Move add_subdirectory(ChildTarget) to the front. ↵NAKAMURA Takumi2013-12-101-2/+1
| | | | | | It depends on nothing described in LLVM_LINK_COMPONENTS. llvm-svn: 196902
* Support GNU style rule to put a space before opening parenthesis.Alexander Kornienko2013-12-105-22/+151
| | | | | | | | | | | | | | | | | | | | | | | | | | Summary: The rule from the GNU style states: "We find it easier to read a program when it has spaces before the open-parentheses and after the commas." http://www.gnu.org/prep/standards/standards.html#index-spaces-before-open_002dparen This patch makes clang-format adds an option to put spaces before almost all open parentheses, except the cases, where different behavior is dictated by the style rules or language syntax: * preprocessor: ** function-like macro definitions can't have a space between the macro name and the parenthesis; ** `#if defined(...)` can have a space, but it seems, that it's more frequently used without a space in GCC, for example; * never add spaces after unary operators; * adding spaces between two opening parentheses is controlled with the `SpacesInParentheses` option; * never add spaces between `[` and `(` (there's no option yet). Reviewers: djasper Reviewed By: djasper CC: cfe-commits, klimek Differential Revision: http://llvm-reviews.chandlerc.com/D2326 llvm-svn: 196901
* [asan] remove one test from SizedStackTest which relied on a now-wrong ↵Kostya Serebryany2013-12-101-2/+0
| | | | | | assumption that the left stack redzone is >= 32 bytes (PR18195) llvm-svn: 196900
* Add explicit keyword.Rui Ueyama2013-12-101-4/+5
| | | | llvm-svn: 196898
* [PECOFF] Make more member functions non-virtual.Rui Ueyama2013-12-101-4/+4
| | | | llvm-svn: 196897
* [PECOFF] Optimize the writer a bit by removing a loop.Rui Ueyama2013-12-101-45/+33
| | | | llvm-svn: 196896
* [PECOFF] Refactor COFF section header creation.Rui Ueyama2013-12-101-75/+46
| | | | | | | Code to create COFF section header was scattered across many member functions of SectionChunk. Consolidate it to a member function of SectionHeaderTableChunk. llvm-svn: 196895
* [ASan] Fix StackTrace::SlowUnwindStack on WindowsTimur Iskhodzhanov2013-12-102-1/+4
| | | | llvm-svn: 196894
* Regenerate DR status page.Richard Smith2013-12-101-1/+1
| | | | llvm-svn: 196893
* Implement DR1460: fix handling of default initializers in unions; don't allowRichard Smith2013-12-1012-67/+431
| | | | | | | | | more than one such initializer in a union, make mem-initializers override default initializers for other union members, handle anonymous unions with anonymous struct members better. Fix a couple of semi-related bugs exposed by the tests for same. llvm-svn: 196892
* Add more const qualifiers.Rui Ueyama2013-12-101-4/+5
| | | | llvm-svn: 196891
* Remove data members used for relocationsRui Ueyama2013-12-101-11/+17
| | | | | | ... because they are used only in the function for relocations. llvm-svn: 196890
* [AArch64 NEON] Replace fpimm with fpz32 for floating compare with zero.Kevin Qin2013-12-101-3/+3
| | | | | | This is a small change to be strict. Just want get pattern safer. llvm-svn: 196889
OpenPOWER on IntegriCloud