labath wrote: It may also be useful to look at the https://github.com/llvm/llvm-project/commit/463e9fe399d0f8cb6e88ce4ff063136055ba93dd to see how this is used. That commit is WIP mainly because I haven't written the tests yet. https://github.com/llvm/llvm-project/pull/147264