1. Jul 13, 2019
  2. Jul 12, 2019
    • Jay Foad's avatar
      [AMDGPU] Fix DPP combiner check for exec modification · 27ec195f
      Jay Foad authored
      Summary:
      r363675 changed the exec modification helper function, now called
      execMayBeModifiedBeforeUse, so that if no UseMI is specified it checks
      all instructions in the basic block, even beyond the last use. That
      meant that the DPP combiner no longer worked in any basic block that
      ended with a control flow instruction, and in particular it didn't work
      on code sequences generated by the atomic optimizer.
      
      Fix it by reinstating the old behaviour but in a new helper function
      execMayBeModifiedBeforeAnyUse, and limiting the number of instructions
      scanned.
      
      Reviewers: arsenm, vpykhtin
      
      Subscribers: kzhuravl, nemanjai, jvesely, wdng, nhaehnle, yaxunl, dstuttard, tpr, t-tye, hiraditya, kbarton, MaskRay, jfb, llvm-commits
      
      Tags: #llvm
      
      Differential Revision: https://reviews.llvm.org/D64393
      
      llvm-svn: 365910
      27ec195f
    • Rafael Stahl's avatar
      [clang-format][tests] Explicitly specify style in some tests · f625a8a2
      Rafael Stahl authored
      Summary: This fixes broken tests when doing an out-of-source build that picks up a random .clang-format on the file system due to the default "file" style.
      
      Reviewers: djasper, klimek, MyDeveloperDay, krasimir
      
      Reviewed By: MyDeveloperDay
      
      Subscribers: lebedev.ri, cfe-commits
      
      Tags: #clang
      
      Differential Revision: https://reviews.llvm.org/D61001
      
      llvm-svn: 365909
      f625a8a2
    • Raphael Isemann's avatar
      [lldb] Let table gen create command option initializers. · 6f4fb4e7
      Raphael Isemann authored
      Summary:
      We currently have man large arrays containing initializers for our command options.
      These tables are tricky maintain as we don't have any good place to check them for consistency and
      it's also hard to read (`nullptr, {}, 0` is not very descriptive).
      
      This patch fixes this by letting table gen generate those tables. This way we can have a more readable
      syntax for this (especially for all the default arguments) and we can let TableCheck check them
      for consistency (e.g. an option with an optional argument can't have `eArgTypeNone`, naming of flags', etc.).
      
      Also refactoring the related data structures can now be done without changing the hundred of option initializers.
      
      For example, this line:
      ```
      {LLDB_OPT_SET_ALL, false, "hide-aliases",         'a', OptionParser::eNoArgument, nullptr, {}, 0, eArgTypeNone, "Hide aliases in the command list."},
      ```
      becomes this:
      ```
        def hide_aliases : Option<"hide-aliases", "a">, Desc<"Hide aliases in the command list.">;
      ```
      
      For now I just moved a few initializers to the new format to demonstrate the change. I'll slowly migrate the other
      option initializers tables  in separate patches.
      
      Reviewers: JDevlieghere, davide, sgraenitz
      
      Reviewed By: JDevlieghere
      
      Subscribers: jingham, xiaobai, labath, mgorny, abidh, lldb-commits
      
      Tags: #lldb
      
      Differential Revision: https://reviews.llvm.org/D64365
      
      llvm-svn: 365908
      6f4fb4e7
    • Fangrui Song's avatar
      [LegacyPassManager] Small ModuleCount cleanup · 38cd3640
      Fangrui Song authored
      llvm-svn: 365907
      38cd3640
    • Russell Gallop's avatar
      Revert "[JSONCompilationDatabase] Strip distcc/ccache/gomacc wrappers from parsed commands." · 614a78c1
      Russell Gallop authored
      New test is failing on Windows bot
      
      This reverts commit 9c0391b3.
      
      llvm-svn: 365906
      614a78c1
    • Tom Stellard's avatar
      cmake: Fix install of libclang-cpp.so when LLVM_INSTALL_TOOLCHAIN_ONLY=ON · 1d062dae
      Tom Stellard authored
      Summary:
      If CLANG_LINK_CLANG_DYLIB is also enabled, then this library needs to be
      installed.
      
      Fixes PR42575.
      
      Reviewers: beanz, smeenai
      
      Subscribers: mgorny, cfe-commits
      
      Tags: #clang
      
      Differential Revision: https://reviews.llvm.org/D64582
      
      Conflicts:
      	clang/tools/clang-shlib/CMakeLists.txt
      
      llvm-svn: 365905
      1d062dae
    • Jay Foad's avatar
      [AMDGPU] Restrict v_cndmask_b32 abs/neg modifiers to f32 · 7816ad91
      Jay Foad authored
      Summary:
      D64497 allowed abs/neg source modifiers on v_cndmask_b32 but it doesn't
      make any sense to apply them to f16 operands; they would interpret the
      bits of the value as an f32, giving nonsensical results. This patch
      restricts them to f32 operands.
      
      Reviewers: arsenm, hakzsam
      
      Subscribers: kzhuravl, jvesely, wdng, nhaehnle, yaxunl, dstuttard, tpr, t-tye, hiraditya, llvm-commits
      
      Tags: #llvm
      
      Differential Revision: https://reviews.llvm.org/D64636
      
      llvm-svn: 365904
      7816ad91