aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineFunction.cpp
diff options
context:
space:
mode:
authorStephen Neuendorffer <stephen.neuendorffer@xilinx.com>2019-12-31 17:23:01 -0800
committerStephen Neuendorffer <stephen.neuendorffer@xilinx.com>2020-02-04 08:56:37 -0800
commitd7cbef2714c98f91eb1556ed414aa9e6719bbac3 (patch)
tree0b7ee856f4e3c880a5b615620b300335ae14ae28 /llvm/lib/CodeGen/MachineFunction.cpp
parent6d07802d63a8589447de0a697696447a583de9d8 (diff)
downloadllvm-d7cbef2714c98f91eb1556ed414aa9e6719bbac3.zip
llvm-d7cbef2714c98f91eb1556ed414aa9e6719bbac3.tar.gz
llvm-d7cbef2714c98f91eb1556ed414aa9e6719bbac3.tar.bz2
[MLIR] Fixes for shared library dependencies.
Summary: This patch is a step towards enabling BUILD_SHARED_LIBS=on, which builds most libraries as DLLs instead of statically linked libraries. The main effect of this is that incremental build times are greatly reduced, since usually only one library need be relinked in response to isolated code changes. The bulk of this patch is fixing incorrect usage of cmake, where library dependencies are listed under add_dependencies rather than under target_link_libraries or under the LINK_LIBS tag. Correct usage should be like this: add_dependencies(MLIRfoo MLIRfooIncGen) target_link_libraries(MLIRfoo MLIRlib1 MLIRlib2) A separate issue is that in cmake, dependencies between static libraries are automatically included in dependencies. In the above example, if MLIBlib1 depends on MLIRlib2, then it is sufficient to have only MLIRlib1 in the target_link_libraries. When compiling with shared libraries, it is necessary to have both MLIRlib1 and MLIRlib2 specified if MLIRfoo uses symbols from both. Reviewers: mravishankar, antiagainst, nicolasvasilache, vchuravy, inouehrs, mehdi_amini, jdoerfert Reviewed By: nicolasvasilache, mehdi_amini Subscribers: Joonsoo, merge_guards_bot, jholewinski, mgorny, mehdi_amini, rriddle, jpienaar, burmako, shauheen, antiagainst, csigg, arpith-jacob, mgester, lucyrfox, herhut, aartbik, liufengdb, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D73653
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunction.cpp')
0 files changed, 0 insertions, 0 deletions