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

Method global_type

cranelift/codegen/src/ir/globalvalue.rs:96–102  ·  view source on GitHub ↗

Return the type of this global.

(&self, isa: &dyn TargetIsa)

Source from the content-addressed store, hash-verified

94
95 /// Return the type of this global.
96 pub fn global_type(&self, isa: &dyn TargetIsa) -> Type {
97 match *self {
98 Self::VMContext { .. } | Self::Symbol { .. } => isa.pointer_type(),
99 Self::IAddImm { global_type, .. } | Self::Load { global_type, .. } => global_type,
100 Self::DynScaleTargetConst { .. } => isa.pointer_type(),
101 }
102 }
103}
104
105impl GlobalValueData {

Callers 5

verify_global_valuesMethod · 0.80
typecheck_specialMethod · 0.80
boundMethod · 0.80
rewriteMethod · 0.80

Calls 1

pointer_typeMethod · 0.45

Tested by

no test coverage detected