1. Jul 28, 2017
    • Adam Nemet's avatar
      Relax the matching in these tests · a67dfe3b
      Adam Nemet authored
      Looks like the template arguments are displayed differently depending on the
      host compiler(?).  E.g.:
      
      InnerAnalysisManagerProxy<CGSCCAnalysisManager
      InnerAnalysisManagerProxy<llvm::AnalysisManager<llvm::LazyCallGraph::SCC, ...
      
      Fix fallout after r309294
      
      llvm-svn: 309297
      a67dfe3b
    • Marshall Clow's avatar
      Implement P0739R0: 'Some improvements to class template argument deduction... · 88c893cc
      Marshall Clow authored
      Implement P0739R0: 'Some improvements to class template argument deduction integration into the standard library' This is an API change (not ABI change) due to a late change in the c++17 standard
      
      llvm-svn: 309296
      88c893cc
    • Ilya Biryukov's avatar
      [clangd] Don't reverse priorities of completion items. · de46274d
      Ilya Biryukov authored
      Summary: Current algorithm incorrectly provides completion results in a reverse order.
      
      Reviewers: krasimir, bkramer
      
      Reviewed By: krasimir
      
      Subscribers: cfe-commits, klimek
      
      Differential Revision: https://reviews.llvm.org/D35950
      
      llvm-svn: 309295
      de46274d
    • Adam Nemet's avatar
      [ICP] Migrate to OptimizationRemarkEmitter · 0d8b5d6f
      Adam Nemet authored
      This is a module pass so for the old PM, we can't use ORE, the function
      analysis pass.  Instead ORE is created on the fly.
      
      A few notes:
      
      - isPromotionLegal is folded in the caller since we want to emit the Function
      in the remark but we can only do that if the symbol table look-up succeeded.
      
      - There was good test coverage for remarks in this pass.
      
      - promoteIndirectCall uses ORE conditionally since it's also used from
      SampleProfile which does not use ORE yet.
      
      Fixes PR33792.
      
      Differential Revision: https://reviews.llvm.org/D35929
      
      llvm-svn: 309294
      0d8b5d6f
    • Adam Nemet's avatar
      [OptRemark] Allow streaming of 64-bit integers · 6374331a
      Adam Nemet authored
      llvm-svn: 309293
      6374331a
    • Brian Gesiak's avatar
      [lit] Fix order of checks in shtest-shell.py test · d256538b
      Brian Gesiak authored
      Summary:
      An expectation in `utils/lit/tests/Inputs/shtest-shell/redirects.txt`
      expects that first a string printed to stdout is seen, and then a
      string printed to stderr. Add `flush()` calls to ensure that stdout is
      printed before stderr, as expected.
      
      Reviewers: rnk, mgorny, jroelofs
      
      Reviewed By: rnk
      
      Subscribers: llvm-commits
      
      Differential Revision: https://reviews.llvm.org/D35947
      
      llvm-svn: 309292
      d256538b
    • Daniel Neilson's avatar
      All libcalls should be considered to be GC-leaf functions. · 2574d7cb
      Daniel Neilson authored
      Summary:
      It is possible for some passes to materialize a call to a libcall (ex: ldexp, exp2, etc),
      but these passes will not mark the call as a gc-leaf-function. All libcalls are
      actually gc-leaf-functions, so we change llvm::callsGCLeafFunction() to tell us that
      available libcalls are equivalent to gc-leaf-function calls.
      
      Reviewers: sanjoy, anna, reames
      
      Reviewed By: anna
      
      Subscribers: llvm-commits
      
      Differential Revision: https://reviews.llvm.org/D35840
      
      llvm-svn: 309291
      2574d7cb
    • Florian Hahn's avatar
      Update to use enum classes for various ARM *Kind enums · ef5bbd61
      Florian Hahn authored
      Summary: This updates the relevant Clang parts for the LLVM change D35882.
      
      Reviewers: rengolin, chandlerc, javed.absar, rovka
      
      Reviewed By: rovka
      
      Subscribers: aemerson, cfe-commits, kristof.beyls
      
      Differential Revision: https://reviews.llvm.org/D35884
      
      llvm-svn: 309289
      ef5bbd61
    • Erich Keane's avatar
      Fix double destruction of objects when OpenMP construct is canceled · 0026ed2f
      Erich Keane authored
      When an omp for loop is canceled the constructed objects are being destructed 
      twice.
      
      It looks like the desired code is:
      
      {
      
        Obj o;
        If (cancelled) branch-through-cleanups to cancel.exit.
      
      }
      [cleanups]
      cancel.exit:
      
      __kmpc_for_static_fini
      br cancel.cont (*)
      
      cancel.cont:
      
      __kmpc_barrier
      return
      
      The problem seems to be the branch to cancel.cont is currently also going 
      through the cleanups calling them again. This change just does a direct branch 
      instead.
      
      Patch By: michael.p.rice@intel.com
      
      Differential Revision: https://reviews.llvm.org/D35854
      
      llvm-svn: 309288
      0026ed2f
    • Florian Hahn's avatar
      [TargetParser] Use enum classes for various ARM kind enums. · 67ddd1d0
      Florian Hahn authored
      Summary:
      Using c++11 enum classes ensures that only valid enum values are used
      for ArchKind, ProfileKind, VersionKind and ISAKind. This removes the
      need for checks that the provided values map to a proper enum value,
      allows us to get rid of AK_LAST and prevents comparing values from
      different enums. It also removes a bunch of static_cast
      from unsigned to enum values and vice versa, at the cost of introducing
      static casts to access AArch64ARCHNames and ARMARCHNames by ArchKind.
      
      FPUKind and ArchExtKind are the only remaining old-style enum in
      TargetParser.h. I think it's beneficial to keep ArchExtKind as old-style
      enum, but FPUKind can be converted too, but this patch is quite big, so
      could do this in a follow-up patch. I could also split this patch up a
      bit, if people would prefer that.
      
      Reviewers: rengolin, javed.absar, chandlerc, rovka
      
      Reviewed By: rovka
      
      Subscribers: aemerson, kristof.beyls, llvm-commits
      
      Differential Revision: https://reviews.llvm.org/D35882
      
      llvm-svn: 309287
      67ddd1d0
  2. Jul 27, 2017