summaryrefslogtreecommitdiffstats
path: root/clang
Commit message (Collapse)AuthorAgeFilesLines
...
* Mark this test as requiring and x86 registered target.Eric Christopher2015-10-161-0/+1
| | | | llvm-svn: 250475
* Add an error when calling a builtin that requires features that don'tEric Christopher2015-10-157-0/+122
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | match the feature set of the function that they're being called from. This ensures that we can effectively diagnose some[1] code that would instead ICE in the backend with a failure to select message. Example: __m128d foo(__m128d a, __m128d b) { return __builtin_ia32_addsubps(b, a); } compiled for normal x86_64 via: clang -target x86_64-linux-gnu -c would fail to compile in the back end because the normal subtarget features for x86_64 only include sse2 and the builtin requires sse3. [1] We're still not erroring on: __m128i bar(__m128i const *p) { return _mm_lddqu_si128(p); } where we should fail and error on an always_inline function being inlined into a function that doesn't support the subtarget features required. llvm-svn: 250473
* Fix the subtarget features required by some x86 builtins.Eric Christopher2015-10-151-36/+36
| | | | | | | | | | Update the fma builtins to be fma/fma4 until some we can find some documentation either way. Update a couple of the avx intrinsics because they were in the wrong category. llvm-svn: 250470
* Add llvm-bcanalyzer to list of clang test dependencesTeresa Johnson2015-10-151-1/+1
| | | | | | | This addresses a bot failure from r250455, since new Misc/thinlto.c test uses it. llvm-svn: 250460
* Recommit "Clang support for -flto=thin."Teresa Johnson2015-10-1512-43/+167
| | | | | | | | | This recommits r250398 with fixes to the tests for bot failures. Add "-target x86_64-unknown-linux" to the clang invocations that check for the gold plugin. llvm-svn: 250455
* The target-feature command line option doesn't take a comma delimitedEric Christopher2015-10-152-12/+12
| | | | | | string, so split them into multiple options. llvm-svn: 250449
* Add the minimum target features that these tests depend upon.Eric Christopher2015-10-152-3/+3
| | | | llvm-svn: 250448
* clang-format: Basic escaping when outputting XML.Daniel Jasper2015-10-151-1/+9
| | | | llvm-svn: 250440
* Put back doxygen comment accidentally dropped in r250418.Benjamin Kramer2015-10-151-0/+5
| | | | llvm-svn: 250428
* clang-format/java: Break after annotations on fields in Chromium style.Nico Weber2015-10-154-6/+14
| | | | | | | | | | | Chromium follows the Android style guide for Java code, and that doesn't make the distinction between fields and non-fields that the Google Java style guide makes: https://source.android.com/source/code-style.html#use-standard-java-annotations https://google.github.io/styleguide/javaguide.html#s4.8.5-annotations llvm-svn: 250422
* [CodeGen] Remove dead code. NFC.Benjamin Kramer2015-10-1515-235/+1
| | | | llvm-svn: 250418
* Add support for CloudABI/aarch64.Ed Schouten2015-10-151-0/+2
| | | | | | | The core C library has already been ported over to aarch64 successfully, meaning there is no reason to hold this change back. llvm-svn: 250416
* Tweak to make clang/test/Driver/ps4-linker-win.c less sinsitive of DLL path.NAKAMURA Takumi2015-10-152-7/+9
| | | | | | | | | | | - On mingw-w64, libstdc++-6.dll is used for clang.exe. The DLL might not be in Windows' system directory. - With --enable-shared, DLLs might be in ${CMAKE_BINARY_DIR}/bin. I understand this test confirms that appropriate name of executable can be found on %PATH%. Therefore I added "Output\\" before each expression. FIXME: The output directory %T is hardcoded like "Output\\ps4-ld.exe". llvm-svn: 250403
* Revert "Clang support for -flto=thin." (bot failures)Teresa Johnson2015-10-1512-167/+43
| | | | | | | | | | | Rolling this back for now since there are a couple of bot failures on the new tests I added, and I won't have a chance to look at them in detail until later this afternoon. I think the new tests need some restrictions on having the gold plugin available. This reverts commit r250398. llvm-svn: 250402
* Clang support for -flto=thin.Teresa Johnson2015-10-1512-43/+167
| | | | | | | | | | | | | | | | | | | Summary: Add clang support for -flto=thin option, which is used to set the EmitFunctionSummary code gen option on compiles. Add -flto=full as an alias to the existing -flto. Add tests to check for proper overriding of -flto variants on the command line, and convert grep tests to FileCheck. Reviewers: dexonsmith, joker.eph Subscribers: davidxl, cfe-commits Differential Revision: http://reviews.llvm.org/D11908 llvm-svn: 250398
* Headers: Switch some headers to LF line endings for consistency.Peter Collingbourne2015-10-155-343/+343
| | | | llvm-svn: 250388
* Update clang for DIBuilder::createSubroutineType API change.Eric Christopher2015-10-151-7/+6
| | | | | | Patch by Amaury Sechet! llvm-svn: 250373
* [X86] Add proper feature names to xsave builtins.Craig Topper2015-10-151-12/+12
| | | | llvm-svn: 250369
* [X86] Add command line switches for xsave/xsaveopt/xsavec/xsaves. Macro ↵Craig Topper2015-10-155-4/+126
| | | | | | defines for the same. And add the flags to correct CPU names. llvm-svn: 250368
* Remove unnecessary braces in single-line 'if'.Douglas Katzman2015-10-151-2/+1
| | | | llvm-svn: 250363
* [X86] Use C+11 non-static data member initialization to initialize all the ↵Craig Topper2015-10-141-34/+30
| | | | | | | | X86 feature controls. NFC This simplifies the constructor initialization list and makes it less likely a feature flag will be forgotten there. llvm-svn: 250348
* Sample profiles - Update text profile documentation.Diego Novillo2015-10-141-12/+54
| | | | | | | There's been some changes to the text encoding for sample profiles. This updates the documentation and an example. llvm-svn: 250310
* Intrin.h: implement __emul and __emuluHans Wennborg2015-10-141-0/+11
| | | | llvm-svn: 250301
* Tweak a -g related test for the PS4Filipe Cabecinhas2015-10-141-1/+7
| | | | | | | | Make sure we're matching what we want: - Always have -generate-arange-section (independent of -g) - Emit a -dwarf-version=... when -g is there. llvm-svn: 250298
* Bring back r250262: PS4 toolchainFilipe Cabecinhas2015-10-1418-8/+751
| | | | | | | | | | | | | | There was a minor problem with a test. Sorry for the noise yesterday. This patch adds missing pieces to clang, including the PS4 toolchain definition, added warnings, PS4 defaults, and Driver changes needed for our compiler. A patch by Filipe Cabecinhas, Pierre Gousseau and Katya Romanova! Differential Revision: http://reviews.llvm.org/D13482 llvm-svn: 250293
* [CMake] Add LLVM_VERSION_PATCH to the -current_version flag for libclang.Chris Bieneman2015-10-141-1/+1
| | | | | | This is to match autoconf where LLVM_SUBMIT_SUBVERSION is usually set to ${LLVM_VERSION_MINOR}.${LLVM_VERSION_PATCH}. llvm-svn: 250278
* Revert-to-green r250262 (PS4 toolchain patch)Sean Silva2015-10-1418-749/+7
| | | | | | | It is breaking llvm-clang-lld-x86_64-scei-ps4-ubuntu-fast e.g. http://lab.llvm.org:8011/builders/llvm-clang-lld-x86_64-scei-ps4-ubuntu-fast/builds/1362 llvm-svn: 250273
* Canonicalize some of the x86 builtin tests and either remove or commentEric Christopher2015-10-1431-56/+90
| | | | | | about optimization options. llvm-svn: 250271
* Remove the optimization option from this test as it is unnecessaryEric Christopher2015-10-141-1/+1
| | | | | | and front end tests should avoid this if possible. llvm-svn: 250270
* [MSVC] Fix for http://llvm.org/PR24132: __declspec(property): double ↵Alexey Bataev2015-10-142-11/+31
| | | | | | | | | invocations of foo() when compiling foo()->propertyName Removes extra codegen for base expression of MS property call Differential Revision: http://reviews.llvm.org/D13375 llvm-svn: 250265
* I took care of the build problem in the commit 250252.Ekaterina Romanova2015-10-1418-7/+749
| | | | | | | | | | | | | | Resubmitting the patch. This patch adds missing pieces to clang, including the PS4 toolchain definition, added warnings, PS4 defaults, and Driver changes needed for our compiler. A patch by Filipe Cabecinhas, Pierre Gousseau and Katya Romanova! Differential Revision: http://reviews.llvm.org/D13482 llvm-svn: 250262
* reverting my patch, cause build problemsEkaterina Romanova2015-10-1418-749/+7
| | | | llvm-svn: 250257
* This patch adds missing pieces to clang, including the PS4 toolchainEkaterina Romanova2015-10-1318-7/+749
| | | | | | | | | | | definition, added warnings, PS4 defaults, and Driver changes needed for our compiler. A patch by Filipe Cabecinhas, Pierre Gousseau and Katya Romanova! Differential Revision: http://reviews.llvm.org/D13482 llvm-svn: 250252
* [Sema/objc] When checking for unimplemented methods treat methods from class ↵Argyrios Kyrtzidis2015-10-133-8/+17
| | | | | | extensions as continuation of the class interface. llvm-svn: 250250
* [CMake]Getting rid of references to LLVM_SUBMIT_VERSION and ↵Chris Bieneman2015-10-132-9/+3
| | | | | | | | LLVM_SUBMIT_SUBVERSION in favor of LLVM_VERSION_MAJOR and LLVM_VERSION_MINOR. LLVM_SUBMIT_VERSION and LLVM_SUBMIT_SUBVERSION are commonly used variable names in the autoconf build system. They seem to have leeched into clang's CMake in a few places, and should just be replaced by the LLVM_VERSION_* variables where appropriate. llvm-svn: 250246
* [analyzer] Don’t invalidate CXXThis when conservatively evaluating const ↵Devin Coughlin2015-10-133-11/+269
| | | | | | | | | | | | methods (PR 21606) Prevent invalidation of `this' when a method is const; fixing PR 21606. A patch by Sean Eveson! Differential Revision: http://reviews.llvm.org/D13099 llvm-svn: 250237
* Move the adc-builtins test to the pattern of the other builtinsEric Christopher2015-10-131-1/+3
| | | | | | tests by predefining _MM_MALLOC_H rather than use -ffreestanding. llvm-svn: 250203
* Add subtarget feature support for 3dnowa to the 3dnowa intrinsics.Eric Christopher2015-10-131-0/+4
| | | | llvm-svn: 250202
* [CMake] When building clang as an external project we should pass through ↵Chris Bieneman2015-10-131-0/+11
| | | | | | all variables that start with COMPILER_RT llvm-svn: 250196
* Always pass a -dwarf-version argument to integrated as.Douglas Katzman2015-10-133-3/+19
| | | | | | | | This removes the default of 3 hidden in the assembler previously. Fixes breakage caused by r249655, reported by vsukharev. llvm-svn: 250173
* [Driver] Use the parent_path of the clang executable as the default InstalledDirBenjamin Kramer2015-10-132-2/+42
| | | | | | | | This is what most people want anyways. Clang -cc1's main() will override this but for other tools this is the most sensible default and avoids some work. llvm-svn: 250164
* [X86] Add XSAVE intrinsic familyAmjad Aboud2015-10-1312-7/+485
| | | | | | | | | | | | Add intrinsics for the XSAVE instructions (XSAVE/XSAVE64/XRSTOR/XRSTOR64) XSAVEOPT instructions (XSAVEOPT/XSAVEOPT64) XSAVEC instructions (XSAVEC/XSAVEC64) XSAVES instructions (XSAVES/XSAVES64/XRSTORS/XRSTORS64) Differential Revision: http://reviews.llvm.org/D13014 llvm-svn: 250158
* Remove unused diagnostic. NFC.Benjamin Kramer2015-10-131-2/+0
| | | | llvm-svn: 250155
* [X86] LLVM now prints XOP immediates as unsigned after r250147. Fix expected ↵Craig Topper2015-10-131-1/+1
| | | | | | check string accordingly. llvm-svn: 250149
* [modules] Improve error message on failed module load due to a missing file toRichard Smith2015-10-131-1/+3
| | | | | | say which module file referenced the missing file. llvm-svn: 250140
* [modules] Allow the error on importing a C++ module within an extern "C"Richard Smith2015-10-133-14/+20
| | | | | | | | | context (but otherwise at the top level) to be disabled, to support use of C++ standard library implementations that (legitimately) mark their <blah.h> headers as being C++ headers from C libraries that wrap things in 'extern "C"' a bit too enthusiastically. llvm-svn: 250137
* Tweak clang/test/CodeGen/debug-prefix-map.c to appease win32 hosts.NAKAMURA Takumi2015-10-131-1/+1
| | | | | | !1 = !DIFile(filename: "/var/empty\5C<stdin>", directory: "E:\5Cllvm\5Cbuild\5Ccmake-ninja\5Ctools\5Cclang\5Ctest\5CCodeGen") llvm-svn: 250136
* [modules] Fix merging of __va_list_tag's implicit special member functions.Richard Smith2015-10-136-6/+57
| | | | | | | | | | | We model predefined declarations as not being from AST files, but in most ways they act as if they come from some implicit prebuilt module file imported before all others. Therefore, if we see an update to the predefined 'struct __va_list_tag' declaration (and we've already loaded any modules), it needs a corresponding update record, even though it didn't technically come from an AST file. llvm-svn: 250134
* [safestack] Driver link test for safestack on android.Evgeniy Stepanov2015-10-121-0/+35
| | | | | | | | | | Safestack runtime should never be linked on Android targets because it is implemented directly in libc. This is already the case, but mostly by chance (collectSanitizerRuntimes would only link shared sanitizer runtimes, and safestack has only a static one). Protect this behavior with a test. llvm-svn: 250128
* Add decayedType and hasDecayedType AST matchersMatthias Gehre2015-10-124-0/+42
| | | | | | | | | | | | Summary: Add decayedType and hasDecayedType AST matchers Reviewers: klimek Subscribers: klimek, cfe-commits Differential Revision: http://reviews.llvm.org/D13639 llvm-svn: 250114
OpenPOWER on IntegriCloud