mirror of
https://github.com/kmc7468/cs420.git
synced 2025-12-16 07:28:52 +00:00
Change function name
`Instruction::is_pure` -> `Instruction::has_no_side_effects`
This commit is contained in:
@@ -252,7 +252,7 @@ impl HasDtype for Instruction {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl Instruction {
|
impl Instruction {
|
||||||
pub fn is_pure(&self) -> bool {
|
pub fn has_no_side_effects(&self) -> bool {
|
||||||
!matches!(self, Self::Store { .. } | Self::Call { .. })
|
!matches!(self, Self::Store { .. } | Self::Call { .. })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user