From f0771e1fb6bb95e3f22b8bfa3a9efd3bfe88c946 Mon Sep 17 00:00:00 2001 From: Andrzej Janik Date: Fri, 11 Jun 2021 00:00:56 +0200 Subject: Slightly improve stateful optimization --- zluda_dump/src/lib.rs | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) (limited to 'zluda_dump') 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(image: *const T) -> Option<&'static str> { fn directive_to_kernel(dir: &ast::Directive) -> Option<(String, Vec)> { 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()) -- cgit v1.2.3