1. Sep 15, 2017
    • Adrian Prantl's avatar
      Adapt more testcases for llvm-dwarfdump changes. · 82959cd5
      Adrian Prantl authored
      llvm-svn: 313275
      82959cd5
    • Matt Arsenault's avatar
      AMDGPU: Make frame register caller preserved · 6efd082c
      Matt Arsenault authored
      Using SplitCSR for the frame register was very broken. Often
      the copies in the prolog and epilog were optimized out, in addition
      to them being inserted after the true prolog where the FP
      was clobbered.
      
      I have a hacky solution which works that continues to use
      split CSR, but for now this is simpler and will get to working
      programs.
      
      llvm-svn: 313274
      6efd082c
    • Krzysztof Parzyszek's avatar
      Silence warning about unused variable in release build · a8daf174
      Krzysztof Parzyszek authored
      llvm-svn: 313273
      a8daf174
    • Adrian Prantl's avatar
      llvm-dwarfdump: support dumping static archives. · 5fd3d49b
      Adrian Prantl authored
      llvm-svn: 313272
      5fd3d49b
    • Krzysztof Parzyszek's avatar
      TableGen support for parameterized register class information · 779d98e1
      Krzysztof Parzyszek authored
      This replaces TableGen's type inference to operate on parameterized
      types instead of MVTs, and as a consequence, some interfaces have
      changed:
      - Uses of MVTs are replaced by ValueTypeByHwMode.
      - EEVT::TypeSet is replaced by TypeSetByHwMode.
      
      This affects the way that types and type sets are printed, and the
      tests relying on that have been updated.
      
      There are certain users of the inferred types outside of TableGen
      itself, namely FastISel and GlobalISel. For those users, the way
      that the types are accessed have changed. For typical scenarios,
      these replacements can be used:
      - TreePatternNode::getType(ResNo) -> getSimpleType(ResNo)
      - TreePatternNode::hasTypeSet(ResNo) -> hasConcreteType(ResNo)
      - TypeSet::isConcrete -> TypeSetByHwMode::isValueTypeByHwMode(false)
      
      For more information, please refer to the review page.
      
      Differential Revision: https://reviews.llvm.org/D31951
      
      llvm-svn: 313271
      779d98e1
    • Zachary Turner's avatar
      [lit] Force site configs to be run before source-tree configs · a0e55b64
      Zachary Turner authored
      This patch simplifies LLVM's lit infrastructure by enforcing an ordering
      that a site config is always run before a source-tree config.
      
      A significant amount of the complexity from lit config files arises from
      the fact that inside of a source-tree config file, we don't yet know if
      the site config has been run.  However it is *always* required to run
      a site config first, because it passes various variables down through
      CMake that the main config depends on.  As a result, every config
      file has to do a bunch of magic to try to reverse-engineer the location
      of the site config file if they detect (heuristically) that the site
      config file has not yet been run.
      
      This patch solves the problem by emitting a mapping from source tree
      config file to binary tree site config file in llvm-lit.py. Then, during
      discovery when we find a config file, we check to see if we have a
      target mapping for it, and if so we use that instead.
      
      This mechanism is generic enough that it does not affect external users
      of lit. They will just not have a config mapping defined, and everything
      will work as normal.
      
      On the other hand, for us it allows us to make many simplifications:
      
      * We are guaranteed that a site config will be executed first
      * Inside of a main config, we no longer have to assume that attributes
        might not be present and use getattr everywhere.
      * We no longer have to pass parameters such as --param llvm_site_config=<path>
        on the command line.
      * It is future-proof, meaning you don't have to edit llvm-lit.in to add
        support for new projects.
      * All of the duplicated logic of trying various fallback mechanisms of
        finding a site config from the main config are now gone.
      
      One potentially noteworthy thing that was required to implement this
      change is that whereas the ninja check targets previously used the first
      method to spawn lit, they now use the second. In particular, you can no
      longer run lit.py against the source tree while specifying the various
      `foo_site_config=<path>` parameters.  Instead, you need to run
      llvm-lit.py.
      
      Differential Revision: https://reviews.llvm.org/D37756
      
      llvm-svn: 313270
      a0e55b64
    • Benjamin Kramer's avatar
      [tblgen] Remove uses of std::ptr_fun, it's removed in C++17. · d7b2aae1
      Benjamin Kramer authored
      No functionality change intended.
      
      llvm-svn: 313269
      d7b2aae1
  2. Sep 14, 2017