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

オープン
#1,901 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
12/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
活発
技術スタック
python

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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

主要言語
Python
スター
14.9k
フォーク
1.2k
平均マージ
1時間 58分
マージ済み PR(30日)
40

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

ItsNotRexed/Leonida のほかの issue

ItsNotRexed/Leonida の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。