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

Method validate

cranelift/assembler-x64/meta/src/dsl/encoding.rs:73–79  ·  view source on GitHub ↗

Check that the encoding is valid for the given operands; this can find issues earlier, before generating any Rust code.

(&self, operands: &[Operand])

Source from the content-addressed store, hash-verified

71 /// Check that the encoding is valid for the given operands; this can find
72 /// issues earlier, before generating any Rust code.
73 pub fn validate(&self, operands: &[Operand]) {
74 match self {
75 Encoding::Rex(rex) => rex.validate(operands),
76 Encoding::Vex(vex) => vex.validate(operands),
77 Encoding::Evex(evex) => evex.validate(operands),
78 }
79 }
80
81 /// Return the opcode for this encoding.
82 pub fn opcode(&self) -> u8 {

Callers 1

instFunction · 0.45

Calls 4

findMethod · 0.45
mapMethod · 0.45
iterMethod · 0.45
kindMethod · 0.45

Tested by

no test coverage detected