We have some support for debug info in the SPIRV translator, less in the SPIRV backend. We should:
- Reach parity with the SPIRV translator for debug info support
- Reach parity with the CPU for debug info support
- Both CPU debug information, and GPU debug information (heterogeneous-dwarf)
This will involve:
- Assessing difference between translator and backend debug info support
- Developing a static description of the source language
- Locations of variables
Example commands:
clang file.hip -gheterogeneous-debug --offload-arch=amdgcnspirv --use-spirv-backend --device-only
clang file.hip -gheterogeneous-debug --offload-arch=amdgcnspirv --no-use-spirv-backend --device-only
clang file.hip -target-triple=spir64 -o file.spv
clang file.hip -emit-llvm -o file.bc
llvm-spirv file.spv