diff options
author | Andrzej Janik <[email protected]> | 2021-06-05 01:15:36 +0200 |
---|---|---|
committer | Andrzej Janik <[email protected]> | 2021-06-05 01:15:36 +0200 |
commit | 83ba70bf37a47d58d2e6e2ac808ad77bd50a029d (patch) | |
tree | ad220c8df26e3a6e1e551586d62e526bd8a34556 /ptx/src/translate.rs | |
parent | 90960fd9239b9972dfffbff6ce26ce2642ec50af (diff) | |
download | ZLUDA-83ba70bf37a47d58d2e6e2ac808ad77bd50a029d.tar.gz ZLUDA-83ba70bf37a47d58d2e6e2ac808ad77bd50a029d.zip |
Remove last uses of new_todo
Diffstat (limited to 'ptx/src/translate.rs')
-rw-r--r-- | ptx/src/translate.rs | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/ptx/src/translate.rs b/ptx/src/translate.rs index c4efe55..ecc5544 100644 --- a/ptx/src/translate.rs +++ b/ptx/src/translate.rs @@ -39,12 +39,6 @@ fn error_unreachable() -> TranslateError { TranslateError::Unreachable
}
-macro_rules! new_todo {
- () => {
- todo!()
- };
-}
-
#[derive(PartialEq, Eq, Hash, Clone)]
enum SpirvType {
Base(SpirvScalarKey),
@@ -4104,9 +4098,9 @@ fn emit_implicit_conversion( src: wide_bit_value,
dst: cv.dst,
from_type: wide_bit_type,
- from_space: new_todo!(),
+ from_space: cv.from_space,
to_type: cv.to_type.clone(),
- to_space: new_todo!(),
+ to_space: cv.to_space,
kind: ConversionKind::Default,
},
)?;
@@ -7558,7 +7552,7 @@ impl<'a> ast::MethodDeclaration<'a, spirv::Word> { ) -> impl ExactSizeIterator<Item = (spirv::Word, SpirvType)> + '_ {
let is_kernel = self.name.is_kernel();
self.input_arguments.iter().map(move |arg| {
- if !is_kernel {
+ if !is_kernel && arg.state_space != ast::StateSpace::Reg {
let spirv_type =
SpirvType::pointer_to(arg.v_type.clone(), arg.state_space.to_spirv());
(arg.name, spirv_type)
|