Skip to content

Commit fccbcaa

Browse files
committed
fix some more places
1 parent afbedad commit fccbcaa

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/compiler.jl

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3704,7 +3704,7 @@ function lower_convention(
37043704
metadata(sretPtr)["enzyme_inactive"] = MDNode(LLVM.Metadata[])
37053705
end
37063706

3707-
typeTree = copy(typetree(job, actualRetType, ctx, dl, seen))
3707+
typeTree = copy(typetree_total(job, actualRetType, ctx, dl, seen))
37083708
merge!(typeTree, TypeTree(API.DT_Pointer, ctx))
37093709
only!(typeTree, -1)
37103710
metadata(sretPtr)["enzyme_type"] = to_md(typeTree, ctx)
@@ -3900,7 +3900,7 @@ function lower_convention(
39003900
return_attributes(wrapper_f),
39013901
StringAttribute(
39023902
"enzyme_type",
3903-
string(typetree(actualRetType, ctx, dl, seen)),
3903+
string(typetree_total(job, actualRetType, ctx, dl, seen)),
39043904
),
39053905
)
39063906
push!(
@@ -3926,7 +3926,7 @@ function lower_convention(
39263926
return_attributes(wrapper_f),
39273927
StringAttribute(
39283928
"enzyme_type",
3929-
string(typetree(actualRetType, ctx, dl, seen)),
3929+
string(typetree_total(job, actualRetType, ctx, dl, seen)),
39303930
),
39313931
)
39323932
push!(
@@ -3955,7 +3955,7 @@ function lower_convention(
39553955
return_attributes(wrapper_f),
39563956
StringAttribute(
39573957
"enzyme_type",
3958-
string(typetree(eltype(RetActivity), ctx, dl, seen)),
3958+
string(typetree_total(job, eltype(RetActivity), ctx, dl, seen)),
39593959
),
39603960
)
39613961
push!(
@@ -3993,7 +3993,7 @@ function lower_convention(
39933993
return_attributes(wrapper_f),
39943994
StringAttribute(
39953995
"enzyme_type",
3996-
string(typetree(actualRetType, ctx, dl, seen)),
3996+
string(typetree_total(job, actualRetType, ctx, dl, seen)),
39973997
),
39983998
)
39993999
push!(
@@ -4641,7 +4641,7 @@ function GPUCompiler.compile_unhooked(output::Symbol, job::CompilerJob{<:EnzymeT
46414641
source_typ
46424642
end
46434643

4644-
ec = typetree(source_typ, ctx, dl, seen)
4644+
ec = typetree_total(job, source_typ, ctx, dl, seen)
46454645
if byref == GPUCompiler.MUT_REF || byref == GPUCompiler.BITS_REF
46464646
ec = copy(ec)
46474647
merge!(ec, TypeTree(API.DT_Pointer, ctx))
@@ -4680,7 +4680,7 @@ end
46804680
)
46814681
else
46824682
metadata(inst)["enzyme_type"] =
4683-
to_md(typetree(Ptr{Cvoid}, ctx, dl, seen), ctx)
4683+
to_md(typetree_total(job, Ptr{Cvoid}, ctx, dl, seen), ctx)
46844684
end
46854685
end
46864686
end

0 commit comments

Comments
 (0)