There's quite a lot of references to Polly in the LLVM CMake codebase. However the registration pattern used by Polly could be useful to other external projects: thanks to that mechanism it would be possible to develop LLVM extension without touching the LLVM code base.
This an attempt at doing so, using Polly as reference.
I feel it would be really nice to add some documentation for this feature, and insert here a pointer here.