diff --git a/ptx/src/pass/convert_to_stateful_memory_access.rs b/ptx/src/pass/convert_to_stateful_memory_access.rs
index 61b31ad..ad4b473 100644
--- a/ptx/src/pass/convert_to_stateful_memory_access.rs
+++ b/ptx/src/pass/convert_to_stateful_memory_access.rs
@@ -475,7 +475,7 @@ fn convert_to_stateful_memory_access_postprocess(
let (old_operand_type, old_operand_space, _) = id_defs.get_typed(operand)?;
let converting_id = id_defs
.register_intermediate(Some((old_operand_type.clone(), old_operand_space)));
- let kind = if state_is_compatible(new_operand_space, ast::StateSpace::Reg) {
+ let kind = if space_is_compatible(new_operand_space, ast::StateSpace::Reg) {
ConversionKind::Default
} else {
ConversionKind::PtrToPtr
diff --git a/ptx/src/pass/expand_arguments.rs b/ptx/src/pass/expand_arguments.rs
index bc01ab0..d0c7c98 100644
--- a/ptx/src/pass/expand_arguments.rs
+++ b/ptx/src/pass/expand_arguments.rs
@@ -65,7 +65,7 @@ impl<'a, 'b> FlattenArguments<'a, 'b> {
};
if state_space == ast::StateSpace::Reg || state_space == ast::StateSpace::Sreg {
let (reg_type, reg_space) = self.id_def.get_typed(reg)?;
- if !state_is_compatible(reg_space, ast::StateSpace::Reg) {
+ if !space_is_compatible(reg_space, ast::StateSpace::Reg) {
return Err(error_mismatched_type());
}
let reg_scalar_type = match reg_type {
diff --git a/ptx/src/pass/insert_implicit_conversions.rs b/ptx/src/pass/insert_implicit_conversions.rs
index baf3453..0dce598 100644
--- a/ptx/src/pass/insert_implicit_conversions.rs
+++ b/ptx/src/pass/insert_implicit_conversions.rs
@@ -127,7 +127,22 @@ fn default_implicit_conversion(
(operand_space, operand_type): (ast::StateSpace, &ast::Type),
(instruction_space, instruction_type): (ast::StateSpace, &ast::Type),
) -> Result