Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
vchuravy and github-actions[bot] authored Mar 19, 2024
1 parent 385d582 commit 3d82861
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/compiler.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
module Compiler

import ..Enzyme
import Enzyme: Const, Active, Duplicated, DuplicatedNoNeed, BatchDuplicated, BatchDuplicatedNoNeed,
import Enzyme: Const, Active, Duplicated, DuplicatedNoNeed, BatchDuplicated,
BatchDuplicatedNoNeed,
BatchDuplicatedFunc,
Annotation, guess_activity, eltype,
API, TypeTree, typetree, TypeTreeTable, only!, shift!, data0!, merge!, to_md,
Expand Down Expand Up @@ -3062,7 +3063,8 @@ function enzyme!(job, mod, primalf, TT, mode, width, parallel, actualRetType, wr
logic = Logic()
TA = TypeAnalysis(logic, rules)

retTT = typetree((!isa(actualRetType, Union) && GPUCompiler.deserves_retbox(actualRetType)) ? Ptr{actualRetType} : actualRetType, ctx, dl, seen)
retT = (!isa(actualRetType, Union) && GPUCompiler.deserves_retbox(actualRetType)) ? Ptr{actualRetType} : actualRetType
retTT = typetree(retT, ctx, dl, seen)

typeInfo = FnTypeInfo(retTT, args_typeInfo, args_known_values)

Expand Down

0 comments on commit 3d82861

Please sign in to comment.