summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* [SystemZ] Extend memcmp support to all constant lengthsRichard Sandiford2013-08-284-30/+188
| | | | | | This uses the infrastructure added for memcpy and memmove in r189331. llvm-svn: 189458
* [asan]: fix a CHECK failure in use-after-return mode; enable and fix ↵Kostya Serebryany2013-08-283-11/+26
| | | | | | stack-use-after-return.cc; add a test for UAR mode in asan_noinst_test llvm-svn: 189457
* Fix use of uninitialized value added in r189400 (found by MemorySanitizer)Alexey Samsonov2013-08-281-4/+3
| | | | llvm-svn: 189456
* clang-format: Don't insert space in __has_includeDaniel Jasper2013-08-282-1/+5
| | | | | | | | | | | | | | | | Before: #if __has_include( <strstream>) #include <strstream> #endif After: #if __has_include(<strstream>) #include <strstream> #endif This fixes llvm.org/PR16516. llvm-svn: 189455
* Generate list of symbols exported from sanitizer runtimes only on 64-bit UnixAlexey Samsonov2013-08-283-13/+20
| | | | llvm-svn: 189454
* clang-format: Fix corner case in ObjC interface definitions.Daniel Jasper2013-08-282-1/+11
| | | | | | | | | | | | | | | In @implementation ObjcClass - (void)method; { } @end the ObjC compiler seems to accept the superfluous comma after "method", but clang-format used to assert on the subsequent "{". This fixes llvm.org/PR16604. llvm-svn: 189453
* [analyzer] Assume new returns non-null even under -fno-exceptionsPavel Labath2013-08-283-130/+51
| | | | | | | | | | | | | | | | | | Summary: -fno-exceptions does not implicitly attach a nothrow specifier to every operator new. Even in this mode, non-nothrow new must not return a null pointer. Failure to allocate memory can be signalled by other means, or just by killing the program. This behaviour is consistent with the compiler - even with -fno-exceptions, the generated code never tests for null (and would segfault if the opeator actually happened to return null). Reviewers: jordan_rose CC: cfe-commits Differential Revision: http://llvm-reviews.chandlerc.com/D1528 llvm-svn: 189452
* clang-format: Improve braced init list detection:Daniel Jasper2013-08-282-1/+8
| | | | | | | | | | | | | | | | Before: std::this_thread::sleep_for(std::chrono::nanoseconds{ std::chrono::seconds { 1 } } / 5); After: std::this_thread::sleep_for( std::chrono::nanoseconds{ std::chrono::seconds{ 1 } } / 5); This fixes llvm.org/PR16554. llvm-svn: 189451
* clang-format: Fix corner case in overloaded operator definitions.Daniel Jasper2013-08-282-1/+6
| | | | | | | | | | | | | | | | | | Before: SomeLoooooooooooooooooooooooooogType operator> >(const SomeLooooooooooooooooooooooooogType &other); SomeLoooooooooooooooooooooooooogType // break operator>>(const SomeLooooooooooooooooooooooooogType &other); After: SomeLoooooooooooooooooooooooooogType operator>>(const SomeLooooooooooooooooooooooooogType &other); SomeLoooooooooooooooooooooooooogType // break operator>>(const SomeLooooooooooooooooooooooooogType &other); This fixes llvm.org/PR16328. llvm-svn: 189450
* clang-format: Fix space in decltype-constexprs.Daniel Jasper2013-08-282-1/+3
| | | | | | | | | | Before: static constexpr bool Bar = decltype(bar()) ::value; After: static constexpr bool Bar = decltype(bar())::value; llvm-svn: 189449
* Add missing includeCraig Topper2013-08-281-0/+1
| | | | llvm-svn: 189448
* Revert r189442 "Change default # of digits for APFloat::toString"Ted Kremenek2013-08-282-13/+9
| | | | | | This is breaking numerous Clang tests on the buildbot. llvm-svn: 189447
* Remove comment on the availability of boxed expressions. They have been ↵Ted Kremenek2013-08-281-6/+0
| | | | | | available for a while. llvm-svn: 189446
* Reorder and shrink size of NameLen field in diagnostic group table. Shaves ↵Craig Topper2013-08-284-11/+14
| | | | | | ~4K from clang binary. llvm-svn: 189445
* Richard makes a good point, clean up this test.David Majnemer2013-08-281-8/+3
| | | | llvm-svn: 189444
* [CMake] use combination of CMAKE_RUNTIME_OUTPUT_DIRECTORY and ↵Ted Kremenek2013-08-281-7/+7
| | | | | | CMAKE_LIBRARY_OUTPUT_DIRECTORY to install clang headers for Xcode builds. llvm-svn: 189443
* Change default # of digits for APFloat::toStringEli Friedman2013-08-282-9/+13
| | | | | | | | | | | | | | | The previous default was almost, but not quite enough digits to represent a floating-point value in a manner which preserves the representation when it's read back in. The larger default is much less confusing. I spent some time looking into printing exactly the right number of digits if a precision isn't specified, but it's kind of complicated, and I'm not really sure I understand what APFloat::toString is supposed to output for FormatPrecision != 0 (or maybe the current API specification is just silly, not sure which). I have a WIP patch if anyone is interested. llvm-svn: 189442
* Revert r189440 - Disable loop vectorizer unrolling when no unrolling requestedHal Finkel2013-08-282-14/+1
| | | | | | | | | | | | | | | | | | | | | As Chandler pointed out, we should not be using -backend-option because this will cause crashes for users of the tooling interface, etc. A better way to fix this will be to provide the unrolling pass-manager flag to the loop vectorizer directly. Original commit message: Disable loop vectorizer unrolling when no unrolling requested In addition to the regular loop unrolling transformation, the loop vectorizer can also unroll loops. If no unrolling has specifically been requested (by -fno-unroll-loops), and the loop vectorizer will be used, then add the backend option to (also) prevent the loop vectorizer from unrolling loops. I confirmed with Nadav (off list) that disabling vectorizer loop unrolling when -fno-unroll-loops is provided is the desired behavior. llvm-svn: 189441
* Disable loop vectorizer unrolling when no unrolling requestedHal Finkel2013-08-282-1/+14
| | | | | | | | | | | | In addition to the regular loop unrolling transformation, the loop vectorizer can also unroll loops. If no unrolling has specifically been requested (by -fno-unroll-loops), and the loop vectorizer will be used, then add the backend option to (also) prevent the loop vectorizer from unrolling loops. I confirmed with Nadav (off list) that disabling vectorizer loop unrolling when -fno-unroll-loops is provided is the desired behavior. llvm-svn: 189440
* Remove support for the .debug_inlined section. No known softwareEric Christopher2013-08-285-122/+0
| | | | | | in use supports it. llvm-svn: 189439
* Merge diagnostic group tables to reduce data size and relocation entries.Craig Topper2013-08-284-39/+68
| | | | | | | | The individual group and subgroups tables are now two large tables. The option table stores an index into these two tables instead of pointers. This reduces the size of the options tabe since it doesn't need to store pointers. It also reduces the number of relocations needed. My build shows this reducing DiagnosticsIDs.o and the clang binary by ~20.5K. It also removes ~400 relocation entries from DiagnosticIDs.o. llvm-svn: 189438
* X86JITInfo.cpp: Apply x64 version of X86CompilationCallback() to Cygwin64.NAKAMURA Takumi2013-08-281-1/+1
| | | | | | For now, (defined(X86_64_JIT) && defined(__CYGWIN__)) satisfies Cygwin64. llvm-svn: 189437
* X86Subtarget.h: Recognize x86_64-cygwin.NAKAMURA Takumi2013-08-281-4/+1
| | | | | | In the LLVM side, x86_64-cygwin is almost as same as x86_64-mingw32. llvm-svn: 189436
* cmake: install a cl.exe binary in the tools/msbuild-bin dirHans Wennborg2013-08-281-0/+9
| | | | llvm-svn: 189435
* cmake: Add msbuild integration to the installHans Wennborg2013-08-284-0/+83
| | | | | | | | | | This adds the msbuild integration files to the install, provides batch scripts for (un)installing it in a convenient way, and hooks up the nsis installer to run those scripts. Differential Revision: http://llvm-reviews.chandlerc.com/D1537 llvm-svn: 189434
* [BumpPtrAllocator] Move DefaultSlabAllocator to a member of ↵Argyrios Kyrtzidis2013-08-282-9/+13
| | | | | | | | | | BumpPtrAllocator, instead of a static variable. The problem with having DefaultSlabAllocator being a global static is that it is undefined if BumpPtrAllocator will be usable during global initialization because it is not guaranteed that DefaultSlabAllocator will be initialized before BumpPtrAllocator is created and used. llvm-svn: 189433
* [mips] Use ptr_rc to simplify definitions of base+index load/store instructions.Akira Hatanaka2013-08-2813-51/+233
| | | | | | Also, fix predicates. llvm-svn: 189432
* [mips] Clean up definitions of move word from/to coprocessor instructions.Akira Hatanaka2013-08-282-46/+20
| | | | | | No functionality change. llvm-svn: 189431
* [mips] Set isAllocatable and CoveredBySubRegs.Akira Hatanaka2013-08-281-1/+3
| | | | llvm-svn: 189430
* Some of this test doesn't want -std=c++11David Majnemer2013-08-281-1/+6
| | | | | | Sorry for the churn. llvm-svn: 189429
* Add a TODO here.Eric Christopher2013-08-281-0/+1
| | | | llvm-svn: 189428
* Add support for DW_FORM_dataN and DW_FORM_udata to the DIE hashingEric Christopher2013-08-283-2/+14
| | | | | | | algorithm. Update the split dwarf hashing testcase accordingly - this should be the last time that the hash of an empty file changes. llvm-svn: 189427
* Revert "Use CMAKE_RUNTIME_OUTPUT_DIRECTORY instead of LLVM_BINARY_DIR for ↵Ted Kremenek2013-08-281-4/+4
| | | | | | | | installing Clang headers." This appears to be breaking the buildbots. llvm-svn: 189426
* This test now needs C++11David Majnemer2013-08-281-1/+1
| | | | llvm-svn: 189425
* Revert "Option parsing: support case-insensitive option matching." as it ↵Rui Ueyama2013-08-284-88/+54
| | | | | | | | broke Windows buildbot. This reverts r189416. llvm-svn: 189424
* Remove an option starting an uppercase character so that the test does not ↵Rui Ueyama2013-08-281-1/+0
| | | | | | depends on sort order. llvm-svn: 189423
* AST: Don't treat a TemplateExpansion as a TemplateDavid Majnemer2013-08-282-7/+16
| | | | | | | | | | | | | | | | | | | Summary: Instead of calling getAsTemplate(), call getAsTemplateOrTemplatePattern() because it handles the TemplateExpansion case too. This fixes PR16997. Reviewers: doug.gregor, rsmith Reviewed By: rsmith CC: cfe-commits Differential Revision: http://llvm-reviews.chandlerc.com/D1512 llvm-svn: 189422
* Revert "PR14569: Omit debug info for thunks"David Blaikie2013-08-279-28/+27
| | | | | | | | | | | | | | | | | | | | | | | | This reverts commit r189320. Alexey Samsonov and Dmitry Vyukov presented some arguments for keeping these around - though it still seems like those tasks could be solved by a tool just using the symbol table. In a very small number of cases, thunks may be inlined & debug info might be able to save profilers & similar tools from misclassifying those cases as part of the caller. The extra changes here plumb through the VarDecl for various cases to CodeGenFunction - this provides better fidelity through a few APIs but generally just causes the CGF::StartFunction to fallback to using the name of the IR function as the name in the debug info. The changes to debug-info-global-ctor-dtor.cpp seem like goodness. The two names that go missing (in favor of only emitting those names as linkage names) are names that can be demangled - emitting them only as the linkage name should encourage tools to do just that. Again, thanks to Dinesh Dwivedi for investigation/work on this issue. llvm-svn: 189421
* ObjectiveC migrator: minor refactoring of my lastFariborz Jahanian2013-08-271-10/+10
| | | | | | cf annotation patch. llvm-svn: 189420
* Use DW_FORM_sdata for signed constant values and udata on occasionEric Christopher2013-08-275-30/+65
| | | | | | | | | | when we can. Migrate from using blocks when we're adding just a single attribute and floating point values are an unsigned, not signed, bag of bits. Update all test cases accordingly. llvm-svn: 189419
* Move some debug testcases to the debug info directory.Eric Christopher2013-08-2716-0/+0
| | | | llvm-svn: 189418
* Modify test to adopt r189416.Rui Ueyama2013-08-271-1/+1
| | | | | | | r189416 changed the order of command line options shown in help message, so the test needs adjusting. llvm-svn: 189417
* Option parsing: support case-insensitive option matching.Rui Ueyama2013-08-274-54/+88
| | | | | | | | | | | | | | Link.exe's command line options are case-insensitive. This patch adds a new attribute to OptTable to let the option parser to compare options, ignoring case. Command lines are generally case-insensitive on Windows. CL.exe is an exception. So this new attribute should be useful for other commands running on Windows. Differential Revision: http://llvm-reviews.chandlerc.com/D1485 llvm-svn: 189416
* [CMake] Put back the add_llvm_external_project() calls for specific projects.Argyrios Kyrtzidis2013-08-271-0/+4
| | | | | | | This allows setting-up the LLVM_EXTERNAL_* CMake variables that some people are using, e.g. to set the source directory of the project in a different place. llvm-svn: 189415
* Use CMAKE_RUNTIME_OUTPUT_DIRECTORY instead of LLVM_BINARY_DIR for installing ↵Ted Kremenek2013-08-271-4/+4
| | | | | | Clang headers. llvm-svn: 189414
* Use do-while instead of a magic number. No functionality change.Rui Ueyama2013-08-271-3/+3
| | | | llvm-svn: 189413
* Delete CC_Default and use the target default CC everywhereReid Kleckner2013-08-2726-228/+756
| | | | | | | | | | | | | | | | | | | | | | | | | Summary: Makes functions with implicit calling convention compatible with function types with a matching explicit calling convention. This fixes things like calls to qsort(), which has an explicit __cdecl attribute on the comparator in Windows headers. Clang will now infer the calling convention from the declarator. There are two cases when the CC must be adjusted during redeclaration: 1. When defining a non-inline static method. 2. When redeclaring a function with an implicit or mismatched convention. Fixes PR13457, and allows clang to compile CommandLine.cpp for the Microsoft C++ ABI. Excellent test cases provided by Alexander Zinenko! Reviewers: rsmith Differential Revision: http://llvm-reviews.chandlerc.com/D1231 llvm-svn: 189412
* Add xml files for msbuild integrationReid Kleckner2013-08-272-0/+12
| | | | | | | | | | | | | | These files are intended to live in the msbuild toolset directory, which is somewhere like: C:\Program Files (x86)\MSBuild\Microsoft.Cpp\ v4.0\Platforms\Win32\PlatformToolsets\llvm More work is needed to install them as part of the NSIS installer. Patch by Warren Hunt! llvm-svn: 189411
* DIBuilder: take an optional StringRef to pass in unique identifier.Manman Ren2013-08-272-19/+29
| | | | | | | | createClassType, createStructType, createUnionType, createEnumerationType, and createForwardDecl will take an optional StringRef to pass in the unique identifier. llvm-svn: 189410
* ObjectiveC migrator: Do not add explicit cf annotation forFariborz Jahanian2013-08-272-147/+169
| | | | | | | | cf functions which are CF_IMPLICIT_BRIDGING_ENABLED. Add cf annotation to those not CF_IMPLICIT_BRIDGING_ENABLED to reduce bridge casts. llvm-svn: 189409
OpenPOWER on IntegriCloud