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: Nov 22 2024 at 16:03 UTC