https://github.com/wenju-he approved this pull request. LGTM. I think llvm-spirv should be fixed, so that we can also use __builtin_elementwise_max/minimumnum for the target. https://github.com/llvm/llvm-project/pull/128506