Skip to content

Commit cb8d8db

Browse files
committed
reintroduce wrapper
1 parent 72b20b1 commit cb8d8db

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

src/device/intrinsics/output.jl

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,19 @@ end
126126
ret!(builder)
127127
end
128128

129-
call_function(llvm_f, Nothing, Tuple{arg_types...}, arg_exprs...)
129+
wrapper_f, wrapper_ft = create_function(T_void, param_types)
130+
131+
@dispose builder=IRBuilder() begin
132+
entry = BasicBlock(wrapper_f, "entry")
133+
position!(builder, entry)
134+
135+
# call!(builder, llvm_ft, llvm_f, collect(parameters(wrapper_f)))
136+
137+
ret!(builder)
138+
end
139+
140+
141+
call_function(wrapper_f, Nothing, Tuple{arg_types...}, arg_exprs...)
130142
end
131143
end
132144

0 commit comments

Comments
 (0)