rustup: llvm-tools: please package `llvm-extract`
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
Start by reading the llvm-tools component packaging and distribution configuration, then trace how its bundled LLVM utilities are selected and built. The issue asks to include upstream llvm-extract in that component; done means users receive a version-matched tool there. The issue names no specific files or tests, so first locate the component's packaging entry points and existing tool list.
索引モデルが issue の本文から書いたものです。
説明
It is sometimes useful to inspect how particular Rust code looks after compilation.
However, there is a caveat: usually, one wants to focus on some specific function,
and not just view the entire resulting .s/.ll with all the functions that happen to be there.
There's https://crates.io/crates/cargo-show-asm that provides a nice user interface for that,
but currently this filtering is entirely textual.
While this works fine for visual observation,
the result is non-actionable, in so that it is not self-contained,
especially for LLVM IR (which is what this issue is specifically about),
since it contains only a single raw function,
with 'dangling' references to other functions, and attributes.
This snippet can not be copied as-is and e.g. put into godbolt.
There's llvm-extract upstream tool that solves this problem, takes an LLVM IR module,
and produces a valid LLVM IR with other functions definitions turned into declarations.
Requiring that tool to be user-provided is not optimal, because it is not hermetic and
there might be LLVM IR version mismatch between it and the rust-internal LLVM version.
There's a potential alternatice approach to use rustc-dev component + rustc_llvm crate,
but that would be nightly-only and again might break silently once LLVM version is changed.
(And i'm not sure if needed functionality is even exposed there).
Third option would be to use llvm-sys. Same concerns about version mismatch.
And it's a very heavy dependency...
So it would be quite convient if that tool could just be provided in llvm-tools component.
Thank you!
Refs. https://github.com/rust-lang/rust/issues/85658
Refs. https://github.com/pacak/cargo-show-asm/issues/509
- 主要言語
- Rust
- スター
- 123k
- フォーク
- 16.6k
- 平均マージ
- 2日 17時間
- マージ済み PR(30日)
- 532
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
rust-lang/rust のほかの issue
-
C-bug needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
rust-lang/rust#166722 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
A-attributes relnotes relnotes-needs-review relnotes-tracking-issue T-compiler T-lang
難易度 1/5 1時間未満 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
A-run-make C-bug T-bootstrap
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
メンテナーはふだん 1 日以内に返信
-
Tracking issue for release notes of #161531: Remove `T: Send + Sync` bound from `Arc::downcast`オープンrelnotes relnotes-tracking-issue T-libs
難易度 1/5 1時間未満 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
A-str A-Unicode relnotes relnotes-tracking-issue T-libs
難易度 1/5 1時間未満 初心者へのやさしさ 70/100
メンテナーはふだん 1 日以内に返信
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
tamatebako/tebako#1155 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 79/100
swc-project/swc-next-issues#1148 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
registrystack/registry-stack#2828 ·
メンテナーはふだん 1 日以内に返信
-
agent:triaged arch-audit bug priority:p1
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
SocketDev/socket-patch#2364 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug P2
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信