I just tried to build all experimental targets and noticed that DirectX did
not build with -DBUILD_SHARED_LIBS=ON.
Details
- Reviewers
beanz - Commits
- rGf7ae55f03dcb: [DirectX] Fix shared libraries build
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Time | Test | |
---|---|---|
60,060 ms | x64 debian > MLIR.Examples/standalone::test.toy |
Event Timeline
I think I would broadly classify that there are two problems you're fixing here:
(1) Under-specified dependencies.
(2) A cyclic dependency on PointerTypeAnalysis
I agree with how you've addressed (1), I think breaking PointerTypeAnalysis into its own library is less than ideal.
We have a growing set of IR passes in the DirectX backend, and I expect that number of passes to keep growing for a while. It probably just makes more sense to create a DirectXIRPasses library and move PointerTypeAnalysis to that library.
I don't want to push you to clean up all our code organization in order to fix the bug you're working on. If you change the PointerTypeAnalysis library name to DirectXIRPasses I'll approve this and finish the code reorganization when I get a chance in a week or two.
Thanks!