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

Aperta
#1,901 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
12/100
Tipo di issue
Funzionalità
Chiarezza
Da chiarire
Stato di attività
Attiva
Stack tecnologico
python

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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

Lingua principale
Python
Stelle
14.9k
Fork
1.2k
Merge medio
1h 58m
PR unite (30g)
40

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di ItsNotRexed/Leonida

Tutte le issue di ItsNotRexed/Leonida

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.