1. Jul 28, 2017
    • 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