[PATCH] D60905: [OpenMP][LLVM][WIP] Add math functions support to OpenMP

Gheorghe-Teodor Bercea via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 19 14:32:00 PDT 2019


gtbercea updated this revision to Diff 195919.
gtbercea added a comment.

- Add sinl.


Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D60905/new/

https://reviews.llvm.org/D60905

Files:
  lib/Target/NVPTX/NVPTXISelLowering.cpp


Index: lib/Target/NVPTX/NVPTXISelLowering.cpp
===================================================================
--- lib/Target/NVPTX/NVPTXISelLowering.cpp
+++ lib/Target/NVPTX/NVPTXISelLowering.cpp
@@ -583,6 +583,14 @@
   // No FEXP2, FLOG2.  The PTX ex2 and log2 functions are always approximate.
   // No FPOW or FREM in PTX.
 
+  setOperationAction(ISD::FPOW,              MVT::f32,   Expand);
+  setOperationAction(ISD::FPOW,              MVT::f64,   Expand);
+  setOperationAction(ISD::FPOW,              MVT::f80,   Expand);
+
+  setOperationAction(ISD::FSIN,              MVT::f32,   Expand);
+  setOperationAction(ISD::FSIN,              MVT::f64,   Expand);
+  setOperationAction(ISD::FSIN,              MVT::f80,   Expand);
+
   // Now deduce the information based on the above mentioned
   // actions
   computeRegisterProperties(STI.getRegisterInfo());


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D60905.195919.patch
Type: text/x-patch
Size: 867 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190419/9d9cd3a3/attachment.bin>


More information about the llvm-commits mailing list