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

Method is_immediate

cranelift/codegen/meta/src/cdsl/operands.rs:78–83  ·  view source on GitHub ↗

Returns true if the operand has an immediate kind.

(&self)

Source from the content-addressed store, hash-verified

76
77 /// Returns true if the operand has an immediate kind.
78 pub fn is_immediate(&self) -> bool {
79 matches!(
80 self.kind.fields,
81 OperandKindFields::ImmEnum(_) | OperandKindFields::ImmValue
82 )
83 }
84}
85
86pub type EnumValues = HashMap<&'static str, &'static str>;

Callers 1

gen_inst_builderFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected