diff options
author | Andrzej Janik <[email protected]> | 2021-06-11 00:00:56 +0200 |
---|---|---|
committer | Andrzej Janik <[email protected]> | 2021-06-11 00:00:56 +0200 |
commit | f0771e1fb6bb95e3f22b8bfa3a9efd3bfe88c946 (patch) | |
tree | e9311d5bdc0a910a0f50a20e2d06262fcbf72bc2 /zluda_dump | |
parent | 994cfb338655048ac274f913582aed214102b3d9 (diff) | |
download | ZLUDA-f0771e1fb6bb95e3f22b8bfa3a9efd3bfe88c946.tar.gz ZLUDA-f0771e1fb6bb95e3f22b8bfa3a9efd3bfe88c946.zip |
Slightly improve stateful optimization
Diffstat (limited to 'zluda_dump')
-rw-r--r-- | zluda_dump/src/lib.rs | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/zluda_dump/src/lib.rs b/zluda_dump/src/lib.rs index f168930..ffd1498 100644 --- a/zluda_dump/src/lib.rs +++ b/zluda_dump/src/lib.rs @@ -219,15 +219,18 @@ unsafe fn to_str<T>(image: *const T) -> Option<&'static str> { fn directive_to_kernel(dir: &ast::Directive<ast::ParsedArgParams>) -> Option<(String, Vec<usize>)> { match dir { - ast::Directive::Method(ast::Function { - func_directive: - ast::MethodDeclaration { - name: ast::MethodName::Kernel(name), - input_arguments, - .. - }, - .. - }) => { + ast::Directive::Method( + _, + ast::Function { + func_directive: + ast::MethodDeclaration { + name: ast::MethodName::Kernel(name), + input_arguments, + .. + }, + .. + }, + ) => { let arg_sizes = input_arguments .iter() .map(|arg| ast::Type::from(arg.v_type.clone()).size_of()) |