1. Sep 03, 2015
    • Pavel Labath's avatar
      Fix logging message · ea3fb8e3
      Pavel Labath authored
      llvm-svn: 246776
      ea3fb8e3
    • Karl Schimpf's avatar
      Remove binary characters from test file. · e564fcb1
      Karl Schimpf authored
      llvm-svn: 246775
      e564fcb1
    • Karl Schimpf's avatar
      Fix SEGV in InlineAsm::ConstraintInfo::Parse. · f04a5d59
      Karl Schimpf authored
      Summary:
      Fixes bug 24646. Previous code was not checking if an index into a vector
      was valid, resulting in a SEGV. Fixed by assuming the construct can't
      be parsed when given this input.
      
      Reformat and add test.
      
      Differential Revision: http://reviews.llvm.org/D12539
      
      llvm-svn: 246774
      f04a5d59
    • Karl Schimpf's avatar
      Fix SEGV in InlineAsm::ConstraintInfo::Parse. · 388fd5ae
      Karl Schimpf authored
      Fixes bug 24646. Previous code was not checking if an index into a vector
      was valid, resulting in a SEGV. Fixed by assuming the construct can't
      be parsed when given this input.
      
      llvm-svn: 246773
      388fd5ae
    • Marshall Clow's avatar
      Make a helper routine __throw_future_error, and encapsulate the #ifdef... · a0daa739
      Marshall Clow authored
      Make a helper routine __throw_future_error, and encapsulate the #ifdef _LIBCPP_NO_EXCEPTIONS there, instead of duplicating it throughout the code. No functionality change
      
      llvm-svn: 246772
      a0daa739
    • Sanjay Patel's avatar
      check for fastness before merging in DAGCombiner::MergeConsecutiveStores() · ce74db9d
      Sanjay Patel authored
      Use and check the 'IsFast' optional parameter to TLI.allowsMemoryAccess() any time
      we have a merged access candidate. Without this patch, we were generating unaligned 
      16-byte (SSE) memops for x86 targets where those accesses are slow.
      
      This change was mentioned in:
      http://reviews.llvm.org/D10662 and
      http://reviews.llvm.org/D10905
      
      and will help solve PR21711.
      
      Differential Revision: http://reviews.llvm.org/D12573
      
      llvm-svn: 246771
      ce74db9d
    • Rui Ueyama's avatar
      COFF: /delayload:<DLLNAME> is case-insensitive. · 6295b271
      Rui Ueyama authored
      llvm-svn: 246770
      6295b271
    • Chad Rosier's avatar
      [AArch64] Improve load/store optimizer to handle LDUR + LDR. · 491a1bd9
      Chad Rosier authored
      This patch allows the mixing of scaled and unscaled load/stores to form
      load/store pairs.
      
      PR24465
      http://reviews.llvm.org/D12116
      Many thanks to Ahmed and Michael for fixes and code review.
      
      llvm-svn: 246769
      491a1bd9
    • Alexandros Lamprineas's avatar
      Implement ACLE 2.0 macros of chapters 6.4 and 6.5 for [ARM] and [Aarch64] targets. · a448f046
      Alexandros Lamprineas authored
      Differential Revision: http://reviews.llvm.org/D12244
      
      Change-Id: Iffd4e822c15e18668fe8868278230ff232ef50aa
      llvm-svn: 246768
      a448f046
    • Chad Rosier's avatar
      [AArch64] Reuse MayLoad. NFC. · 5f668e17
      Chad Rosier authored
      llvm-svn: 246767
      5f668e17
    • Pavel Labath's avatar
      XFAIL TestFormatters on android (llvm.org/pr24691) · 4bff4d01
      Pavel Labath authored
      the test is hitting an assertion in clang.
      
      llvm-svn: 246766
      4bff4d01
    • Daniel Sanders's avatar
      [mips] Added support for choosing between traps and breaks in the integrated assembler macros. · 4f7cd239
      Daniel Sanders authored
      Summary: The command line options for these are -Wa,--trap and -Wa,--break.
      
      Patch by Scott Egerton.
      
      Reviewers: vkalintiris, dsanders
      
      Subscribers: llvm-commits
      
      Differential Revision: http://reviews.llvm.org/D11676
      
      llvm-svn: 246765
      4f7cd239
    • Oliver Stannard's avatar
      [ARM] Allow passing/returning of __fp16 arguments · dc2854c2
      Oliver Stannard authored
      The ACLE (ARM C Language Extensions) 2.0 allows the __fp16 type to be
      used as a functon argument or return type (ACLE 1.1 did not).
      
      The current public release of the AAPCS (2.09) states that __fp16 values
      should be converted to single-precision before being passed or returned,
      but AAPCS 2.10 (to be released shortly) changes this, so that they are
      passed in the least-significant 16 bits of either a GPR (for base AAPCS)
      or a single-precision register (for AAPCS-VFP). This does not change how
      arguments are passed if they get passed on the stack.
      
      This patch brings clang up to compliance with the latest versions of
      both of these specs.
      
      We can now set the __ARM_FP16_ARGS ACLE predefine, and we have always
      been able to set the __ARM_FP16_FORMAT_IEEE predefine (we do not support
      the alternative format).
      
      llvm-svn: 246764
      dc2854c2
    • Daniel Sanders's avatar
      [mips] Added support for the div, divu, ddiv and ddivu macros which use traps... · 3ebcaf66
      Daniel Sanders authored
      [mips] Added support for the div, divu, ddiv and ddivu macros which use traps and breaks in the integrated assembler.
      
      Summary:
      
      Patch by Scott Egerton
      
      Reviewers: vkalintiris, dsanders
      
      Subscribers: llvm-commits
      
      Differential Revision: http://reviews.llvm.org/D11675
      
      llvm-svn: 246763
      3ebcaf66
    • Angel Garcia Gomez's avatar
      Two more fixes to loop convert. · 8d01772d
      Angel Garcia Gomez authored
      Summary: Ensure that the alias has the same type than the loop variable. Now it works with lambda captures.
      
      Reviewers: klimek
      
      Subscribers: alexfh, cfe-commits
      
      Differential Revision: http://reviews.llvm.org/D12597
      
      llvm-svn: 246762
      8d01772d
    • Pavel Labath's avatar
      Enable TestFdLeak on linux · b18469f5
      Pavel Labath authored
      it has been consistently passing at least the last 100 builds on the bot.
      
      llvm-svn: 246761
      b18469f5
    • Oliver Stannard's avatar
      Revert 246755 as it breaks buildbots · 9253f00d
      Oliver Stannard authored
      Original commit message:
      [ARM] Allow passing/returning of __fp16 arguments
      
      The ACLE (ARM C Language Extensions) 2.0 allows the __fp16 type to be
      used as a functon argument or return type (ACLE 1.1 did not).
      
      The current public release of the AAPCS (2.09) states that __fp16 values
      should be converted to single-precision before being passed or returned,
      but AAPCS 2.10 (to be released shortly) changes this, so that they are
      passed in the least-significant 16 bits of either a GPR (for base AAPCS)
      or a single-precision register (for AAPCS-VFP). This does not change how
      arguments are passed if they get passed on the stack.
      
      This patch brings clang up to compliance with the latest versions of
      both of these specs.
      
      We can now set the __ARM_FP16_ARGS ACLE predefine, and we have always
      been able to set the __ARM_FP16_FORMAT_IEEE predefine (we do not support
      the alternative format).
      
      llvm-svn: 246760
      9253f00d
    • Silviu Baranga's avatar
      Fix IRBuilder CreateBitOrPointerCast for vector types · d0f83d15
      Silviu Baranga authored
      Summary:
      This function was not taking into account that the
      input type could be a vector, and wasn't properly
      working for vector types.
      
      This caused an assert when building spec2k6 perlbmk for armv8.
      
      Reviewers: rengolin, mzolotukhin
      
      Subscribers: silviu.baranga, mzolotukhin, rengolin, eugenis, jmolloy, aemerson, llvm-commits
      
      Differential Revision: http://reviews.llvm.org/D12559
      
      llvm-svn: 246759
      d0f83d15
    • Dmitry Vyukov's avatar
      tsan: speed up race deduplication · 3464dac0
      Dmitry Vyukov authored
      Race deduplication code proved to be a performance bottleneck in the past if suppressions/annotations are used, or just some races left unaddressed. And we still get user complaints about this:
      https://groups.google.com/forum/#!topic/thread-sanitizer/hB0WyiTI4e4
      ReportRace already has several layers of caching for racy pcs/addresses to make deduplication faster. However, ReportRace still takes a global mutex (ThreadRegistry and ReportMutex) during deduplication and also calls mmap/munmap (which take process-wide semaphore in kernel), this makes deduplication non-scalable.
      
      This patch moves race deduplication outside of global mutexes and also removes all mmap/munmap calls.
      As the result, race_stress.cc with 100 threads and 10000 iterations become 30x faster:
      
      before:
      real	0m21.673s
      user	0m5.932s
      sys	0m34.885s
      
      after:
      real	0m0.720s
      user	0m23.646s
      sys	0m1.254s
      
      http://reviews.llvm.org/D12554
      
      llvm-svn: 246758
      3464dac0
    • Alexey Bataev's avatar
      [OPENMP] Fix for http://llvm.org/PR24687: ICE on compilation of R package TPmsm. · b500101e
      Alexey Bataev authored
      Fixed capturing of VLAs in 'private' clause of the OpenMP directives.
      
      llvm-svn: 246757
      b500101e
    • Pavel Labath's avatar
      Fix deadlock while attaching to inferiors · 5055685c
      Pavel Labath authored
      Summary:
      There was a race condition in the AsyncThread, where we would end up sending a vAttach
      notification to the thread before it got a chance set up its listener (this can be reproduced by
      adding a sleep() at the very beginning of ProcessGDBRemote::AsyncThread()). This event would then
      get lost and we LLDB would deadlock. I fix this by setting up the listener early on, in the
      ProcessGDBRemote constructor.
      
      This should improve the stability of all attach tests. For now, I am removing XTIMEOUT from
      TestAttachResume, and will watch the buildbots for signs of trouble.
      
      Reviewers: clayborg, ovyalov
      
      Subscribers: lldb-commits
      
      Differential Revision: http://reviews.llvm.org/D12552
      
      llvm-svn: 246756
      5055685c
    • Oliver Stannard's avatar
      [ARM] Allow passing/returning of __fp16 arguments · ee028620
      Oliver Stannard authored
      The ACLE (ARM C Language Extensions) 2.0 allows the __fp16 type to be
      used as a functon argument or return type (ACLE 1.1 did not).
      
      The current public release of the AAPCS (2.09) states that __fp16 values
      should be converted to single-precision before being passed or returned,
      but AAPCS 2.10 (to be released shortly) changes this, so that they are
      passed in the least-significant 16 bits of either a GPR (for base AAPCS)
      or a single-precision register (for AAPCS-VFP). This does not change how
      arguments are passed if they get passed on the stack.
      
      This patch brings clang up to compliance with the latest versions of
      both of these specs.
      
      We can now set the __ARM_FP16_ARGS ACLE predefine, and we have always
      been able to set the __ARM_FP16_FORMAT_IEEE predefine (we do not support
      the alternative format).
      
      llvm-svn: 246755
      ee028620
    • Joseph Tremoulet's avatar
      [Docs] Fix Sphinx warning · 6dfe1641
      Joseph Tremoulet authored
      Title underline was too short.
      
      llvm-svn: 246754
      6dfe1641
    • Pavel Labath's avatar
      Fix rare failure in TestProcessIO · a9a43373
      Pavel Labath authored
      Summary:
      There was a race condition in Process class, where we would not wait for process stdout to
      propagate fully before we would shut down the connection (repro case: slow down the stdio thread
      by placing a sleep right at the end of the while loop in Communication::ReadThread). The Process
      class already tried to solve this problem by synchronizing with the read thread in
      Process::ShouldBroadcastEvent, but unfortunately the connection got closed before that in
      Process::SetExitStatus. I solve this issue by delaying the connection shutdown until we get a
      chance to process the event and synchronize. Alternatively, I could have moved the
      synchronization point to an earlier point in SetExitStatus, but it seems safer to delay the
      shutdown until other things get a chance to notice the process has exited.
      
      Reviewers: clayborg, ovyalov
      
      Subscribers: lldb-commits
      
      Differential Revision: http://reviews.llvm.org/D12558
      
      llvm-svn: 246753
      a9a43373
    • Joseph Tremoulet's avatar
      [WinEH] Add llvm.eh.exceptionpointer intrinsic · 61efbc32
      Joseph Tremoulet authored
      Summary:
      This intrinsic can be used to extract a pointer to the exception caught by
      a given catchpad.  Its argument has token type and must be a `catchpad`.
      
      Also clarify ExtendingLLVM documentation regarding overloaded intrinsics.
      
      
      Reviewers: majnemer, andrew.w.kaylor, sanjoy, rnk
      
      Subscribers: llvm-commits
      
      Differential Revision: http://reviews.llvm.org/D12533
      
      llvm-svn: 246752
      61efbc32
    • Joseph Tremoulet's avatar
      [WinEH] Add cleanupendpad instruction · 9ce71f76
      Joseph Tremoulet authored
      Summary:
      Add a `cleanupendpad` instruction, used to mark exceptional exits out of
      cleanups (for languages/targets that can abort a cleanup with another
      exception).  The `cleanupendpad` instruction is similar to the `catchendpad`
      instruction in that it is an EH pad which is the target of unwind edges in
      the handler and which itself has an unwind edge to the next EH action.
      The `cleanupendpad` instruction, similar to `cleanupret` has a `cleanuppad`
      argument indicating which cleanup it exits.  The unwind successors of a
      `cleanuppad`'s `cleanupendpad`s must agree with each other and with its
      `cleanupret`s.
      
      Update WinEHPrepare (and docs/tests) to accomodate `cleanupendpad`.
      
      Reviewers: rnk, andrew.w.kaylor, majnemer
      
      Subscribers: llvm-commits
      
      Differential Revision: http://reviews.llvm.org/D12433
      
      llvm-svn: 246751
      9ce71f76
    • Igor Breger's avatar
      AVX512: Implemented encoding and intrinsics for vplzcntq, vplzcntd, vpconflictq, vpconflictd · 0dcd8bcf
      Igor Breger authored
      Added tests for intrinsics and encoding.
      
      Differential Revision: http://reviews.llvm.org/D11931
      
      llvm-svn: 246750
      0dcd8bcf
    • Bruce Mitchener's avatar
      [cmake] Remove LLVM_NO_RTTI. · db25a7a2
      Bruce Mitchener authored
      Summary:
      This doesn't exist in other LLVM projects any longer and doesn't
      do anything.
      
      Reviewers: chaoren, labath
      
      Subscribers: emaste, tberghammer, lldb-commits, danalbert
      
      Differential Revision: http://reviews.llvm.org/D12586
      
      llvm-svn: 246749
      db25a7a2
    • Alexey Bataev's avatar
      [OPENMP 4.1] Codegen for extended format of 'if' clause. · 7371aa36
      Alexey Bataev authored
      Fixed codegen for extended format of 'if' clauses with special 'directive-name-modifier' + ast-print tests for extended format of 'if' clause.
      
      llvm-svn: 246748
      7371aa36
    • Alexey Bataev's avatar
      [OPENMP 4.1] Parsing/sema analysis for extended format of 'if' clause. · 6b8046ad
      Alexey Bataev authored
      OpenMP 4.1 added special 'directive-name-modifier' to the 'if' clause.
      Format of 'if' clause is as follows:
      ```
      if([ directive-name-modifier :] scalar-logical-expression)
      ```
      
      The restriction rules are also changed.
      1. If any 'if' clause on the directive includes a 'directive-name-modifier' then all 'if' clauses on the directive must include a 'directive-name-modifier'.
      2. At most one 'if' clause without a 'directive-name-modifier' can appear on the directive.
      3. At most one 'if' clause with some particular 'directive-name-modifier' can appear on the directive.
      
      'directive-name-modifier' is important for combined directives and allows to separate conditions in 'if' clause for simple sub-directives in combined directive. This 'directive-name-modifier' identifies the sub-directive to which this 'if' clause must be applied.
      
      llvm-svn: 246747
      6b8046ad
    • Bruce Mitchener's avatar
      Fix cmake build. · 49948af9
      Bruce Mitchener authored
      llvm-svn: 246746
      49948af9
    • Sagar Thakur's avatar
      [MIPS64] Emulate MSA branch instructions · 66089382
      Sagar Thakur authored
      This patch adds MSA branch instruction emulation for MIPS64.
      
      Reviewers: tberghammer, jaydeep
      Subscribers: tberghammer, lldb-commits, nitesh.jain, mohit.bhakkad (Mohit Bhakkad), bhushan (Bhushan Attarde)
      Differential: http://reviews.llvm.org/D12356
      llvm-svn: 246745
      66089382
    • Jim Ingham's avatar
      Purge a few places where *LanguageRuntime.h was being used when it · 0d5a2bd6
      Jim Ingham authored
      wasn't needed.
      
      llvm-svn: 246744
      0d5a2bd6
    • Enrico Granata's avatar
      CXXFormatterFunctions.{h|cpp} is not a good thing to have around, so start... · d87cc319
      Enrico Granata authored
      CXXFormatterFunctions.{h|cpp} is not a good thing to have around, so start splitting stuff in different files in preparation for removing it and factoring formatters to the plugins where they belong
      
      llvm-svn: 246743
      d87cc319
    • Evgeniy Stepanov's avatar
      [asan] Split a test in two. · d67f1b9d
      Evgeniy Stepanov authored
      wait3 is gone in android-21. Move it out of the common
      (wait/waitpid/wait3) test, and mark as unsupported on Android.
      
      llvm-svn: 246742
      d67f1b9d
    • Evgeniy Stepanov's avatar
      [asan] Replace valloc with posix_memalign in test. · afe6c1d4
      Evgeniy Stepanov authored
      valloc is gone in android-21.
      
      llvm-svn: 246741
      afe6c1d4
    • Jim Ingham's avatar
      Remove the list of all languages in the help for "help language" since · 59365b0b
      Jim Ingham authored
      almost all the elements on the list can't actually be passed to the language
      command and all the ones that can have already been listed in the subcommands 
      list.
      
      <rdar://problem/22551082>
      
      llvm-svn: 246740
      59365b0b
    • NAKAMURA Takumi's avatar
      Tweak llvm/test/tools/gold/X86/parallel.ll to run with pthread-unaware ld.gold on Linux. · 3c0f9d81
      NAKAMURA Takumi authored
      If ld.gold is configured without --enable-thread, ld.gold might not load libpthread.so.
      Preloading LLVMgold.so loads also libpthread.so.
      
      llvm-svn: 246739
      3c0f9d81
    • Sean Callanan's avatar
      Jim told me about a cleaner way to include headers from plug-ins. · 30e33974
      Sean Callanan authored
      This is still something I need to fix, but at least it's not so ugly, and it's
      consistent with the other code that does that so we will catch it when we purge
      all such code.
      
      llvm-svn: 246738
      30e33974
    • Sean Callanan's avatar
      In preparation for factoring persistent variables into a generic part and a · e33724f3
      Sean Callanan authored
      Clang-specific part, create the ExpressionVariable source/header file and
      move ClangExpressionVariable into the Clang expression parser plugin.
      
      It is expected that there are some ugly #include paths... these will be resolved
      by either (1) making that code use generic expression variables (once they're
      separated appropriately) or (2) moving that code into a plug-in, often
      the expression parser plug-in.
      
      llvm-svn: 246737
      e33724f3