[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 11:08:15 PDT 2019


gtbercea created this revision.
gtbercea added reviewers: ABataev, hfinkel, caomhin.
Herald added subscribers: llvm-commits, jdoerfert, guansong, jholewinski.
Herald added a project: LLVM.

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


Repository:
  rL LLVM

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
@@ -585,6 +585,13 @@
 
   // Now deduce the information based on the above mentioned
   // actions
+  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);
+
   computeRegisterProperties(STI.getRegisterInfo());
 }
 


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


More information about the llvm-commits mailing list