1. May 26, 2018
  2. May 25, 2018
    • Jonas Hahnfeld's avatar
      [libomptarget-nvptx] loop: Determine if runtime uninitialized · 17aabf83
      Jonas Hahnfeld authored
      The generic entry points for static loop scheduling previously
      hardcoded that the runtime was initialized. This can be wrong if
      the compiler analyzes that the runtime is not needed and calls
      the init functions accordingly.
      
      This didn't affect clang-ykt because they have entry points for
      different combinations of SPMD x Runtime not needed. I didn't do
      measurements yet but with inlining we might get away with always
      calling the generic interface and letting compiler and runtime
      figure out the rest.
      In any case, a correct runtime is always better than having
      functions that may only be called if previous calls passed in
      a specific set of arguments!
      
      Differential Revision: https://reviews.llvm.org/D47131
      
      llvm-svn: 333285
      17aabf83
    • Jonas Hahnfeld's avatar
      [CMake] Unify install path for libraries · 65e0b878
      Jonas Hahnfeld authored
      Introduce OPENMP_INSTALL_LIBDIR and use in all install() commands.
      This also fixes installation of libomptarget-nvptx that previously
      didn't honor {OPENMP,LLVM}_LIBDIR_SUFFIX.
      
      Differential Revision: https://reviews.llvm.org/D47130
      
      llvm-svn: 333284
      65e0b878
    • Jonas Hahnfeld's avatar
      [Sema] Add tests for weak functions · 7411d61c
      Jonas Hahnfeld authored
      I found these checks to be missing, just add some simple cases.
      
      Differential Revision: https://reviews.llvm.org/D47200
      
      llvm-svn: 333283
      7411d61c
    • Andrea Di Biagio's avatar
      [RFC][Patch 1/3] Add a new class of predicates for variant scheduling classes. · 95140023
      Andrea Di Biagio authored
      This patch is the first of a sequence of three patches described by the LLVM-dev
      RFC "MC support for variant scheduling classes".
      http://lists.llvm.org/pipermail/llvm-dev/2018-May/123181.html
      
      The goal of this patch is to introduce a new class of scheduling predicates for
      SchedReadVariant and SchedWriteVariant.
      
      An MCSchedPredicate can be used instead of a normal SchedPredicate to model
      checks on the instruction (either a MachineInstr or a MCInst).
      Internally, an MCSchedPredicate encapsulates an MCInstPredicate definition.
      MCInstPredicate allows the definition of expressions with a well-known semantic,
      that can be used to generate code for both MachineInstr and MCInst.
      
      This is the first step toward teaching to tools like lllvm-mca how to resolve
      variant scheduling classes.
      
      Differential Revision: https://reviews.llvm.org/D46695
      
      llvm-svn: 333282
      95140023