Move plugin source and cmake files into separate directory.
Typically cmake targets in LLVM have a single target per directory.
This change brings this unittest more inline with that structure.
Details
- Reviewers
mtrofin thakis - Commits
- rGe281d102fb73: [unittest] Restructure plugin cmake target
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
I moved the plugins into their own directory similar to https://reviews.llvm.org/D140559.
This reduces how many files need to be set as optional sources, however this folder still contains two unit tests as separate targets, so we still do need to have optional sources set when defining each target.
We could separate these two out into their own subdirectories aswell wdyt?
We could separate these two out into their own subdirectories aswell wdyt?
IMHO that'd be a good change.
Thanks, that looks much nicer!
llvm/unittests/Passes/Plugins/DoublerPlugin/CMakeLists.txt | ||
---|---|---|
1 ↗ | (On Diff #485063) | should the two plugin dirs be below llvm/unittests/Passes/PassBuilderBindings now? (up to you) |
llvm/unittests/Passes/Plugins/DoublerPlugin/CMakeLists.txt | ||
---|---|---|
1 ↗ | (On Diff #485063) | I don't think so since it's the "Passes/Plugins/PluginsTests.cpp" file that uses them |
I don't have commit access, could one of you two commit this for me?
Username: ibricchi
Email: ibricchi@student.ethz.ch
I wanted to check again if someone could commit this for me since I don't have commit access
ibricchi <ibricchi@student.ethz.ch>