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

Method special_param

cranelift/codegen/src/ir/function.rs:283–288  ·  view source on GitHub ↗

Find a presumed unique special-purpose function parameter value. Returns the value of the last `purpose` parameter, or `None` if no such parameter exists.

(&self, purpose: ir::ArgumentPurpose)

Source from the content-addressed store, hash-verified

281 ///
282 /// Returns the value of the last `purpose` parameter, or `None` if no such parameter exists.
283 pub fn special_param(&self, purpose: ir::ArgumentPurpose) -> Option<ir::Value> {
284 let entry = self.layout.entry_block().expect("Function is empty");
285 self.signature
286 .special_param_index(purpose)
287 .map(|i| self.dfg.block_params(entry)[i])
288 }
289
290 /// Starts collection of debug information.
291 pub fn collect_debug_info(&mut self) {

Callers 5

vmctx_addrFunction · 0.80
gen_returnMethod · 0.80
verify_global_valuesMethod · 0.80
direct_callMethod · 0.80
caller_vmctxMethod · 0.80

Calls 5

special_param_indexMethod · 0.80
expectMethod · 0.45
entry_blockMethod · 0.45
mapMethod · 0.45
block_paramsMethod · 0.45

Tested by

no test coverage detected