> > Note that contrary to ccall, if you want to return i64 you should use >> `(Int64)` rather than `(Int64,)` (comma added) because otherwise the ret >> type will be interpreted as `<1 x i64>`. > > > Isn't that the same as ccall since the return type arg to ccall is is not > a tuple?
Right, thanks for the correction. I had tried `(Int64,)` as a return type first (not realizing what the argument order was), and got LLVM errors about mismatched return type `<1 x i64>`. On Sun, Mar 22, 2015 at 4:37 PM, Stefan Karpinski <[email protected]> wrote: > 2015-03-22 20:13 GMT+01:00 Isaiah Norton <[email protected]>: > >> Note that contrary to ccall, if you want to return i64 you should use >> `(Int64)` rather than `(Int64,)` (comma added) because otherwise the ret >> type will be interpreted as `<1 x i64>`. > > > Isn't that the same as ccall since the return type arg to ccall is is not > a tuple? >
