ftynse wrote: Also note that the NVGPU pipeline is doing something similar and it makes sense to align with that and reuse utilities like those from mlir/lib/Conversion/GPUCommon/OpToFuncCallLowering.h. https://github.com/llvm/llvm-project/pull/144926