1. Apr 22, 2019
  2. Apr 21, 2019
    • Nikita Popov's avatar
      [ConstantRange] Add saturating add/sub methods · 198ab601
      Nikita Popov authored
      Add support for uadd_sat and friends to ConstantRange, so we can
      handle uadd.sat and friends in LVI. The implementation is forwarding
      to the corresponding APInt methods with appropriate bounds.
      
      One thing worth pointing out here is that the handling of wrapping
      ranges is not maximally accurate. A simple example is that adding 0
      to a wrapped range will return a full range, rather than the original
      wrapped range. The tests also only check that the non-wrapping
      envelope is correct and minimal.
      
      Differential Revision: https://reviews.llvm.org/D60946
      
      llvm-svn: 358855
      198ab601
    • Nikita Popov's avatar
      [ConstantRange] Add getNonEmpty() constructor · dbc3fbaf
      Nikita Popov authored
      ConstantRanges have an annoying special case: If upper and lower are
      the same, it can be either an empty or a full set. When constructing
      constant ranges nearly always a full set is intended, but this still
      requires an explicit check in many places.
      
      This revision adds a getNonEmpty() constructor that disambiguates this
      case: If upper and lower are the same, a full set is created.
      
      Differential Revision: https://reviews.llvm.org/D60947
      
      llvm-svn: 358854
      dbc3fbaf
    • Sanjay Patel's avatar
      [AArch64] add tests with multiple binop+splat vals; NFC · 7fa3a0ee
      Sanjay Patel authored
      See D60890 for context.
      
      llvm-svn: 358853
      7fa3a0ee
    • Nico Weber's avatar
      llvm-undname: Fix stack overflow on invalid found by oss-fuzz · aa162682
      Nico Weber authored
      llvm-svn: 358852
      aa162682
    • Nico Weber's avatar
      gn build: Fix build after r358837 · f985e312
      Nico Weber authored
      llvm-svn: 358851
      f985e312
    • Pavel Labath's avatar
      Minidump: yamlify module-related unit tests · f6e80631
      Pavel Labath authored
      The tests reading the untouched module list are now not using any lldb
      code (as module list loading lives in llvm now), so they can be removed.
      The "filtering" of the module list remains (and probably will remain) an
      lldb concept, so I keep those tests, but replace the checked-in binaries
      with their yaml equivalents.
      
      The binaries which are no longer referenced by any tests have been
      removed.
      
      llvm-svn: 358850
      f6e80631
    • Bruno Ricci's avatar
      [Sema][MSVC] Fix bogus microsoft-pure-definition warning on member function of class template · ba7ffae0
      Bruno Ricci authored
      Clang emits a warning when using a pure specifier =0 in a function definition
      at class scope (a MS-specific construct), when using -fms-extensions.
      However, to detect this, it was using FD->isCanonicalDecl() on function
      declaration, which was also detecting out-of-class definition of member
      functions of class templates. Fix this by using !FD->isOutOfLine() instead.
      
      Fixes PR21334.
      
      Differential Revision: https://reviews.llvm.org/D29707
      
      Reviewed By: riccibruno
      
      Reviewers: rnk, riccibruno
      
      Patch By: Rudy Pons
      
      llvm-svn: 358849
      ba7ffae0
    • Pavel Labath's avatar
      @skipIfLinux flaky lldb-mi tests · d50ec8ef
      Pavel Labath authored
      llvm-svn: 358848
      d50ec8ef
    • Pavel Labath's avatar
      Make TestVSCode_step pass reliably · e8687e6e
      Pavel Labath authored
      Summary:
      The test was failing occasionally (1% of runs or so), because of
      unpredictable timings between the two threads spawned by the test. If
      the second thread hit the breakpoint right as we were stepping out of
      the function on the first thread, we would still be stuck at the inner
      frame when the process stopped.
      
      This would cause errors like:
          File "/home/worker/lldb-x86_64-debian/lldb-x86_64-debian/llvm/tools/lldb/packages/Python/lldbsuite/test/tools/lldb-vscode/step/TestVSCode_step.py", line 67, in test_step
            self.assertEqual(x1, x3, 'verify step out variable')
        AssertionError: 2 != 1 : verify step out variable
      
      AFAICT, lldb-vscode is doing the right thing here, and the problem is
      that the test is not taking this sequence of events into account. Since
      the test is about testing stepping, it does not seem necessary to have
      threads in the inferior at all, so I just rewrite the test to execute
      the code we're supposed to step through directly on the main thread.
      
      Reviewers: clayborg, jgorbe
      
      Subscribers: jfb, lldb-commits
      
      Differential Revision: https://reviews.llvm.org/D60608
      
      llvm-svn: 358847
      e8687e6e
    • Pavel Labath's avatar
      modify-python-lldb.py: Remove docstring formatting code · 27e9d982
      Pavel Labath authored
      The strings have been already cleaned up in r358683, so this code is not
      doing anything anymore.
      
      While comparing the outputs before and after removing the formatting
      code, I've found a couple of docstrings that managed to escape my perl
      script in r358683, so I format them manually with this patch.
      
      llvm-svn: 358846
      27e9d982
    • David Green's avatar
      [ARM] Rewrite isLegalT2AddressImmediate · 0d741507
      David Green authored
      This does two main things, firstly adding some at least basic addressing modes
      for i64 types, and secondly treats floats and doubles sensibly when there is no
      fpu. The floating point change can help codesize in some cases, especially with
      D60294.
      
      Most backends seems to not consider the exact VT in isLegalAddressingMode,
      instead switching on type size. That is now what this does when the target does
      not have an fpu (as the float data will be loaded using LDR's). i64's currently
      use the address range of an LDRD (even though they may be legalised and loaded
      with an LDR). This is at least better than marking them all as illegal
      addressing modes.
      
      I have not attempted to do much with vectors yet. That will need changing once
      MVE is added.
      
      Differential Revision: https://reviews.llvm.org/D60677
      
      llvm-svn: 358845
      0d741507
    • Craig Topper's avatar