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

Method typeset_offset

cranelift/codegen/src/ir/instructions.rs:751–758  ·  view source on GitHub ↗

Get the offset into `TYPE_SETS` for the controlling type variable. Returns `None` if the instruction is not polymorphic.

(self)

Source from the content-addressed store, hash-verified

749 /// Get the offset into `TYPE_SETS` for the controlling type variable.
750 /// Returns `None` if the instruction is not polymorphic.
751 fn typeset_offset(self) -> Option<usize> {
752 let offset = usize::from(self.typeset_offset);
753 if offset < TYPE_SETS.len() {
754 Some(offset)
755 } else {
756 None
757 }
758 }
759
760 /// Get the offset into OPERAND_CONSTRAINTS where the descriptors for this opcode begin.
761 fn constraint_offset(self) -> usize {

Callers 1

ctrl_typesetMethod · 0.80

Calls 2

fromFunction · 0.85
lenMethod · 0.45

Tested by

no test coverage detected