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

Method memflags

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

If this is a load/store instruction, return its memory flags.

(&self)

Source from the content-addressed store, hash-verified

557
558 /// If this is a load/store instruction, return its memory flags.
559 pub fn memflags(&self) -> Option<MemFlags> {
560 match self {
561 &InstructionData::Load { flags, .. }
562 | &InstructionData::LoadNoOffset { flags, .. }
563 | &InstructionData::Store { flags, .. }
564 | &InstructionData::StoreNoOffset { flags, .. }
565 | &InstructionData::AtomicCas { flags, .. }
566 | &InstructionData::AtomicRmw { flags, .. } => Some(flags),
567 _ => None,
568 }
569 }
570
571 /// If this is a load/store instruction, resolve its memory flags to data
572 /// through the DFG.

Callers 3

memflags_dataMethod · 0.45
is_mergeable_loadFunction · 0.45
lower_to_amodeFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected