[all-commits] [llvm/llvm-project] 103461: [mlir][spirv] Fix lookup logic `spirv.target_env` ...

Jaeho Kim via All-commits all-commits at lists.llvm.org
Fri Aug 1 03:54:25 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 103461f1190e90b141830bc50734874ba954dfe6
      https://github.com/llvm/llvm-project/commit/103461f1190e90b141830bc50734874ba954dfe6
  Author: Jaeho Kim <oojahooo at gmail.com>
  Date:   2025-08-01 (Fri, 01 Aug 2025)

  Changed paths:
    M mlir/lib/Conversion/GPUToSPIRV/GPUToSPIRV.cpp
    M mlir/lib/Conversion/GPUToSPIRV/GPUToSPIRVPass.cpp
    A mlir/test/Conversion/GPUToSPIRV/lookup-target-env.mlir

  Log Message:
  -----------
  [mlir][spirv] Fix lookup logic `spirv.target_env` for `gpu.module` (#147262)

The `gpu.module` operation can contain `spirv.target_env` attributes
within an array attribute named `"targets"`. So it accounts for that
case by iterating over the `"targets"` attribute, if present, and
looking up `spirv.target_env`.

---------

Co-authored-by: Jakub Kuderski <kubakuderski at gmail.com>



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list