diff options
| author | Cameron Zwarich <zwarich@apple.com> | 2011-07-08 21:39:21 +0000 |
|---|---|---|
| committer | Cameron Zwarich <zwarich@apple.com> | 2011-07-08 21:39:21 +0000 |
| commit | f03fa189ca73a664fb10cf1bc8447d8453edf810 (patch) | |
| tree | e0eed8377e924c9f1a203f2999cc9df109454645 /llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp | |
| parent | 964cb5feb0885460c50ac4c0962d108cb193ba1e (diff) | |
| download | llvm-f03fa189ca73a664fb10cf1bc8447d8453edf810.zip llvm-f03fa189ca73a664fb10cf1bc8447d8453edf810.tar.gz llvm-f03fa189ca73a664fb10cf1bc8447d8453edf810.tar.bz2 | |
Add an intrinsic and codegen support for fused multiply-accumulate. The intent
is to use this for architectures that have a native FMA instruction.
llvm-svn: 134742
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp b/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp index f827f01..4a7afe4 100644 --- a/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp @@ -139,6 +139,10 @@ static void InitLibcallNames(const char **Names) { Names[RTLIB::REM_F64] = "fmod"; Names[RTLIB::REM_F80] = "fmodl"; Names[RTLIB::REM_PPCF128] = "fmodl"; + Names[RTLIB::FMA_F32] = "fmaf"; + Names[RTLIB::FMA_F64] = "fma"; + Names[RTLIB::FMA_F80] = "fmal"; + Names[RTLIB::FMA_PPCF128] = "fmal"; Names[RTLIB::POWI_F32] = "__powisf2"; Names[RTLIB::POWI_F64] = "__powidf2"; Names[RTLIB::POWI_F80] = "__powixf2"; |
