MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / create_global_value

Method create_global_value

cranelift/codegen/src/ir/function.rs:256–258  ·  view source on GitHub ↗

Declares a global value accessible to the function.

(&mut self, data: GlobalValueData)

Source from the content-addressed store, hash-verified

254
255 /// Declares a global value accessible to the function.
256 pub fn create_global_value(&mut self, data: GlobalValueData) -> GlobalValue {
257 self.global_values.push(data)
258 }
259
260 /// Find the global dyn_scale value associated with given DynamicType.
261 pub fn get_dyn_scale(&self, ty: DynamicType) -> GlobalValue {

Callers 1

dynamic_stack_slotFunction · 0.45

Calls 1

pushMethod · 0.45

Tested by 1

dynamic_stack_slotFunction · 0.36