jroelofs wrote: > The instantiation of the template can be in the right library, no? > And the functor I was mentioning would be nullptr by default and only implemented in the CodeGen library. Ok, that works. https://github.com/llvm/llvm-project/pull/113243