1. Jan 11, 2018
  2. Jan 10, 2018
    • Simon Pilgrim's avatar
      [X86][MMX] Pull out common MMX VT test. NFCI. · 8b632272
      Simon Pilgrim authored
      llvm-svn: 322195
      8b632272
    • Eric Liu's avatar
      Add a missing dependency for r322192 · e5fe0ce4
      Eric Liu authored
      llvm-svn: 322194
      e5fe0ce4
    • Eric Liu's avatar
      [clangd] Add more filters for collected symbols. · 9af958fb
      Eric Liu authored
      Summary:
      o We only collect symbols in namespace or translation unit scopes.
      o Add an option to only collect symbols in included headers.
      
      Reviewers: hokein, ilya-biryukov
      
      Reviewed By: hokein, ilya-biryukov
      
      Subscribers: klimek, cfe-commits
      
      Differential Revision: https://reviews.llvm.org/D41823
      
      llvm-svn: 322193
      9af958fb
    • Zvi Rackover's avatar
      X86 Tests: Add isel tests for truncate-extract_vector-extend. NFC. · a27442f4
      Zvi Rackover authored
      To be improved in a future patch
      
      llvm-svn: 322192
      a27442f4
    • Haojian Wu's avatar
      [clangd] Add static index for the global code completion. · ba28e9ac
      Haojian Wu authored
      Summary:
      Use the YAML-format symbols (generated by the global-symbol-builder tool) to
      do the global code completion.
      It is **experimental** only , but it allows us to experience global code
      completion on a relatively small project.
      
      Tested with LLVM project.
      
      Reviewers: sammccall, ioeric
      
      Reviewed By: sammccall, ioeric
      
      Subscribers: klimek, ilya-biryukov, cfe-commits
      
      Differential Revision: https://reviews.llvm.org/D41668
      
      llvm-svn: 322191
      ba28e9ac
    • Pavel Labath's avatar
      Handle O reply packets during qRcmd · 7da84753
      Pavel Labath authored
      Summary:
      Gdb servers like openocd may send many $O reply packets for the client to output during a qRcmd command sequence.  Currently, lldb interprets the first O packet as an unexpected response.  Besides generating no output, this causes lldb to get out of sync with future commands because it continues reading O packets from the first command as response to subsequent commands.
      
      This patch handles any O packets during an qRcmd, treating the first non-O packet as the true response.
      
      Preliminary discussion at http://lists.llvm.org/pipermail/lldb-dev/2018-January/013078.html
      
      Reviewers: clayborg
      
      Reviewed By: clayborg
      
      Subscribers: labath, lldb-commits
      
      Differential Revision: https://reviews.llvm.org/D41745
      Patch by Owen Shaw <llvm@owenpshaw.net>
      
      llvm-svn: 322190
      7da84753
    • Dmitry Preobrazhensky's avatar
      [AMDGPU][MC][GFX8][GFX9] Added XNACK_MASK support · 3afbd825
      Dmitry Preobrazhensky authored
      See bug 35764: https://bugs.llvm.org/show_bug.cgi?id=35764
      
      Differential Revision: https://reviews.llvm.org/D41614
      
      Reviewers: vpykhtin, artem.tamazov, arsenm
      llvm-svn: 322189
      3afbd825
    • Pavel Labath's avatar
      Add empty() function to the Environment class · e71429d1
      Pavel Labath authored
      Needed to make the previous Freebsd fix work.
      
      llvm-svn: 322188
      e71429d1
    • Pavel Labath's avatar
      Another attempt to fix FreeBsd build · 75c6de0b
      Pavel Labath authored
      the previous fix did not work because of different const qualifications
      on the envp pointer.
      
      This should resolve that (and remove a couple of const_casts in the
      process).
      
      llvm-svn: 322187
      75c6de0b
    • Simon Pilgrim's avatar
      Fix -Wdocumentation warning by removing empty @brief. NFCI · 0643ea9a
      Simon Pilgrim authored
      llvm-svn: 322186
      0643ea9a
    • Ilya Biryukov's avatar
      [clangd] Remove duplicates from code completion · f60bf347
      Ilya Biryukov authored
      Summary:
      This patch removes hidden items from code completion.
      Items can be hidden, e.g., by other items in the child scopes.
      This patch addresses a particular problem of a duplicate completion
      item for the class in the following example:
      
          struct Adapter { void method(); };
          void Adapter::method() {
             Adapter^
          }
      
      We should probably investigate if there are other duplicates in
      completion and remove them, possibly adding assertions that it never
      happens.
      
      Reviewers: sammccall
      
      Reviewed By: sammccall
      
      Subscribers: cfe-commits, klimek
      
      Differential Revision: https://reviews.llvm.org/D41901
      
      llvm-svn: 322185
      f60bf347
    • Tim Northover's avatar
      Fix Xcode build for r322174 · 400c7b3c
      Tim Northover authored
      llvm-svn: 322183
      400c7b3c
    • Simon Pilgrim's avatar
      [X86][SSE] Add some basic FABS combine tests · a0c59cce
      Simon Pilgrim authored
      llvm-svn: 322182
      a0c59cce
    • Bjorn Pettersson's avatar
      Avoid inlining if there is byval arguments with non-alloca address space · 3851496e
      Bjorn Pettersson authored
      Summary:
      After teaching InlineCost more about address spaces ()
      another fault was detected in the inliner. If an argument has
      the byval attribute the parameter might be copied to an alloca.
      That part seems to work fine even if the argument has a different
      address space than the alloca address space. However, if the
      address spaces differ, then the inlined function still might
      refer to the parameter using the original address space (the
      inliner does not handle that situation very well).
      
      This patch avoids the problem by simply disallowing inlining
      when there are byval arguments with address space that differs
      from the alloca address space.
      
      I'm not really sure how to transform the code if we want to
      get inlining for this situation. I assume that it never has
      been working, and that the fixes in r321809 just exposed an
      old problem.
      
      Fault found by skatkov (Serguei Katkov). It is mentioned in
      follow up comments to https://reviews.llvm.org/D40455.
      
      Reviewers: skatkov
      
      Reviewed By: skatkov
      
      Subscribers: uabelho, eraman, llvm-commits, haicheng
      
      Differential Revision: https://reviews.llvm.org/D41898
      
      llvm-svn: 322181
      3851496e
    • Ed Maste's avatar
      Correct typo in help text · 6ed7f00e
      Ed Maste authored
      Information is a mass noun and doesn't take a plural "s".
      
      llvm-svn: 322180
      6ed7f00e
    • Joachim Protze's avatar
      Missed to add new test case in previous commit · 1014a6b6
      Joachim Protze authored
      llvm-svn: 322179
      1014a6b6
    • Joachim Protze's avatar
      [OMPT] Fix ompt_task_data handling in implicit barriers · 14b512e2
      Joachim Protze authored
      Changes to task_data in barrier-begin were not visible at barrier-end
      
      Differential Revision: https://reviews.llvm.org/D41176
      
      llvm-svn: 322178
      14b512e2
    • Pavel Labath's avatar
      Fix windows and freebsd builds for r322174 (Environment) · 3ff377a9
      Pavel Labath authored
      llvm-svn: 322176
      3ff377a9
    • Simon Pilgrim's avatar
      [X86][SSE] Add v2f64 u2 shuffle test · a330a407
      Simon Pilgrim authored
      Adds missing coverage for SHUFPD undef argument lowering, and also shows a missed opportunity to remove a unnecessary move compared to 02 shuffle mask.
      
      llvm-svn: 322175
      a330a407
    • Pavel Labath's avatar
      Add Utility/Environment class for handling... environments · 62930e57
      Pavel Labath authored
      Summary:
      There was some confusion in the code about how to represent process
      environment. Most of the code (ab)used the Args class for this purpose,
      but some of it used a more basic StringList class instead. In either
      case, the fact that the underlying abstraction did not provide primitive
      operations for the typical environment operations meant that even a
      simple operation like checking for an environment variable value was
      several lines of code.
      
      This patch adds a separate Environment class, which is essentialy a
      llvm::StringMap<std::string> in disguise. To standard StringMap
      functionality, it adds a couple of new functions, which are specific to
      the environment use case:
      - (most important) envp conversion for passing into execve() and likes.
        Instead of trying to maintain a constantly up-to-date envp view, it
        provides a function which creates a envp view on demand, with the
        expectation that this will be called as the very last thing before
        handing the value to the system function.
      - insert(StringRef KeyEqValue) - splits KeyEqValue into (key, value)
        pair and inserts it into the environment map.
      - compose(value_type KeyValue) - takes a map entry and converts in back
        into "KEY=VALUE" representation.
      
      With this interface most of the environment-manipulating code becomes
      one-liners. The only tricky part was maintaining compatibility in
      SBLaunchInfo, which expects that the environment entries are accessible
      by index and that the returned const char* is backed by the launch info
      object (random access into maps is hard and the map stores the entry in
      a deconstructed form, so we cannot just return a .c_str() value). To
      solve this, I have the SBLaunchInfo convert the environment into the
      "envp" form, and use it to answer the environment queries. Extra code is
      added to make sure the envp version is always in sync.
      
      (This also improves the layering situation as Args was in the Interpreter module
      whereas Environment is in Utility.)
      
      Reviewers: zturner, davide, jingham, clayborg
      
      Subscribers: emaste, lldb-commits, mgorny
      
      Differential Revision: https://reviews.llvm.org/D41359
      
      llvm-svn: 322174
      62930e57
    • Sander de Smalen's avatar
      [AArch64][SVE] Asm: Add support for (mov|dup) of scalar · a7ec090e
      Sander de Smalen authored
      Summary: This patch adds support for 'dup' (Scalar -> SVE) and its corresponding 'mov' alias.
      
      Reviewers: fhahn, rengolin, evandro, echristo
      
      Reviewed By: fhahn
      
      Subscribers: aemerson, javed.absar, tschuett, kristof.beyls, llvm-commits
      
      Differential Revision: https://reviews.llvm.org/D41822
      
      llvm-svn: 322172
      a7ec090e
    • Diana Picus's avatar
      [ARM GlobalISel] Add inst selector tests for G_FNEG s32 and s64 · e3591f3a
      Diana Picus authored
      G_FNEG is already handled by the TableGen'erated code. Just add a few
      tests to make sure everything works as expected.
      
      llvm-svn: 322170
      e3591f3a
    • Diana Picus's avatar
      [ARM GlobalISel] Map G_FNEG to the FPR bank · 0ed7513c
      Diana Picus authored
      llvm-svn: 322169
      0ed7513c
    • Diana Picus's avatar
      [ARM GlobalISel] Legalize G_FNEG for s32 and s64 · f949a0ab
      Diana Picus authored
      For hard float, it is legal.
      
      For soft float, we need to lower to 0 - x first, and then we can use the
      libcall for G_FSUB. This is undoing some of the canonicalization
      performed by the IRTranslator (which introduces G_FNEG when it sees a
      0 - x). Ideally, that canonicalization would be performed by a
      pre-legalizer pass that would allow targets to opt out of this behaviour
      rather than dance around it in the legalizer.
      
      llvm-svn: 322168
      f949a0ab
    • Pavel Labath's avatar
      [dotest] Remove crashinfo hook · 698d63a6
      Pavel Labath authored
      Summary:
      This used to be important when all tests were run in a single process,
      but that has no longer been the case for a while. Furthermore, this hook fails
      to build on new mac versions for several people, and it's not clear
      whether fixing it is worth the effort.
      
      Reviewers: jingham, clayborg, davide
      
      Subscribers: lldb-commits
      
      Differential Revision: https://reviews.llvm.org/D41871
      
      llvm-svn: 322167
      698d63a6
    • Sander de Smalen's avatar
      [TableGen][AsmMatcherEmitter] Generate assembler checks for tied operands · 886510f3
      Sander de Smalen authored
      Summary:
      This extends TableGen's AsmMatcherEmitter with code that generates
      a table with tied-operand constraints. The constraints are checked
      when parsing the instruction. If an operand is not equal to its tied operand,
      the assembler will give an error.
      
      Patch [2/3] in a series to add operand constraint checks for SVE's predicated ADD/SUB.
      
      Reviewers: olista01, rengolin, mcrosier, fhahn, craig.topper, evandro, echristo
      
      Reviewed By: fhahn
      
      Subscribers: javed.absar, llvm-commits
      
      Differential Revision: https://reviews.llvm.org/D41446
      
      llvm-svn: 322166
      886510f3