andykaylor wrote:

> I mean that we could lazily emit a helper function like 
> `__clang_smiths_division_double` and call it instead of emitting like twenty 
> instructions inline.

That's a reasonable suggestion. We may also want to add the ability to emit a 
helper function to handle the full range instead of calling the compiler-rt 
function when -ffreestanding has been used.

Are you aware of the PR that @jcranmer-intel posted to add intrinsics for 
complex multiplication and division 
(https://github.com/llvm/llvm-project/pull/68742)? That would allow us to move 
this problem out of the front end, which seems good.

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

Reply via email to