1. Sep 03, 2015
    • 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
    • Jim Ingham's avatar
      Fix ObjCLanguage::MethodName::GetCategory after r246616; I was just moving... · e90dc827
      Jim Ingham authored
      Fix ObjCLanguage::MethodName::GetCategory after r246616; I was just moving things around too fast...
      
      llvm-svn: 246736
      e90dc827
    • JF Bastien's avatar
      [MergeFuncs] Efficiently defer functions on merge · 3a4ad61c
      JF Bastien authored
      Summary:
      This patch introduces a side table in Merge Functions to
      efficiently remove functions from the function set when functions
      they refer to are merged. Previously these functions would need to
      be compared lg(N) times to find the appropriate FunctionNode in the
      tree to defer. With the recent determinism changes, this comparison
      is more expensive. In addition, the removal function would not always
      actually remove the function from the set (i.e. after remove(F),
      there would sometimes still be a node in the tree which contains F).
      
      With these changes, these functions are properly deferred, and so more
      functions can be merged. In addition, when there are many merged
      functions (and thus more deferred functions), there is a speedup:
      
      chromium: 48678 merged -> 49380 merged; 6.58s -> 5.49s
      libxul.so: 41004 merged -> 41030 merged; 8.02s -> 6.94s
      mysqld: 1607 merged -> 1607 merged (same); 0.215s -> 0.212s (probably noise)
      
      Author: jrkoenig
      Reviewers: jfb, dschuff
      Subscribers: llvm-commits, nlewycky
      Differential revision: http://reviews.llvm.org/D12537
      
      llvm-svn: 246735
      3a4ad61c
    • Kostya Serebryany's avatar
      [libFuzzer] deprecate the -tokens flag. This was a bad idea because the corpus... · 6ea1b69f
      Kostya Serebryany authored
      [libFuzzer] deprecate the -tokens flag. This was a bad idea because the corpus with this flag contains encrypted inputs, not the real inputs, which complicates interoperation with other fuzzers. Instead we'll need to implement AFL dictionary support
      
      llvm-svn: 246734
      6ea1b69f
    • Ahmed Bougacha's avatar
      [X86] Require 32-byte alignment for 32-byte VMOVNTs. · b03ea024
      Ahmed Bougacha authored
      We used to accept (and even test, and generate) 16-byte alignment
      for 32-byte nontemporal stores, but they require 32-byte alignment,
      per SDM. Found by inspection.
      
      Instead of hardcoding 16 in the patfrag, check for natural alignment.
      Also fix the autoupgrade and the various tests.
      
      Also, use explicit -mattr instead of -mcpu: I stared at the output
      several minutes wondering why I get 2x movntps for the unaligned
      case (which is the ideal output, but needs some work: see FIXME),
      until I remembered corei7-avx implies +slow-unaligned-mem-32.
      
      llvm-svn: 246733
      b03ea024
    • Douglas Katzman's avatar
      Add Myriad into enum VendorType · 78425200
      Douglas Katzman authored
      Differential Revision: http://reviews.llvm.org/D12540
      
      llvm-svn: 246732
      78425200
    • Rafael Espindola's avatar
      Make getSymbols non-virtual. NFC. · 8788e1a6
      Rafael Espindola authored
      llvm-svn: 246731
      8788e1a6
    • Ahmed Bougacha's avatar
      [X86] Cleanup nontemporal tests a little. NFC. · b09c5435
      Ahmed Bougacha authored
      Also: add a missing test for movntiq.
      llvm-svn: 246730
      b09c5435
    • Justin Bogner's avatar
      IR: Remove an unused AssemblyWriter constructor. NFC · 0ffea9d4
      Justin Bogner authored
      llvm-svn: 246729
      0ffea9d4
    • Kostya Serebryany's avatar
    • Zachary Turner's avatar
      Skip the rest of the Objective C tests on Windows. · a5bebcc5
      Zachary Turner authored
      llvm-svn: 246726
      a5bebcc5
    • Zachary Turner's avatar
      XFAIL more watchpoint tests on Windows. · 77377408
      Zachary Turner authored
      llvm.org/pr24446
      
      llvm-svn: 246725
      77377408
    • Zachary Turner's avatar
      XFAIL more bugs that depend on dynamic value resolution. · 11ac206f
      Zachary Turner authored
      llvm.org/pr24663
      
      llvm-svn: 246724
      11ac206f
    • Zachary Turner's avatar
      XFAIL tests that rely on exact thread counts. · 428ffcfa
      Zachary Turner authored
      On Windows we have to deal with OS created threads, so we can never
      know the exact number of threads.
      
      llvm.org/pr24681
      
      llvm-svn: 246723
      428ffcfa
    • Philip Reames's avatar
      [RewriteStatepointsForGC] Delete stale comment [NFC] · 07a2ee1a
      Philip Reames authored
      llvm-svn: 246722
      07a2ee1a
    • Philip Reames's avatar
      [RewriteStatepointsForGC] Pull a function out of anon namespace [NFC] · b3967cd0
      Philip Reames authored
      Thanks to David Blaikie for noticing in previous commit.
      
      llvm-svn: 246721
      b3967cd0
    • Justin Bogner's avatar
      IR: Remove a redundant function. NFC · 7fe24691
      Justin Bogner authored
      Function::print isn't interestingly different from Value::print. Just
      let the only caller (in PrintCallGraphPass) call the Value version.
      
      llvm-svn: 246720
      7fe24691
    • Ahmed Bougacha's avatar
      [X86] Cleanup nontemporal fragments. NFCI. · bc72ad7b
      Ahmed Bougacha authored
      We can chain other fragments to avoid repeating conditions.
      This also fixes a potential bug (that realistically can't happen),
      where we would match indexed nontemporal stores for i32/i64.
      
      llvm-svn: 246719
      bc72ad7b
    • Philip Reames's avatar
      [RewriteStatepointsForGC] Bugfix for change 246133 · 9546f367
      Philip Reames authored
      Fix a bug in change 246133. I didn't handle the case where we had a cycle in the use graph and could add an instruction we were about to erase back on to the worklist. Oddly, I have not been able to write a small test case for this, even with the AssertingVH added. I have confirmed the basic theory for the fix on a large failing example, but all attempts to reduce that to something appropriate for a test case have failed.
      
      Differential Revision: http://reviews.llvm.org/D12575
      
      llvm-svn: 246718
      9546f367
    • Philip Reames's avatar
      Fix release build warning for unused function · 6906e928
      Philip Reames authored
      llvm-svn: 246717
      6906e928
    • Evgeniy Stepanov's avatar
      [asan] Fix signal interception on Android. · b865f61f
      Evgeniy Stepanov authored
      All supported version of Android provide both "signal" and
      "bsd_signal" libc exports. Binaries built for API level <21 call
      bsd_signal; newer binaries call signal.
      
      Simply intercept both.
      
      Fixes AddressSanitizer.SignalTest on Android/x86.
      
      llvm-svn: 246716
      b865f61f