summaryrefslogtreecommitdiffstats
path: root/clang
Commit message (Collapse)AuthorAgeFilesLines
* [OpenCL] Remove tests without triple from test/Headers/opencl-c-header.cl.Yaxun Liu2016-05-301-4/+0
| | | | | | This test requires triples with Itanium C++ ABI whereas triples with MSVC environment uses Microsoft C++ ABI. llvm-svn: 271198
* [OpenCL] Add the default header file opencl-c.h for OpenCL C languageYaxun Liu2016-05-303-0/+17006
| | | | | | | | | | | | OpenCL has large number of "builtin" functions ("builtin" in the sense of OpenCL spec) which are defined in header files. To compile OpenCL kernels using these builtin functions, a header file is needed. This header file is based on the Khronos implementation (https://github.com/KhronosGroup/SPIR/blob/spirv-1.0/lib/Headers/opencl.h) with heavy refactoring. Re-commit after fixing failures on ppc64/systemz etc. Differential Revision: http://reviews.llvm.org/D18369 llvm-svn: 271197
* clang-format: Fix segfault introduced by allowing wraps after comments.Daniel Jasper2016-05-292-1/+7
| | | | llvm-svn: 271191
* Enable some accidentally dead tests and fix up the bitrotDavid Blaikie2016-05-294-7/+10
| | | | | | | | | | | Problem found by Nico, originally committed by me in r213213. The .test prefix wasn't actually being run. Once that was fixed the test cases had outdated command line syntax and IR debug info format, so updated for those issues to get them back up and running. Thanks Nico! llvm-svn: 271188
* [X86][SSE] Make unsigned integer vector types generally availableSimon Pilgrim2016-05-293-12/+6
| | | | | | As discussed on http://reviews.llvm.org/D20684, move the unsigned integer vector types used for zero extension to make them available for general use. llvm-svn: 271187
* clang-format: [JS] Support shebang lines on the very first line.Martin Probst2016-05-293-1/+22
| | | | | | | | | | | | | | | Summary: Shebang lines (`#!/bin/blah`) can be used in JavaScript scripts to indicate they should be run using e.g. node. This change treats # lines on the first line as line comments. Reviewers: djasper Subscribers: klimek, cfe-commits Differential Revision: http://reviews.llvm.org/D20632 llvm-svn: 271185
* clang-format: [JS] fix async parsing.Martin Probst2016-05-292-4/+13
| | | | | | | | | | | | | | Summary: Only treat the sequence `async function` as the start of a function expression, as opposed to every occurrence of the token `async` (whoops). Reviewers: djasper Subscribers: klimek, cfe-commits Differential Revision: http://reviews.llvm.org/D20737 llvm-svn: 271184
* clang-format: [JS] FormatToken.startsSequence/endsSequence.Martin Probst2016-05-292-40/+44
| | | | | | | | | Refactors AnnotatedLine.startsWith/endsWith by extracting the core functionality into FormatToken.startsSequence/endsSequence. This allows checking tokens within the pointered linked list structure with a lookahead, automatically ignoring comments, which is useful in many places (e.g. see subsequent commit). llvm-svn: 271183
* Avoid unnecessary std::string copies. NFC.Benjamin Kramer2016-05-292-3/+3
| | | | llvm-svn: 271182
* [X86] Simplify alignr builtin support by recognizing that NumLaneElts is ↵Craig Topper2016-05-291-9/+7
| | | | | | always 16. NFC llvm-svn: 271176
* Fix typo.Rafael Espindola2016-05-291-1/+1
| | | | | | Thanks to David Majnemer for noticing. llvm-svn: 271166
* [CodeGen] Use the ArrayRef form CreateShuffleVector instead of building ↵Craig Topper2016-05-291-48/+39
| | | | | | ConstantVectors or ConstantDataVectors and calling the other form. llvm-svn: 271165
* Mark test as requiring x86-registered-target.Rafael Espindola2016-05-291-0/+1
| | | | llvm-svn: 271163
* Handle -Wa,--mrelax-relocations=[no|yes].Rafael Espindola2016-05-299-0/+44
| | | | llvm-svn: 271162
* Revert r271136 [OpenCL] Add the default header file opencl-c.h for OpenCL C ↵Yaxun Liu2016-05-283-16912/+0
| | | | | | language due to build failure on ppc64/hexagon/systemz. llvm-svn: 271144
* CodeGen: support blocks on COFF targets in DLLsSaleem Abdulrasool2016-05-282-3/+105
| | | | | | | | | | | This extends the blocks support to support blocks with a dynamically linked blocks runtime. The previous code generation would work only for static builds of the blocks runtime. Mark the block "isa" pointers and functions as dllimport if no explicit declaration marked with __declspec(dllexport) is found. This additional check allows for the use of the functionality in the runtime library if desired. llvm-svn: 271138
* [OpenCL] Add the default header file opencl-c.h for OpenCL C languageYaxun Liu2016-05-283-0/+16912
| | | | | | | | | | OpenCL has large number of "builtin" functions ("builtin" in the sense of OpenCL spec) which are defined in header files. To compile OpenCL kernels using these builtin functions, a header file is needed. This header file is based on the Khronos implementation (https://github.com/KhronosGroup/SPIR/blob/spirv-1.0/lib/Headers/opencl.h) with heavy refactoring. Differential Revision: http://reviews.llvm.org/D18369 llvm-svn: 271136
* [AVX512] Add masked v16i32 and v8i64 unaligned store tests.Craig Topper2016-05-281-0/+12
| | | | llvm-svn: 271134
* [driver][mips] Fix local variable naming. NFCSimon Atanasyan2016-05-281-6/+6
| | | | llvm-svn: 271110
* [driver][mips] Revert support for CodeSourcery MIPS toolchainSimon Atanasyan2016-05-28180-4/+762
| | | | | | This is revert of r270366. The support for CS toolchain were dropped too early. llvm-svn: 271109
* [X86][SSE] Replace VPMOVSX and (V)PMOVZX integer extension intrinsics with ↵Simon Pilgrim2016-05-286-60/+66
| | | | | | | | | | | | | | generic IR (clang) The VPMOVSX and (V)PMOVZX sign/zero extension intrinsics can be safely represented as generic __builtin_convertvector calls instead of x86 intrinsics. This patch removes the clang builtins and their use in the sse2/avx headers - a companion patch will remove/auto-upgrade the llvm intrinsics. Note: We already did this for SSE41 PMOVSX sometime ago. Differential Revision: http://reviews.llvm.org/D20684 llvm-svn: 271106
* AMDGPU: Add fract builtinMatt Arsenault2016-05-283-0/+19
| | | | llvm-svn: 271080
* Clean up: remove trailing spaces in x86 intrinsic headers.Ekaterina Romanova2016-05-286-91/+91
| | | | | | Differential Revision: http://reviews.llvm.org/D20614 llvm-svn: 271077
* docs: Clarify that LTO visibility is based on source-level symbol visibility.Peter Collingbourne2016-05-271-8/+10
| | | | llvm-svn: 271063
* [Driver] Fix driver support for color diagnosticsBruno Cardoso Lopes2016-05-273-32/+61
| | | | | | | | | | | | | | | | Diagnostics that happen during driver time do not have color output support unless -fcolor-diagonostic is explicitly passed into the driver. This is not a problem for cc1 since dianostic arguments are properly handled and color is enabled by default if the terminal supports it. Make the driver behave like CC1. There are tests that already check for these flags, but for the color itself there's no sensible way to test it. Differential Revision: http://reviews.llvm.org/D20404 rdar://problem/26290980 llvm-svn: 271042
* [Headers] Remove redundant typedef. NFC.Ahmed Bougacha2016-05-271-1/+0
| | | | llvm-svn: 271022
* Add instcombine pass if sampleprofile pass is enabled.Dehao Chen2016-05-271-2/+10
| | | | | | | | | | | | Summary: Sample profile pass need to have instcombine pass. A related change is http://reviews.llvm.org/D17742. But we should not explicitly add dependency between to non-analysis passes. So we add the dependency here. Reviewers: davidxl, dnovillo Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D20502 llvm-svn: 271010
* [msan] add a sentence about inline assemblyKostya Serebryany2016-05-271-0/+2
| | | | llvm-svn: 271005
* [OpenMP] Fix SEMA bug in the capture of global variables in template functions.Samuel Antao2016-05-272-14/+167
| | | | | | | | | | | | | | Summary: Target regions require globals to be captured. This patch fixes a bug exposed when that happens in a template function. Reviewers: hfinkel, arpith-jacob, kkwli0, carlo.bertolli, ABataev Subscribers: guansong, ABataev, cfe-commits, caomhin, fraggamuffin Differential Revision: http://reviews.llvm.org/D18110 llvm-svn: 271001
* [mips] Compact branch policy setting.Simon Dardis2016-05-277-0/+55
| | | | | | | | | | | | | | This patch adds the commandline option -mcompact-branches={never,optimal,always), which controls how LLVM generates compact branches for MIPSR6 targets. By default, the compact branch policy is 'optimal' where LLVM will generate the most appropriate branch for any situation. The 'never' and 'always' policy will disable or always generate compact branches wherever possible respectfully. Reviewers: dsanders, vkalintiris, atanasyan Differential Revision: http://reviews.llvm.org/D20729 llvm-svn: 271000
* [mips] Kill 'support' for untested EABI.Daniel Sanders2016-05-275-23/+5
| | | | | | | | | | | | | | | | | Summary: There are no llvm backend tests* for EABI and no EABI buildbots. There were only three clang tests, all of which checked that -mabi=eabi was passed to the assembler. *There is a single backend test that specifies EABI but it actually tests MIPS16. Reviewers: atanasyan Subscribers: emaste, sdardis, atanasyan, cfe-commits Differential Revision: http://reviews.llvm.org/D20679 llvm-svn: 270998
* Apply clang-tidy's misc-move-constructor-init throughout Clang.Benjamin Kramer2016-05-2730-67/+99
| | | | | | No functionality change intended, maybe a tiny performance improvement. llvm-svn: 270996
* Turn copies into references as suggested by clang-tidy's ↵Benjamin Kramer2016-05-276-12/+13
| | | | | | performance-unnecessary-copy-initialization. llvm-svn: 270994
* [Frontend] StringRefize and fix bad indentation.Benjamin Kramer2016-05-271-22/+22
| | | | | | NFC intended. llvm-svn: 270991
* Update for following LLVM commit.George Rimar2016-05-271-1/+1
| | | | | | | It will be: Recommit 270977 - [llvm-mc] - Teach llvm-mc to generate zlib styled compression sections. llvm-svn: 270985
* [mips] Fold MipsTargetInfoBase subclasses into MipsTargetInfoBase and rename ↵Daniel Sanders2016-05-271-317/+209
| | | | | | | | | | | | | | | | | to MipsTargetInfo. NFC Summary: This unifies mips/mipsel and mips64/mips64el into a single class so that we can later support O32 on mips64/mips64el and N32/N64 on mips/mipsel (when an appropriate CPU selected). Reviewers: atanasyan Subscribers: atanasyan, jfb, cfe-commits, dschuff Differential Revision: http://reviews.llvm.org/D20678 llvm-svn: 270984
* Convert assert to static_assert. NFC.Benjamin Kramer2016-05-271-1/+2
| | | | llvm-svn: 270983
* clang-format: Allow splitting the line after /**/-comments.Daniel Jasper2016-05-272-1/+5
| | | | | | | While it might change the meaning of the comment in rare circumstances, it is better than violating the column limit. llvm-svn: 270975
* [MSVC2015] Fix mangling for static variables initialization guardsDmitry Polukhin2016-05-272-7/+17
| | | | | | | | | It seems that suffix '@4HA' was omitted for unknown reason. It is non-cont non-volatile 'int' type of normal variable TSS. Differential revision: http://reviews.llvm.org/D20683 llvm-svn: 270974
* [clang-format] moved unit tests related to replacements cleaner from ↵Eric Liu2016-05-272-29/+41
| | | | | | FormatTest.cpp to CleanUpTest.cpp. llvm-svn: 270971
* [AVX512][Builtin] Fix palignr intrinsic for avx512vlbw. The immediate should ↵Craig Topper2016-05-271-4/+4
| | | | | | | | not be multiplied by 8. The 512-bit version was fixed recently but this was missed. llvm-svn: 270970
* [OPENMP] Fixed processing of '-fopenmp-version=' option and test.Alexey Bataev2016-05-274-29/+30
| | | | llvm-svn: 270962
* [CodeGen] Don't crash when sizeof(long) != 4 for some intrinsDavid Majnemer2016-05-272-6/+32
| | | | | | | | | | _InterlockedIncrement and _InterlockedDecrement have 'long' in their prototypes. We assumed 'long' was the same size as an i32 which is incorrect for other targets. This fixes PR27892. llvm-svn: 270953
* [Intrin.h] Sort the __read[fg]s intrinsicsDavid Majnemer2016-05-271-8/+8
| | | | | | No functional change is intended. llvm-svn: 270952
* OpenMPClause.h: Fix r270882. [-Wdocumentation]NAKAMURA Takumi2016-05-271-4/+4
| | | | llvm-svn: 270940
* Produce better pretty stack traces from crashes in template instantiation: addRichard Smith2016-05-263-6/+17
| | | | | | | | pretty stack trace entries for all cases where we instantiate the definition of something, and include the fully-qualified name with template arguments in the name of the instantiated entity. llvm-svn: 270904
* Re-commit r270748 "clang-cl: Treat dllimport explicit template instantiation ↵Hans Wennborg2016-05-266-19/+119
| | | | | | | | | | definitions as declarations (PR27810, PR27811)" Also make explicit instantiation decls not apply to nested classes when targeting MSVC. That dll attributes are not inherited by inner classes might be the explanation for MSVC's behaviour here. llvm-svn: 270897
* [AMDGPU] Remove individual debugger options + update featuresKonstantin Zhuravlyov2016-05-263-21/+4
| | | | | | Differential Revision: http://reviews.llvm.org/D20336 llvm-svn: 270895
* [OpenMP] Codegen for target update directive.Samuel Antao2016-05-264-27/+331
| | | | | | | | | | | | Summary: This patch implements the code generation for the `target update` directive. The implemntation relies on the logic already in place for target data standalone directives, i.e. target enter/exit data. Reviewers: hfinkel, carlo.bertolli, arpith-jacob, kkwli0, ABataev Subscribers: caomhin, cfe-commits Differential Revision: http://reviews.llvm.org/D20650 llvm-svn: 270886
* [OpenMP] Parsing and sema support for the from clauseSamuel Antao2016-05-2621-40/+532
| | | | | | | | | | | | | | | Summary: The patch contains the parsing and sema support for the `from` clause. Patch based on the original post by Kelvin Li. Reviewers: hfinkel, carlo.bertolli, kkwli0, arpith-jacob, ABataev Subscribers: caomhin, cfe-commits Differential Revision: http://reviews.llvm.org/D18488 llvm-svn: 270882
OpenPOWER on IntegriCloud