1. Aug 08, 2018
  2. Aug 07, 2018
    • David Bolvansky's avatar
      [RFC] Build LLVM-C.dll on MSVC that exports only the C API · ab2cbad6
      David Bolvansky authored
      Summary:
      Hello!
      
      This commit adds a LLVM-C target that is always built on MSVC. A big fat warning, this is my first cmake code ever so there is a fair bit of I-have-no-idea-what-I'm-doing going on here. Which is also why I placed it outside of llvm-shlib as I was afraid of breaking things of other people. Secondly llvm-shlib builds a LLVM.so which exports all symbols and then does a thin library that points to it, but on Windows we do not build a LLVM.dll so that would have complicated the code more.
      
      The patch includes a python script that calls dumpbin.exe to get all of the symbols from the built libraries. It then grabs all the symbols starting with LLVM and generates the export file from those. The export file is then used to create the library just like the LLVM-C that is built on darwin.
      
      Improvements that I need help with, to follow up this review.
        - Get cmake to make sure that dumpbin.exe is on the path and wire the full path to the script.
        - Use LLVM-C.dll when building llvm-c-test so we can verify that the symbols are exported.
        - Bundle the LLVM-C.dll with the windows installer.
      
      Why do this?  I'm building a language frontend which is self-hosting, and on windows because of various tooling issues we have a problem of consuming the LLVM*.lib directly on windows. Me and the users of my projects using LLVM would be greatly helped by having LLVM-C.dll built and shipped by the Windows installer. Not only does LLVM takes forever to build, you have to run a extra python script in order to get the final DLL.
      
      Any comments, thoughts or help is greatly appreciated.
      
      Cheers, Jakob.
      
      Patch by: Wallbraker (Jakob Bornecrantz)
      
      Reviewers: compnerd, beanz, hans, smeenai
      
      Reviewed By: beanz
      
      Subscribers: xbolva00, bhelyer, Memnarch, rnk, fedor.sergeev, chapuni, smeenai, john.brawn, deadalnix, llvm-commits, mgorny
      
      Differential Revision: https://reviews.llvm.org/D35077
      
      llvm-svn: 339151
      ab2cbad6
    • Scott Linder's avatar
      [OpenCL] Restore r338899 (reverted in r338904), fixing stack-use-after-return · f8b3df4d
      Scott Linder authored
      Always emit alloca in entry block for enqueue_kernel builtin.
      
      Ensures the statically sized alloca is not converted to DYNAMIC_STACKALLOC
      later because it is not in the entry block.
      
      llvm-svn: 339150
      f8b3df4d
    • Florian Hahn's avatar
      [GVN,NewGVN] Keep nonnull if K does not move. · 950576bd
      Florian Hahn authored
      In combineMetadata, we should be able to preserve K's nonnull metadata,
      if K does not move. This condition should hold for all replacements by
      NewGVN/GVN, but I added a bunch of assertions to verify that.
      
      Fixes PR35038.
      
      There probably are additional kinds of metadata that could be preserved
      using similar reasoning. This is follow-up work.
      
      Reviewers: dberlin, davide, efriedma, nlopes
      
      Reviewed By: efriedma
      
      Differential Revision: https://reviews.llvm.org/D47339
      
      llvm-svn: 339149
      950576bd
    • Sjoerd Meijer's avatar
      [ARM] FP16: codegen support for VACGT · b39cd886
      Sjoerd Meijer authored
      Differential Revision: https://reviews.llvm.org/D50236
      
      llvm-svn: 339148
      b39cd886