[PATCH] D73130: [mlir] Strawman PR for shared library support

Valentin Churavy via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 21 12:23:37 PST 2020


vchuravy created this revision.
Herald added subscribers: llvm-commits, liufengdb, aartbik, lucyrfox, mgester, arpith-jacob, antiagainst, shauheen, burmako, jpienaar, rriddle, mehdi_amini, mgorny.
Herald added a reviewer: nicolasvasilache.
Herald added a project: LLVM.
vchuravy added a reviewer: stephenneuendorffer.

Putting this up mainly for discussion on
how this should be done. I am interested in MLIR from
the Julia side and we currently have a strong preference
to dynamically linking against the LLVM shared library,
and would like to have a MLIR shared library.

This PR works as in it generates a shared library that I can
link against, but I haven't done any real testing.

LLVM and clang, both have an automatic registration mechanism
for library components instead of the static list I used here
from mlir-opt.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D73130

Files:
  llvm/CMakeLists.txt
  mlir/tools/CMakeLists.txt
  mlir/tools/mlir-shlib/CMakeLists.txt
  mlir/tools/mlir-shlib/libmlir.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D73130.239404.patch
Type: text/x-patch
Size: 2877 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200121/90abf2ce/attachment.bin>


More information about the llvm-commits mailing list