Skip to content

[amd-spirv-backend][Debug Info] Add additional support debug information in SPIRV backend #1106

@lamb-j

Description

@lamb-j

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

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions