summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fix a fixme and make DICompileUnit a distinct node. Tested via clang.Adrian Prantl2015-06-301-3/+1
| | | | llvm-svn: 241097
* Fix compilation failure introduced in r241093.Alex Lorenz2015-06-301-2/+2
| | | | llvm-svn: 241096
* K-ballo pointed out that I missed one of the specializations of ↵Marshall Clow2015-06-301-1/+1
| | | | | | packaged_task when I committed r241068. Thanks for the catch. llvm-svn: 241095
* Add a test of an elf file with an invalid section index.Rafael Espindola2015-06-302-0/+4
| | | | | | We were already checking, but were missing a test. llvm-svn: 241094
* MIR Serialization: Serialize MBB successors.Alex Lorenz2015-06-308-4/+189
| | | | | | | | | | | | | This commit implements serialization of the machine basic block successors. It uses a YAML flow sequence that contains strings that have the MBB references. The MBB references in those strings use the same syntax as the MBB machine operands in the machine instruction strings. Reviewers: Duncan P. N. Exon Smith Differential Revision: http://reviews.llvm.org/D10699 llvm-svn: 241093
* Forgot the support include file in r241091Marshall Clow2015-06-301-0/+73
| | | | llvm-svn: 241092
* Add tests for LWG#2299. While doing so, I noticed that the tests we have for ↵Marshall Clow2015-06-3050-3/+1718
| | | | | | the transparent comparators don't actually call them. Fix those tests, too. Now one of them is failing, due to a missing const in <map>. Add that (twice). Next step is to do the same for <unordered_map> llvm-svn: 241091
* Relax this test so it also works on platforms that use characters otherAdrian Prantl2015-06-301-1/+1
| | | | | | than forward slashes as path separators. llvm-svn: 241090
* Use copy init instead of direct init.Rafael Espindola2015-06-301-4/+4
| | | | llvm-svn: 241089
* Use an early exit to improve readability. (NFC)Adrian Prantl2015-06-301-34/+32
| | | | llvm-svn: 241088
* MIR Printer: extract the code that prints MBB references into a new method. NFC.Alex Lorenz2015-06-301-5/+10
| | | | | | | This commit enables the MIR printer to reuse the code that prints MBB references. llvm-svn: 241087
* MIR Parser: refactor error reporting for machine instruction parser errors. NFC.Alex Lorenz2015-06-301-5/+14
| | | | | | | This commit extracts the code that reports an error that's produced by the machine instruction parser into a new method that can be reused in other places. llvm-svn: 241086
* MIR Parser: make the machine instruction parsing interface more consistent. NFC.Alex Lorenz2015-06-303-30/+26
| | | | | | | | | This commit refactors the interface for machine instruction parser. It adopts the pattern of returning a bool and passing in the result in the first argument that is used by the other parsing methods for the the method 'parse' and the function 'parseMachineInstr'. llvm-svn: 241085
* Debug Info: Emit debug info for @import declarations.Adrian Prantl2015-06-306-0/+79
| | | | | | | | | This allows a module-aware debugger such as LLDB to import the currently visible modules before dropping into the expression evaluator. rdar://problem/20965932 llvm-svn: 241084
* Add a function to ExternalASTSource that returns a descriptor thatAdrian Prantl2015-06-306-1/+65
| | | | | | | abstracts the commonalities between modules and PCH files that are needed to emit debug info for a module or precompiled header. llvm-svn: 241083
* tsan: fix handling of condition variable destructionDmitry Vyukov2015-06-302-2/+55
| | | | | | | | | | | | POSIX states that "It shall be safe to destroy an initialized condition variable upon which no threads are currently blocked", and later clarifies "A condition variable can be destroyed immediately after all the threads that are blocked on it are awakened) (in examples section). Tsan reported such destruction as a data race. Fixes https://llvm.org/bugs/show_bug.cgi?id=23616 Reviewed in http://reviews.llvm.org/D10693 llvm-svn: 241082
* Force relocation mode to be default, regardless of what is passed to the ↵Samuel Antao2015-06-302-1/+19
| | | | | | backend. llvm-svn: 241081
* [CMake] Make the CMake files (LLVMConfig.cmake and LLVMExports.cmake)Dan Liew2015-06-301-9/+27
| | | | | | | | | | | | | | | | | | generated by the Autoconf/Makefile build system relocatable. Previously the generated CMake files contained hardcoded paths which prevented a binary installation from being relocated to a different place in the file system. This problem was most noticeable in LLVM's official binary releases which were completely unusable by a downstream project trying to import the CMake targets. Package maintainers who choose to modify the install location of the CMake directory without using the ``PROJ_cmake`` Makefile variable override will need to patch the generated``LLVMConfig.cmake`` so that ``LLVM_INSTALL_PREFIX`` and ``_LLVM_CMAKE_DIR`` variables are set correctly. llvm-svn: 241080
* [NativeProcessLinux] Refactor PtraceWrapperPavel Labath2015-06-305-106/+64
| | | | | | | | | | | | | | | | | Summary: This changes PtraceWrapper to return an Error, while the actual result is in an pointer parameter (instead of the other way around). Also made a couple of PtraceWrapper arguments default to zero. This arrangement makes a lot of the code much simpler. Test Plan: Tests pass on linux. It compiles on android arm64/mips64. Reviewers: chaoren, mohit.bhakkad Subscribers: tberghammer, aemerson, lldb-commits Differential Revision: http://reviews.llvm.org/D10808 llvm-svn: 241079
* MIR Parser: adopt the 'maybeLex...' pattern. NFC.Alex Lorenz2015-06-301-22/+37
| | | | | | | | | | | | This commit refactors the machine instruction lexer so that the lexing functions use the 'maybeLex...' pattern, where they determine if they can lex the current token by themselves. Reviewers: Sean Silva Differential Revision: http://reviews.llvm.org/D10817 llvm-svn: 241078
* [clang-cl] Use /arch: to set the base target CPUReid Kleckner2015-06-302-2/+31
| | | | | | | | | | | | The main effect of this change is that /arch:IA32 will use i386 as the CPU, while clang-cl will continue to default to pentium4 (aka SSE2 plus the usual other features). /arch:AVX and /arch:AVX2 will also now enable the other features available in sandybridge and haswell respectively, which is consistent with MSDN. llvm-svn: 241077
* use range-based for loops; NFCISanjay Patel2015-06-301-7/+5
| | | | llvm-svn: 241076
* Update for llvm change.Rafael Espindola2015-06-302-6/+6
| | | | llvm-svn: 241075
* Fix the name of the iterator functions to match the coding standards.Rafael Espindola2015-06-306-76/+75
| | | | llvm-svn: 241074
* [Static Analyzer] Minor improvements to SATest.Gabor Horvath2015-06-302-20/+41
| | | | | | Differential Revision: http://reviews.llvm.org/D10812 llvm-svn: 241073
* [ASan] Add a regression test for r240960 (https://crbug.com/502974)Alexander Potapenko2015-06-301-0/+48
| | | | | | | The test simulates a sandbox that prevents the program from calling readlink(). ASan is supposed to still be able to print the executable name regardless of that. llvm-svn: 241072
* Fix windows build.Ewan Crawford2015-06-301-34/+28
| | | | | | Windows build was broken in either r240983 or r240978 in the changes to FileSpec.cpp llvm-svn: 241071
* Report an error on invalid sh_entsize.Rafael Espindola2015-06-303-8/+43
| | | | llvm-svn: 241070
* [X86] Fix a bug in WIN_FTOL_32/64 handling.Michael Kuperstein2015-06-302-1/+23
| | | | | | | | | | Duplicating an FP register "as itself" is a bad idea, since it violates the invariant that every FP register is mapped to at most one FPU stack slot. Use the scratch FP register instead. This fixes PR23957. llvm-svn: 241069
* Implement LWG#2407: 'packaged_task(allocator_arg_t, const Allocator&, F&&) ↵Marshall Clow2015-06-302-3/+3
| | | | | | should neither be constrained nor explicit' llvm-svn: 241068
* Implement N4508: shared_mutex. Reviewed as http://reviews.llvm.org/D10480Marshall Clow2015-06-3010-26/+439
| | | | llvm-svn: 241067
* [mips] [IAS] Add support for the .module softfloat/hardfloat directives.Toma Tabacu2015-06-305-0/+100
| | | | | | | | | These directives are used to set the default value of the SoftFloat feature. They have the same effect as setting -m{soft, hard}-float from the command line. Differential Revision: http://reviews.llvm.org/D9073 llvm-svn: 241066
* [X86] Rename DEFAULT_FN_ATTR macro to __DEFAULT_FN_ATTRMichael Kuperstein2015-06-3033-2013/+2013
| | | | llvm-svn: 241065
* Mark LWG#2266 as complete. This is a tightening up the wording; no code ↵Marshall Clow2015-06-301-1/+1
| | | | | | changes required. llvm-svn: 241064
* Change search order of target definition files.Ewan Crawford2015-06-301-9/+13
| | | | | | | | | | | | Make the python target definition file have highest priority so that we can set the remote stub breakpoint pc offset using it. Reviewers: clayborg Subscribers: ted, deepak2427, lldb-commits Differential revision: http://reviews.llvm.org/D10775 llvm-svn: 241063
* [mips] [IAS] Make .module directives change AssemblerOptions->front().Toma Tabacu2015-06-302-8/+48
| | | | | | Differential Revision: http://reviews.llvm.org/D10643 llvm-svn: 241062
* Reverting r241058 because it's causing buildbot failures.Ranjeet Singh2015-06-3011-127/+101
| | | | llvm-svn: 241061
* [CONCEPTS] Parsing of concept keywordHubert Tong2015-06-305-1/+67
| | | | | | | | | | | | | | | | | | Summary: This change adds parsing for the concept keyword in a declaration and tracks the location. Diagnostic testing added for invalid use of concept keyword. Reviewers: faisalv, fraggamuffin, rsmith, hubert.reinterpretcast Reviewed By: rsmith, hubert.reinterpretcast Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D10528 Patch by Nathan Wilson! llvm-svn: 241060
* clang-format: Properly parse parenthesis in braced lists.Daniel Jasper2015-06-302-3/+4
| | | | | | | | | | | Among other things, this makes clang-format understand arbitrary blocks embedded in them, such as: SomeFunction({MACRO({ return output; }), b}); where MACRO could e.g. expand to a lambda. llvm-svn: 241059
* There are a few places where subtarget features are stillRanjeet Singh2015-06-3011-101/+127
| | | | | | | | | represented by uint64_t, this patch replaces these usages with the FeatureBitset (std::bitset) type. Differential Revision: http://reviews.llvm.org/D10542 llvm-svn: 241058
* Fix [vdso] handling on Android (x86 and aarch64)Tamas Berghammer2015-06-304-11/+59
| | | | | | | | | | | | | | * Add in-memory object file handling to the core dynamic loader * Fix in memory object file handling in ObjectFileELF (previously only part of the file was loaded before parsing) * Fix load address setting in ObjectFileELF for 32-bit targets when the load bias is negative * Change hack in DYLDRendezvous.cpp to be more specific and not to interfere with object files with fixed load address Differential revision: http://reviews.llvm.org/D10800 llvm-svn: 241057
* Add a missing headerPavel Labath2015-06-301-0/+1
| | | | llvm-svn: 241056
* [X86] Add missing undef of DEFAULT_FN_ATTRS in FXSR intrinsicsMichael Kuperstein2015-06-301-0/+2
| | | | llvm-svn: 241055
* Correct a typo for a LoopVectorize testDavid Majnemer2015-06-301-1/+1
| | | | | | I forgot to specify the correct pass. llvm-svn: 241054
* [X86] Add FXSR intrinsicsMichael Kuperstein2015-06-306-4/+66
| | | | | | | | | Add intrinsics for the FXSR instructions (FXSAVE/FXSAVE64/FXRSTOR/FXRSTOR64) These were previously declared in Intrin.h for MSVC compatibility, but now that we have them implemented, these declarations can be removed. llvm-svn: 241053
* [mips] [IAS] Add support for the .set oddspreg/nooddspreg directives.Toma Tabacu2015-06-305-0/+72
| | | | | | Differential Revision: http://reviews.llvm.org/D10657 llvm-svn: 241052
* Ignore "push/pop {sp}" in emulation based unwindingTamas Berghammer2015-06-303-5/+23
| | | | | | | | | | | These instructions confusing the unwind code because in case of a push it assumes that the original valu of a register is pushed to the stack what is not neccessarily true in case of SP. The same is true for the pop (in the opposite way). Differential revision: http://reviews.llvm.org/D10806 llvm-svn: 241051
* Fix LLDB build after r241035Tamas Berghammer2015-06-301-0/+2
| | | | llvm-svn: 241050
* [X86] Add FXSR intrinsicsMichael Kuperstein2015-06-304-8/+71
| | | | | | Add intrinsics for the FXSR instructions (FXSAVE/FXSAVE64/FXRSTOR/FXRSTOR64) llvm-svn: 241049
* Update isl to isl-0.15-30-g3518765Tobias Grosser2015-06-3051-144/+902
| | | | | | | | This updated contains various changes to isl, including improvements to the AST generator. For Polly, the most important change is a fix that unbreaks builds on darwin (reported by: Jack Howard) llvm-svn: 241048
OpenPOWER on IntegriCloud