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?
global_value returns the address of the data object. So just use load and store on the return value of global_value.
Last updated: Dec 23 2024 at 12:05 UTC