Change function name

`Instruction::is_pure` -> `Instruction::has_no_side_effects`
This commit is contained in:
Minseong Jang
2022-05-02 19:31:18 +09:00
parent cf9893fbc3
commit 64124bb68d

View File

@@ -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 { .. })
}
}