2 Commits

Author SHA1 Message Date
Lei Zhang
4a4b8570f7 [mlir][spirv] Fix missing dependency and remove unnecessary headers 2023-11-05 10:44:05 -08:00
Sang Ik Lee
2dace04521
[mlir][spirv] Implement gpu::TargetAttrInterface (#69949)
This commit implements gpu::TargetAttrInterface for SPIR-V target
attribute. The plan is to use this to enable GPU compilation pipeline
for OpenCL kernels later.

The changes do not impact Vulkan shaders using milr-vulkan-runner.
New GPU Dialect transform pass spirv-attach-target is implemented for
attaching attribute from CLI.

gpu-module-to-binary pass now works with GPU module that has SPIR-V
module with OpenCL kernel functions inside.
2023-11-05 08:11:53 -08:00