1. Dec 18, 2018
  2. Dec 17, 2018
    • Simon Pilgrim's avatar
      Build ASTImporterTest.cpp with /bigobj on MSVC builds to keep... · a6e58888
      Simon Pilgrim authored
      Build ASTImporterTest.cpp with /bigobj on MSVC builds to keep llvm-clang-x86_64-expensive-checks-win buildbot happy
      
      llvm-svn: 349357
      a6e58888
    • Petar Avramovic's avatar
      [MIPS GlobalISel] Remove switch statement (fix r349346 for MSVC) · f9c9bc09
      Petar Avramovic authored
      Temporarily remove switch statement without any case labels 
      in function legalizeCustom in order to fix r349346 for MSVC.
      
      llvm-svn: 349356
      f9c9bc09
    • Tim Northover's avatar
      ARM: use acquire/release instruction variants when available. · ae3b66b7
      Tim Northover authored
      These features (fairly) recently got split out into their own feature, so we
      should make CodeGen use them when available. The main change here is that the
      check used to be based on the triple, but now it's based on CPU features.
      
      llvm-svn: 349355
      ae3b66b7
    • Andrea Di Biagio's avatar
      [MCA] Add support for BeginGroup/EndGroup. · 4c737110
      Andrea Di Biagio authored
      llvm-svn: 349354
      4c737110
    • Eric Liu's avatar
      Revert "DebugInfo: Assume an absence of ranges or high_pc on a CU means the CU... · 6c933a2b
      Eric Liu authored
      Revert "DebugInfo: Assume an absence of ranges or high_pc on a CU means the CU is empty (devoid of code addresses)"
      
      This reverts commit r349333. It caused internal test to fail. I have
      sent more information to the author.
      
      llvm-svn: 349353
      6c933a2b
    • Andrea Di Biagio's avatar
      [MCA] Don't assume that createMCInstrAnalysis() always returns a valid pointer. · 45060675
      Andrea Di Biagio authored
      Class InstrBuilder wrongly assumed that llvm targets were always able to return
      a non-null pointer when createMCInstrAnalysis() was called on them.
      This was causing crashes when simulating executions for targets that don't
      provide an MCInstrAnalysis object.
      This patch fixes the issue by making MCInstrAnalysis optional.
      
      llvm-svn: 349352
      45060675
    • Gabor Marton's avatar
      [ASTImporter] Add importer specific lookup · 54058b50
      Gabor Marton authored
      Summary:
      There are certain cases when normal C/C++ lookup (localUncachedLookup)
      does not find AST nodes. E.g.:
      
      Example 1:
      
        template <class T>
        struct X {
          friend void foo(); // this is never found in the DC of the TU.
        };
      
      Example 2:
      
        // The fwd decl to Foo is not found in the lookupPtr of the DC of the
        // translation unit decl.
        struct A { struct Foo *p; };
      
      In these cases we create a new node instead of returning with the old one.
      To fix it we create a new lookup table which holds every node and we are
      not interested in any C++ specific visibility considerations.
      Simply, we must know if there is an existing Decl in a given DC.
      
      Reviewers: a_sidorin, a.sidorin
      
      Subscribers: mgorny, rnkovacs, dkrupp, Szelethus, cfe-commits
      
      Differential Revision: https://reviews.llvm.org/D53708
      
      llvm-svn: 349351
      54058b50
    • Simon Pilgrim's avatar
      Regenerate test in prep for SimplifyDemandedBits improvements. · 193429ea
      Simon Pilgrim authored
      llvm-svn: 349350
      193429ea
    • Gabor Marton's avatar
      [ASTImporter] Fix redecl chain of classes and class templates · 7df342a4
      Gabor Marton authored
      Summary:
      The crux of the issue that is being fixed is that lookup could not find
      previous decls of a friend class. The solution involves making the
      friend declarations visible in their decl context (i.e. adding them to
      the lookup table).
      Also, we simplify `VisitRecordDecl` greatly.
      
      This fix involves two other repairs (without these the unittests fail):
      (1) We could not handle the addition of injected class types properly
      when a redecl chain was involved, now this is fixed.
      (2) DeclContext::removeDecl failed if the lookup table in Vector form
      did not contain the to be removed element. This caused troubles in
      ASTImporter::ImportDeclContext. This is also fixed.
      
      Reviewers: a_sidorin, balazske, a.sidorin
      
      Subscribers: rnkovacs, dkrupp, Szelethus, cfe-commits
      
      Differential Revision: https://reviews.llvm.org/D53655
      
      llvm-svn: 349349
      7df342a4