[mlir][spirv] GPUToSPIRVPass: support case when `TargetEnv` attribute attached to...
authorIvan Butygin <ivan.butygin@gmail.com>
Thu, 13 Oct 2022 19:16:26 +0000 (21:16 +0200)
committerIvan Butygin <ivan.butygin@gmail.com>
Fri, 14 Oct 2022 10:33:01 +0000 (12:33 +0200)
commit8ca505871eeb91620d9869091a3a03a60368e444
tree23b05b75ca2dcb888cb4fa0559afcd4d69ea8ec1
parent4d2d426a51e122231443d89b196b0c6e91a5b147
[mlir][spirv] GPUToSPIRVPass: support case when `TargetEnv` attribute attached to the `gpu.module`

Previously, only case when `TargetEnv` was attached to the top level `ModuleOp` was supported.

Differential Revision: https://reviews.llvm.org/D135907
mlir/lib/Conversion/GPUToSPIRV/GPUToSPIRV.cpp
mlir/lib/Conversion/GPUToSPIRV/GPUToSPIRVPass.cpp
mlir/test/Conversion/GPUToSPIRV/module-opencl.mlir