https://github.com/MaheshRavishankar requested changes to this pull request. Could you also just create a separate C++ utility function for the core transformation (outside of the transform dialect). Thanks! https://github.com/llvm/llvm-project/pull/71555