]> granicus.if.org Git - clang/commit
Add FP_CONTRACT support for clang.
authorLang Hames <lhames@gmail.com>
Tue, 2 Oct 2012 04:45:10 +0000 (04:45 +0000)
committerLang Hames <lhames@gmail.com>
Tue, 2 Oct 2012 04:45:10 +0000 (04:45 +0000)
commitbe9af1288881110e406b87914162eaa59f1e5918
treed5dad9578b613b3a7d8e5b6612e686b76bb22203
parentd13eff6f77216a6fb25e18f600b492db4f0492e8
Add FP_CONTRACT support for clang.

Clang will now honor the FP_CONTRACT pragma and emit LLVM
fmuladd intrinsics for expressions of the form A * B + C (when they occur in a
single statement).

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@164989 91177308-0d34-0410-b5e6-96231b3b80d8
21 files changed:
include/clang/AST/Expr.h
include/clang/AST/ExprCXX.h
include/clang/Sema/Sema.h
lib/AST/ASTImporter.cpp
lib/Analysis/BodyFarm.cpp
lib/CodeGen/CGExprScalar.cpp
lib/CodeGen/CGObjC.cpp
lib/Parse/ParseStmt.cpp
lib/Rewrite/Frontend/RewriteModernObjC.cpp
lib/Rewrite/Frontend/RewriteObjC.cpp
lib/Sema/SemaDeclCXX.cpp
lib/Sema/SemaExpr.cpp
lib/Sema/SemaExprCXX.cpp
lib/Sema/SemaOverload.cpp
lib/Sema/SemaPseudoObject.cpp
lib/Sema/TreeTransform.h
lib/Serialization/ASTReaderStmt.cpp
lib/Serialization/ASTWriterStmt.cpp
test/CodeGen/ffp-contract-option.c [moved from test/CodeGen/fp-contract.c with 100% similarity]
test/CodeGen/fp-contract-pragma.cpp [new file with mode: 0644]
test/CodeGenOpenCL/single-precision-constant.cl