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

Method conversion_constructor

cranelift/codegen/meta/src/gen_asm.rs:333–344  ·  view source on GitHub ↗

Returns the constructor used to convert an `AssemblerOutput` into the type returned by [`Self::result_ty`].

(&self)

Source from the content-addressed store, hash-verified

331 /// Returns the constructor used to convert an `AssemblerOutput` into the
332 /// type returned by [`Self::result_ty`].
333 fn conversion_constructor(&self) -> &'static str {
334 match self {
335 IsleConstructor::NoReturnSideEffect | IsleConstructor::RetMemorySideEffect => {
336 "defer_side_effect"
337 }
338 IsleConstructor::RetGpr => "emit_ret_gpr",
339 IsleConstructor::RetXmm => "emit_ret_xmm",
340 IsleConstructor::RetValueRegs => "emit_ret_value_regs",
341 IsleConstructor::ProducesFlagsSideEffect => "asm_produce_flags_side_effect",
342 IsleConstructor::ConsumesFlagsReturnsGpr => "asm_consumes_flags_returns_gpr",
343 }
344 }
345
346 /// Returns the suffix used in the ISLE constructor name.
347 fn suffix(&self) -> &'static str {

Callers 1

generate_isle_inst_declsFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected