sbc100 wrote:

> My thought is that it returns the return value. If one of the signatures 
> matches it sets `*success = 1` otherwise it sets `*success = 0`. It probably 
> can be written in terms of `__builtin_wasm_test_function_pointer_signature` 
> with C++ templates but lot of projects I contribute to (e.g., Python) are 
> written in C and not C++ so that's a bit inconvenient.

How would it work for functions that return different types?   i.e. how would 
`__builtin_wasm_test_function_pointer_signature` be polymorphic?

https://github.com/llvm/llvm-project/pull/150201
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to