Stream: cranelift

Topic: How to store to global value?


view this post on Zulip Adel Prokurov (Mar 09 2023 at 07:50):

I see that there is https://docs.rs/cranelift-codegen/latest/cranelift_codegen/ir/trait.InstBuilder.html#method.global_value method that loads the global value but how can I store something to global value?

view this post on Zulip bjorn3 (Mar 09 2023 at 10:53):

global_value returns the address of the data object. So just use load and store on the return value of global_value.


Last updated: Nov 22 2024 at 16:03 UTC