https://github.com/rampitec commented: In general this looks OK now, except that I am not sure it has to be done by target and not in the general infrastructure. I will defer the decision to other reviewers, code looks LGTM. https://github.com/llvm/llvm-project/pull/229538