mirror of
https://github.com/kmc7468/cs420.git
synced 2025-12-15 06:58:50 +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 {
|
||||
pub fn is_pure(&self) -> bool {
|
||||
pub fn has_no_side_effects(&self) -> bool {
|
||||
!matches!(self, Self::Store { .. } | Self::Call { .. })
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user