Inherited support for complex math functions from CUDA implementation.
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Unit Tests
Event Timeline
Comment Actions
I am unsure we need this with the proper math support. Sema patch for that is going for review today. I'll try this out soon.
Comment Actions
It has nothing to do with the math functions support. These functions are required for the definition of muldc3/divdc3/__mulsc2/__divsc3 functions emitted for the complex types. CUDA does absolutely the same.
Comment Actions
The fact that CUDA does the same is the important part here. Why should we copy it then? See https://reviews.llvm.org/D75788#change-0Ax9LSfw7OAk for working support of complex math functions in target regions without copying what cuda does but by just using it.
clang-format: please reformat the code