Skip to content

Commit

Permalink
remove wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
tgymnich committed Sep 17, 2024
1 parent 259497d commit e9b543a
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions src/device/intrinsics/output.jl
Original file line number Diff line number Diff line change
Expand Up @@ -93,19 +93,7 @@ end
ret!(builder)
end


wrapper_f, wrapper_ft = create_function(T_void, param_types)

@dispose builder=IRBuilder() begin
entry = BasicBlock(wrapper_f, "entry")
position!(builder, entry)

call!(builder, llvm_ft, llvm_f, collect(parameters(wrapper_f)))

ret!(builder)
end

call_function(wrapper_f, Nothing, Tuple{arg_types...}, arg_exprs...)
call_function(llvm_f, Nothing, Tuple{arg_types...}, arg_exprs...)
end
end

Expand Down

0 comments on commit e9b543a

Please sign in to comment.