idea: decode the isa directly instead of going through llvm-mc text

Abierto
#1,901 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
12/100
Tipo de issue
Nueva funcionalidad
Claridad
Necesita aclaración
Estado de actividad
Activo
Stack tecnológico
python

Línea de trabajo

The payload names no files or entry points, so start by locating the current path from RDNA2 binary through the llvm-mc disassembly text to the SPIR-V output. The proposal is a direct ISA decoder, and that is design work: agree on scope with the maintainer first. Done would mean a decoder whose output matches llvm-mc across the whole shader corpus, with the LLVM dependency removed from the build.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

just an idea for the build side, not tryna knock anything. right now every shader goes binary to llvm-mc text to parse text to spirv, and thats where the llvm 21 + amdgpu requirement, the wsl / custom llvm build and the "llvm version changed so retranslate everything" stuff come from, plus the disassembly text is a chunk of the work folder

rdna2 encodings are pretty regular tbh, a decoder straight from the machine code is like 2.5k lines with the opcode tables and u can check it against llvm-mc once on the whole corpus to make sure theyre identical then the build doesnt need llvm at all, and if translation is fast u could even translate shaders lazily when theyre first used instead of all of them up front, so that part of the work folder could mostly go away might be worth thinking about since the prereq list is kinda scary for normal people rn lol

Lenguaje dominante
Python
Estrellas
14.9k
Forks
1.2k
Merge medio
1 h 58 min
PR fusionados (30 d)
40

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de ItsNotRexed/Leonida

Todos los issues de ItsNotRexed/Leonida

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.