diff --git a/ptx/src/pass/instruction_mode_to_global_mode/mod.rs b/ptx/src/pass/instruction_mode_to_global_mode/mod.rs index 5192e88..86ea659 100644 --- a/ptx/src/pass/instruction_mode_to_global_mode/mod.rs +++ b/ptx/src/pass/instruction_mode_to_global_mode/mod.rs @@ -1963,7 +1963,7 @@ fn get_modes(inst: &ast::Instruction) -> InstructionModes { ast::Instruction::Rcp { data, .. } | ast::Instruction::Sqrt { data, .. } => { InstructionModes::from_rtz_special(*data) } - | ast::Instruction::Rsqrt { data, .. } + ast::Instruction::Rsqrt { data, .. } | ast::Instruction::Ex2 { data, .. } => { let data = ast::RcpData { type_: data.type_, @@ -1972,7 +1972,7 @@ fn get_modes(inst: &ast::Instruction) -> InstructionModes { }; InstructionModes::from_rtz_special(data) }, - | ast::Instruction::Lg2 { data, .. } => { + ast::Instruction::Lg2 { data, .. } => { let data = ast::RcpData { type_: ast::ScalarType::F32, flush_to_zero: Some(data.flush_to_zero), diff --git a/ptx/src/pass/llvm/emit.rs b/ptx/src/pass/llvm/emit.rs index 58776cd..bd0160a 100644 --- a/ptx/src/pass/llvm/emit.rs +++ b/ptx/src/pass/llvm/emit.rs @@ -27,7 +27,6 @@ use std::array::TryFromSliceError; use std::convert::TryInto; use std::ffi::{CStr, NulError}; -use std::ops::Deref; use std::{i8, ptr, u64}; use super::*; @@ -2673,7 +2672,7 @@ impl<'a> MethodEmitContext<'a> { Ok(()) } - // TOOD: revisit this on gfx1250 which has native tanh support + // TODO: revisit this on gfx1250 which has native tanh support fn emit_tanh( &mut self, data: ast::ScalarType,