osamakader wrote: @davemgreen sorry for the late reply, I created a PR with generic approach https://github.com/llvm/llvm-project/pull/177885 , would that be ok? if so, I can close this one. https://github.com/llvm/llvm-project/pull/168633