This is an archive of the discontinued LLVM Phabricator instance.

[OpenMP][AMDGCN] Enable complex functions
ClosedPublic

Authored by pdhaliwal on Aug 23 2021, 6:13 AM.

Details

Summary

This patch enables basic complex functionality using the ocml builtins.

Diff Detail

Event Timeline

pdhaliwal created this revision.Aug 23 2021, 6:13 AM
pdhaliwal requested review of this revision.Aug 23 2021, 6:13 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 23 2021, 6:13 AM

Macros fine by me, haven't found time to look at what is going on with variant

clang/lib/Headers/openmp_wrappers/complex
20

I don't think this should be necessary - the declare variant stuff works for nvptx afaik

jdoerfert accepted this revision.Aug 23 2021, 8:21 AM

LG

clang/lib/Headers/openmp_wrappers/complex
20

You need it because the file has include guards.

This revision is now accepted and ready to land.Aug 23 2021, 8:21 AM
This revision was landed with ongoing or failed builds.Aug 24 2021, 12:10 AM
This revision was automatically updated to reflect the committed changes.