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

Method use_constant

cranelift/codegen/src/machinst/lower.rs:1704–1706  ·  view source on GitHub ↗

Indicate that a constant should be emitted.

(&mut self, constant: VCodeConstantData)

Source from the content-addressed store, hash-verified

1702
1703 /// Indicate that a constant should be emitted.
1704 pub fn use_constant(&mut self, constant: VCodeConstantData) -> VCodeConstant {
1705 self.vcode.constants().insert(constant)
1706 }
1707}
1708
1709#[cfg(test)]

Callers 9

ishl_i8x16_mask_tableMethod · 0.80
ushr_i8x16_mask_tableMethod · 0.80
shuffle_0_31_maskMethod · 0.80
shuffle_0_15_maskMethod · 0.80
shuffle_16_31_maskMethod · 0.80
perm_from_maskMethod · 0.80

Calls 2

insertMethod · 0.45
constantsMethod · 0.45

Tested by

no test coverage detected