aboutsummaryrefslogtreecommitdiffhomepage
path: root/zluda_dump
diff options
context:
space:
mode:
authorAndrzej Janik <[email protected]>2021-06-25 01:20:38 +0200
committerAndrzej Janik <[email protected]>2021-06-25 01:20:38 +0200
commit8ef6c3d8b600e8757ae723a55cdf9012473ac1bf (patch)
treeb83d5eb48a5d020b2d06ab0d595d234c3c966aad /zluda_dump
parente018de83aec5e25ea13aa11aa5317d6ad35250b1 (diff)
parent2e8716bf0debf5edfecd616204d0fd2864dc2f4c (diff)
downloadZLUDA-8ef6c3d8b600e8757ae723a55cdf9012473ac1bf.tar.gz
ZLUDA-8ef6c3d8b600e8757ae723a55cdf9012473ac1bf.zip
Merge branch 'one_type_type2'
Diffstat (limited to 'zluda_dump')
-rw-r--r--zluda_dump/src/lib.rs18
1 files changed, 13 insertions, 5 deletions
diff --git a/zluda_dump/src/lib.rs b/zluda_dump/src/lib.rs
index 5b00844..b5a1e3a 100644
--- a/zluda_dump/src/lib.rs
+++ b/zluda_dump/src/lib.rs
@@ -219,11 +219,19 @@ 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::MethodDecl::Kernel { name, in_args },
- ..
- }) => {
- let arg_sizes = in_args
+ 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())
.collect();