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

Method union

cranelift/codegen/src/ir/dfg.rs:1098–1103  ·  view source on GitHub ↗

Create a union of two values.

(&mut self, x: Value, y: Value)

Source from the content-addressed store, hash-verified

1096
1097 /// Create a union of two values.
1098 pub fn union(&mut self, x: Value, y: Value) -> Value {
1099 // Get the type.
1100 let ty = self.value_type(x);
1101 debug_assert_eq!(ty, self.value_type(y));
1102 self.make_value(ValueData::Union { ty, x, y })
1103 }
1104
1105 /// Get the call signature of a direct or indirect call instruction.
1106 /// Returns `None` if `inst` is not a call instruction.

Callers 3

optimize_pure_enodeMethod · 0.80
newMethod · 0.80
profiling.rsFile · 0.80

Calls 2

make_valueMethod · 0.80
value_typeMethod · 0.45

Tested by

no test coverage detected