Stream: cranelift

Topic: Enhanced function display


view this post on Zulip Chase Wilson (Jan 17 2023 at 17:01):

When you call Function::display() you get a pretty bare-bones representation of the function that uses numerical names for things like imported symbols or functions (including the current function's name), is there a way to add "debug info" in order for the .display()'d version of a function to say v20 = call foobarbaz(v18, v19) instead of v20 = call fn0(v18, v19)?

view this post on Zulip fitzgen (he/him) (Jan 17 2023 at 17:15):

such a feature doesn't exist right now

view this post on Zulip bjorn3 (Jan 17 2023 at 20:54):

https://github.com/bjorn3/rustc_codegen_cranelift/blob/master/src/pretty_clif.rs allows adding comments to instructions as well as the definition of several kinds of entities like imported functions.

Cranelift based backend for rustc. Contribute to bjorn3/rustc_codegen_cranelift development by creating an account on GitHub.

Last updated: Dec 23 2024 at 12:05 UTC