https://github.com/lforg37 approved this pull request. LGTM, but could be useful at the occasion to get review from people with better knowledge of the memory dialect to ensure the raise is not overly complex there. https://github.com/llvm/llvm-project/pull/205990