1. Dec 06, 2018
  2. Dec 05, 2018
    • Brian Gesiak's avatar
      Revert "[IR] Add NODISCARD to attribute functions" · f240c4d4
      Brian Gesiak authored
      Revert https://reviews.llvm.org/D55217 due to warnings-turned-into-errors in
      AMGPU targets. I'll fix the warnings first, then re-commit this patch.
      
      llvm-svn: 348375
      f240c4d4
    • Chandler Carruth's avatar
      [SLH] Fix a nasty bug in SLH. · 71c14a36
      Chandler Carruth authored
      Whenever we effectively take the address of a basic block we need to
      manually update that basic block to reflect that fact or later passes
      such as tail duplication and tail merging can break the invariants of
      the code. =/ Sadly, there doesn't appear to be any good way of
      automating this or even writing a reasonable assert to catch it early.
      
      The change seems trivially and obviously correct, but sadly the only
      really good test case I have is 1000s of basic blocks. I've tried
      directly writing a test case that happens to make tail duplication do
      something that crashes later on, but this appears to require an
      *amazingly* complex set of conditions that I've not yet reproduced.
      
      The change is technically covered by the tests because we mark the
      blocks as having their address taken, but that doesn't really count as
      properly testing the functionality.
      
      llvm-svn: 348374
      71c14a36
    • Chandler Carruth's avatar
      [SLH] Regenerate tests with --no_x86_scrub_rip to restore the higher · e3ea1646
      Chandler Carruth authored
      fidelity checking of RIP-based references to basic blocks and other
      labels.
      
      These labels are super important for SLH tests so we should keep them
      readable in the test cases.
      
      llvm-svn: 348373
      e3ea1646
    • Brian Gesiak's avatar
      [IR] Add NODISCARD to attribute functions · df843bdd
      Brian Gesiak authored
      Summary:
      Many functions on `llvm::AttributeList` and `llvm::AttributeSet` are
      documented with "returns a new {list,set} because attribute
      {lists,sets} are immutable." This documentation can be aided by the
      addition of an attribute, `LLVM_NODISCARD`. Adding this prevents
      unsuspecting users of the API from expecting
      `AttributeList::setAttributes` from modifying the underlying list.
      
      At the very least, it would have saved me a few hours of debugging, since I
      had been doing just that! I had a bug in my program where I was calling
      `setAttributes` but then passing in the unmutated `AttributeList`.
      I tried adding LLVM_NODISCARD and confirmed that it would have made my bug
      immediately obvious.
      
      Reviewers: rnk, javed.absar
      
      Reviewed By: rnk
      
      Subscribers: llvm-commits
      
      Differential Revision: https://reviews.llvm.org/D55217
      
      llvm-svn: 348372
      df843bdd
    • Valery Pykhtin's avatar
      [AMDGPU]: Turn on the DPP combiner by default · 5b4db77b
      Valery Pykhtin authored
      Differential revision: https://reviews.llvm.org/D55314
      
      llvm-svn: 348371
      5b4db77b
    • Kamil Rytarowski's avatar
      Add a new interceptor for modctl(2) from NetBSD · efadb532
      Kamil Rytarowski authored
      Summary:
      modctl - controls loadable kernel modules.
      
      Skip tests as this call uses privileged operations.
      
      Reviewers: vitalybuka, joerg
      
      Reviewed By: vitalybuka
      
      Subscribers: kubamracek, llvm-commits, mgorny, #sanitizers
      
      Tags: #sanitizers
      
      Differential Revision: https://reviews.llvm.org/D55025
      
      llvm-svn: 348370
      efadb532
    • Kamil Rytarowski's avatar
      Add a new interceptor for nl_langinfo(3) from NetBSD · fab76435
      Kamil Rytarowski authored
      Summary:
      nl_langinfo - gets locale information.
      
      Add a dedicated test.
      
      Reviewers: vitalybuka, joerg
      
      Reviewed By: vitalybuka
      
      Subscribers: kubamracek, llvm-commits, mgorny, #sanitizers
      
      Tags: #sanitizers
      
      Differential Revision: https://reviews.llvm.org/D55015
      
      llvm-svn: 348369
      fab76435