compiler-explorer icon indicating copy to clipboard operation
compiler-explorer copied to clipboard

[COMPILER REQUEST]: SPIR-V / DXIL to SASS / GCN ISA / RDNA ISA

Open rcmz opened this issue 4 months ago • 0 comments

Compiler name

Radeon GPU Analyzer

Compiler version

2.14

Compiler language

SPIR-V, DXIL

Compiler homepage

https://github.com/GPUOpen-Tools/radeon_gpu_analyzer

Motivation

Godbolt can currently compile high level shading languages (GLSL, HLSL, Slang) to intermediate assembly (SPIR-V, DXIL), but not to true machine code (SASS for Nvidia, GCN / RDNA ISA for AMD), making it only partially useful for graphics developers.

On the AMD side, the main compiler "Radeon GPU Analyzer" (RGA) is available and open source, so it should be doable. Same for Mesa's ACO compiler.

On the Nvidia side, the vendor compiler is not officially distributed, although Nvidia Nsight Graphics can display shader SASS, so there might be something to hack there. Mesa's NVK compiler could also be used.

At some point it would probably be better to have two separate issue for AMD and Nvidia, but for now I think it is interesting to keep it as one to gather all relevant opinions and information.

rcmz avatar Dec 01 '25 16:12 rcmz