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

Method map_constant

cranelift/codegen/src/inline.rs:1017–1023  ·  view source on GitHub ↗
(&mut self, constant: ir::Constant)

Source from the content-addressed store, hash-verified

1015 }
1016
1017 fn map_constant(&mut self, constant: ir::Constant) -> ir::Constant {
1018 self.allocs
1019 .constants
1020 .get(constant)
1021 .and_then(|o| o.expand())
1022 .expect("should have inlined all callee constants")
1023 }
1024
1025 fn map_immediate(&mut self, immediate: ir::Immediate) -> ir::Immediate {
1026 self.entity_map.inlined_immediate(immediate)

Callers

nothing calls this directly

Calls 3

expectMethod · 0.45
getMethod · 0.45
expandMethod · 0.45

Tested by

no test coverage detected