Stream: cranelift

Topic: Function With Name Signature


view this post on Zulip Chris Clark (Jun 17 2023 at 21:57):

I would like to hash the input names rather than using a counter, Is there any reason we couldn't modify the method or provide a different method than here, to allow for u64. https://docs.rs/cranelift-codegen/0.96.0/cranelift_codegen/ir/enum.UserFuncName.html#method.user

view this post on Zulip bjorn3 (Jun 18 2023 at 08:56):

It would increase the size of the ir. Also if you are hashing you have the risk of collisions which you need to handle somehow (like using a counter), just using a counter + a HashMap to map between the counter and full name is easier.


Last updated: Dec 23 2024 at 13:07 UTC