This is an archive of the discontinued LLVM Phabricator instance.

[OpenMP][LLVM] Add math functions support to OpenMP
AbandonedPublic

Authored by gtbercea on Apr 19 2019, 11:07 AM.

Details

Summary

This patch adds rules for expanding math functions for sin and pow.

Diff Detail

Event Timeline

gtbercea created this revision.Apr 19 2019, 11:07 AM
jdoerfert added inline comments.Apr 19 2019, 1:33 PM
lib/Target/NVPTX/NVPTXISelLowering.cpp
594

The comment should go below the setOperationAction calls

gtbercea updated this revision to Diff 195917.Apr 19 2019, 2:29 PM
gtbercea edited the summary of this revision. (Show Details)
  • Fix comment.
gtbercea marked an inline comment as done.Apr 19 2019, 2:29 PM
gtbercea updated this revision to Diff 195919.Apr 19 2019, 2:30 PM
  • Add sinl.
gtbercea updated this revision to Diff 196441.Apr 24 2019, 6:55 AM
  • Add pow function to NVPTX function index.
gtbercea retitled this revision from [OpenMP][LLVM][WIP] Add math functions support to OpenMP to [OpenMP][LLVM] Add math functions support to OpenMP.Apr 25 2019, 11:07 AM
jdoerfert added inline comments.Apr 29 2019, 6:50 PM
lib/Analysis/TargetLibraryInfo.cpp
558 ↗(On Diff #196441)

I don't know what this is doing: Why do you have powX but not sinX?

gtbercea abandoned this revision.May 15 2019, 12:54 PM

Replaced by: D61399