Skip to content

Commit

Permalink
Fix docs dfg
Browse files Browse the repository at this point in the history
  • Loading branch information
emhane committed Sep 2, 2024
1 parent 01332e0 commit a3c873f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/ir/src/dfg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -319,12 +319,12 @@ impl DataFlowGraph {
self.insns[insn].is_branch()
}

/// Returns `true` if `value` is an immediate.
/// Returns `true` if `value` resolves to an immediate.
pub fn is_imm(&self, value: Value) -> bool {
self.value_imm(value).is_some()
}

/// Returns `true` if `value` is a function argument.
/// Returns `true` if `value` resolves to a function argument.
pub fn is_arg(&self, value: Value) -> bool {
matches!(self.value_data(value), ValueData::Arg { .. })
}
Expand Down

0 comments on commit a3c873f

Please sign in to comment.