MCPcopy Create free account
hub / github.com/Amanieu/regalloc3 / Operand

Class Operand

src/function.rs:325–335  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

323// Packing so that the overall size is 6 bytes instead of 8.
324#[repr(Rust, packed(2))]
325pub struct Operand {
326 /// `OperandKind` encoded in 32 bits:
327 ///
328 /// kind:3 unused:1 value:28
329 kind: u32,
330
331 /// `OperandConstraint` encoded in 16 bits:
332 ///
333 /// type:2 unused:2 index:12
334 constraint: u16,
335}
336
337impl Operand {
338 /// Constructs a new operand.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected