Skip to content

Simplify FFI calls for -Ztime-llvm-passes and -Zprint-codegen-stats#132590

Merged
bors merged 1 commit into
rust-lang:masterfrom
Zalathar:z-timings-stats
Nov 8, 2024
Merged

Simplify FFI calls for -Ztime-llvm-passes and -Zprint-codegen-stats#132590
bors merged 1 commit into
rust-lang:masterfrom
Zalathar:z-timings-stats

Conversation

@Zalathar

@Zalathar Zalathar commented Nov 4, 2024

Copy link
Copy Markdown
Member

The existing code for these unstable LLVM-infodump flags was jumping through hoops to pass an allocated C string across the FFI boundary, when it's much simpler to just write to a &RustString instead.

@rustbot

rustbot commented Nov 4, 2024

Copy link
Copy Markdown
Collaborator

r? @Nadrieril

rustbot has assigned @Nadrieril.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Nov 4, 2024
@Zalathar

Zalathar commented Nov 4, 2024

Copy link
Copy Markdown
Member Author

(Alternatively we could just delete these, but they do seem plausibly useful to somebody, and with the new implementation they’re not so bad.)

@Nadrieril

Copy link
Copy Markdown
Member

Looks reasonable enough, but

r? compiler

@rustbot rustbot assigned fee1-dead and unassigned Nadrieril Nov 4, 2024
@fee1-dead

Copy link
Copy Markdown
Member

r? compiler

@rustbot rustbot assigned BoxyUwU and unassigned fee1-dead Nov 6, 2024
@jieyouxu

jieyouxu commented Nov 7, 2024

Copy link
Copy Markdown
Member

r? jieyouxu

@rustbot rustbot assigned jieyouxu and unassigned BoxyUwU Nov 7, 2024

@jieyouxu jieyouxu left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense, thanks!

@jieyouxu

jieyouxu commented Nov 8, 2024

Copy link
Copy Markdown
Member

@bors r+ rollup

@bors

bors commented Nov 8, 2024

Copy link
Copy Markdown
Collaborator

📌 Commit 5bfa0b1 has been approved by jieyouxu

It is now in the queue for this repository.

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Nov 8, 2024
bors added a commit to rust-lang-ci/rust that referenced this pull request Nov 8, 2024
Rollup of 5 pull requests

Successful merges:

 - rust-lang#132161 ([StableMIR] A few fixes to pretty printing)
 - rust-lang#132389 (coverage: Simplify parts of coverage graph creation)
 - rust-lang#132452 (coverage: Extract safe FFI wrapper functions to `llvm_cov`)
 - rust-lang#132590 (Simplify FFI calls for `-Ztime-llvm-passes` and `-Zprint-codegen-stats`)
 - rust-lang#132738 (Initialize channel `Block`s directly on the heap)

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit 3a48d80 into rust-lang:master Nov 8, 2024
@rustbot rustbot added this to the 1.84.0 milestone Nov 8, 2024
rust-timer added a commit to rust-lang-ci/rust that referenced this pull request Nov 8, 2024
Rollup merge of rust-lang#132590 - Zalathar:z-timings-stats, r=jieyouxu

Simplify FFI calls for `-Ztime-llvm-passes` and `-Zprint-codegen-stats`

The existing code for these unstable LLVM-infodump flags was jumping through hoops to pass an allocated C string across the FFI boundary, when it's much simpler to just write to a `&RustString` instead.
@Zalathar Zalathar deleted the z-timings-stats branch November 8, 2024 10:28
mati865 pushed a commit to mati865/rust that referenced this pull request Nov 12, 2024
Simplify FFI calls for `-Ztime-llvm-passes` and `-Zprint-codegen-stats`

The existing code for these unstable LLVM-infodump flags was jumping through hoops to pass an allocated C string across the FFI boundary, when it's much simpler to just write to a `&RustString` instead.
mati865 pushed a commit to mati865/rust that referenced this pull request Nov 12, 2024
Rollup of 5 pull requests

Successful merges:

 - rust-lang#132161 ([StableMIR] A few fixes to pretty printing)
 - rust-lang#132389 (coverage: Simplify parts of coverage graph creation)
 - rust-lang#132452 (coverage: Extract safe FFI wrapper functions to `llvm_cov`)
 - rust-lang#132590 (Simplify FFI calls for `-Ztime-llvm-passes` and `-Zprint-codegen-stats`)
 - rust-lang#132738 (Initialize channel `Block`s directly on the heap)

r? `@ghost`
`@rustbot` modify labels: rollup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants