[Mlir-commits] [mlir] [mlir][SPIRV] Fix lookup logic `spirv.target_env` for `gpu.module` (PR #147262)

Jaeho Kim llvmlistbot at llvm.org
Wed Jul 9 19:17:13 PDT 2025


oojahooo wrote:

> Approach 1. sounds to me like the way to go

Thank you for replying.
I reverted logic of `lookupTargetEnv` and added new helper function named `lookupTargetEnvInTargets`, which finds spirv target env in `"targets"`, into GPUToSPIRV code.
Also I added same lookup logic in `GPUModuleConversion` for remaining target env during conversion.

https://github.com/llvm/llvm-project/pull/147262


More information about the Mlir-commits mailing list