diff options
author | Andrzej Janik <[email protected]> | 2024-09-23 16:33:46 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2024-09-23 16:33:46 +0200 |
commit | c92abba2bb884a4dba8ca5e3df4d46a30878f27e (patch) | |
tree | 89bab98e3071aedd12f755bfde8a7c7382138ed7 /ptx/src/pass/expand_arguments.rs | |
parent | 46def3e7e09dbf4d3e7287a72bfecb73e6e429c5 (diff) | |
download | ZLUDA-c92abba2bb884a4dba8ca5e3df4d46a30878f27e.tar.gz ZLUDA-c92abba2bb884a4dba8ca5e3df4d46a30878f27e.zip |
Refactor compilation passes (#270)
The overarching goal is to refactor all passes so they are module-scoped and not function-scoped. Additionally, make improvements to the most egregiously buggy/unfit passes (so the code is ready for the next major features: linking, ftz handling) and continue adding more code to the LLVM backend
Diffstat (limited to 'ptx/src/pass/expand_arguments.rs')
-rw-r--r-- | ptx/src/pass/expand_arguments.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ptx/src/pass/expand_arguments.rs b/ptx/src/pass/expand_arguments.rs index d0c7c98..e496c75 100644 --- a/ptx/src/pass/expand_arguments.rs +++ b/ptx/src/pass/expand_arguments.rs @@ -63,9 +63,9 @@ impl<'a, 'b> FlattenArguments<'a, 'b> { } else {
return Err(TranslateError::UntypedSymbol);
};
- if state_space == ast::StateSpace::Reg || state_space == ast::StateSpace::Sreg {
+ if state_space == ast::StateSpace::Reg {
let (reg_type, reg_space) = self.id_def.get_typed(reg)?;
- if !space_is_compatible(reg_space, ast::StateSpace::Reg) {
+ if reg_space != ast::StateSpace::Reg {
return Err(error_mismatched_type());
}
let reg_scalar_type = match reg_type {
|