2020-05-18 06:17:04 +08:00
|
|
|
# This library is unusual, since mlir-tblgen depends on it, which is
|
|
|
|
# built with DISABLE_LLVM_LINK_LLVM_DYLIB, this must also be built
|
|
|
|
# with that option. Otherwise builds with LLVM_BUILD_LLVM_DYLIB and
|
|
|
|
# LLVM_LINK_LLVM_DYLIB fail. (Note that even if this has no llvm
|
|
|
|
# component dependencies, LLVM_LINK_LLVM_DYLIB tends to introduce a
|
|
|
|
# dependence on libLLVM.so) However, it must also be linkable against
|
|
|
|
# libMLIR.so in some contexts (see unittests/Tablegen, for instance, which
|
2020-10-29 03:03:15 +08:00
|
|
|
# has a dependence on MLIRIR, which must depend on libLLVM.so). This works
|
2020-05-18 06:17:04 +08:00
|
|
|
# in this special case because this library is static.
|
|
|
|
|
2020-05-18 12:43:32 +08:00
|
|
|
llvm_add_library(MLIRTableGen STATIC
|
2019-03-30 13:10:12 +08:00
|
|
|
Argument.cpp
|
|
|
|
Attribute.cpp
|
2021-03-04 08:37:32 +08:00
|
|
|
AttrOrTypeDef.cpp
|
2021-01-12 03:54:51 +08:00
|
|
|
Builder.cpp
|
2019-03-30 13:10:12 +08:00
|
|
|
Constraint.cpp
|
2019-05-21 00:33:10 +08:00
|
|
|
Dialect.cpp
|
2019-04-12 20:57:50 +08:00
|
|
|
Format.cpp
|
2020-07-01 06:42:52 +08:00
|
|
|
Interfaces.cpp
|
2019-03-30 13:10:12 +08:00
|
|
|
Operator.cpp
|
2020-01-11 00:18:08 +08:00
|
|
|
OpClass.cpp
|
2020-04-01 16:48:34 +08:00
|
|
|
Pass.cpp
|
2019-03-30 13:10:12 +08:00
|
|
|
Pattern.cpp
|
|
|
|
Predicate.cpp
|
2020-04-05 16:03:24 +08:00
|
|
|
Region.cpp
|
2020-03-07 05:55:36 +08:00
|
|
|
SideEffects.cpp
|
2020-02-22 05:19:50 +08:00
|
|
|
Successor.cpp
|
2021-04-16 02:29:23 +08:00
|
|
|
Trait.cpp
|
2019-03-30 13:10:12 +08:00
|
|
|
Type.cpp
|
|
|
|
|
2020-05-05 03:41:43 +08:00
|
|
|
DISABLE_LLVM_LINK_LLVM_DYLIB
|
|
|
|
|
2019-03-30 13:10:12 +08:00
|
|
|
ADDITIONAL_HEADER_DIRS
|
|
|
|
${MLIR_MAIN_INCLUDE_DIR}/mlir/TableGen
|
2020-05-18 06:17:04 +08:00
|
|
|
)
|
2020-05-05 03:41:43 +08:00
|
|
|
|
2020-05-18 12:43:32 +08:00
|
|
|
mlir_check_all_link_libraries(MLIRTableGen)
|
Install the MLIRTableGen static library.
Summary: * This library is special because of its dependencies so seems to have been inadvertently left out of installs.
Reviewers: antiagainst
Subscribers: mgorny, mehdi_amini, rriddle, jpienaar, shauheen, antiagainst, nicolasvasilache, arpith-jacob, mgester, lucyrfox, aartbik, liufengdb, stephenneuendorffer, Joonsoo, grosul1, frgossen, Kayjukh, jurahul, msifontes
Tags: #mlir
Differential Revision: https://reviews.llvm.org/D81693
2020-06-12 05:01:52 +08:00
|
|
|
|
|
|
|
add_mlir_library_install(MLIRTableGen)
|