Add runtime library names for pow.
authorDan Gohman <gohman@apple.com>
Thu, 11 Oct 2007 23:09:10 +0000 (23:09 +0000)
committerDan Gohman <gohman@apple.com>
Thu, 11 Oct 2007 23:09:10 +0000 (23:09 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42880 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/RuntimeLibcalls.h
lib/CodeGen/SelectionDAG/TargetLowering.cpp

index 5327d68106adae25b3ad65448f443315a3520ce3..47bb585afffab9abd09f8177a4fffcece74b75ea 100644 (file)
@@ -72,6 +72,10 @@ namespace RTLIB {
     SIN_F64,
     COS_F32,
     COS_F64,
+    POW_F32,
+    POW_F64,
+    POW_F80,
+    POW_PPCF128,
 
     // CONVERSION
     FPEXT_F32_F64,
index d55b7452ee5b300a5744920049e71c2ec8ebb659..cffb03da520668c6bf5871441d944d4f8f765d0d 100644 (file)
@@ -73,6 +73,10 @@ static void InitLibcallNames(const char **Names) {
   Names[RTLIB::SIN_F64] = "sin";
   Names[RTLIB::COS_F32] = "cosf";
   Names[RTLIB::COS_F64] = "cos";
+  Names[RTLIB::POW_F32] = "powf";
+  Names[RTLIB::POW_F64] = "pow";
+  Names[RTLIB::POW_F80] = "powl";
+  Names[RTLIB::POW_PPCF128] = "powl";
   Names[RTLIB::FPEXT_F32_F64] = "__extendsfdf2";
   Names[RTLIB::FPROUND_F64_F32] = "__truncdfsf2";
   Names[RTLIB::FPTOSINT_F32_I32] = "__fixsfsi";