This is an archive of the discontinued LLVM Phabricator instance.

[OPENMP][NVPTX]Fix PR45003: add support for complex functions.
AbandonedPublic

Authored by ABataev on Feb 26 2020, 12:21 PM.

Details

Reviewers
tra
hfinkel
Summary

Inherited support for complex math functions from CUDA implementation.

Diff Detail

Event Timeline

ABataev created this revision.Feb 26 2020, 12:21 PM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 26 2020, 12:21 PM
Herald added a subscriber: guansong. · View Herald Transcript

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.

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.

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.

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.

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.

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.

ABataev abandoned this revision.Apr 20 2020, 11:31 AM