aboutsummaryrefslogtreecommitdiffhomepage
path: root/zluda_dump
diff options
context:
space:
mode:
authorAndrzej Janik <[email protected]>2021-06-11 00:00:56 +0200
committerAndrzej Janik <[email protected]>2021-06-11 00:00:56 +0200
commitf0771e1fb6bb95e3f22b8bfa3a9efd3bfe88c946 (patch)
treee9311d5bdc0a910a0f50a20e2d06262fcbf72bc2 /zluda_dump
parent994cfb338655048ac274f913582aed214102b3d9 (diff)
downloadZLUDA-f0771e1fb6bb95e3f22b8bfa3a9efd3bfe88c946.tar.gz
ZLUDA-f0771e1fb6bb95e3f22b8bfa3a9efd3bfe88c946.zip
Slightly improve stateful optimization
Diffstat (limited to 'zluda_dump')
-rw-r--r--zluda_dump/src/lib.rs21
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())