Use FPContractModeKind universally
FPContractModeKind is the codegen option flag which is already ternary (off, on, fast). This makes it universally the type for the contractable info across the front-end: * In FPOptions (i.e. in the Sema + in the expression nodes). * In LangOpts::DefaultFPContractMode which is the option that initializes FPOptions in the Sema. Another way to look at this change is that before fp-contractable on/off were the only states handled to the front-end: * For "on", FMA folding was performed by the front-end * For "fast", we simply forwarded the flag to TargetOptions to handle it in LLVM Now off/on/fast are all exposed because for fast we will generate fast-math-flags during CodeGen. This is toward moving fp-contraction=fast from an LLVM TargetOption to a FastMathFlag in order to fix PR25721. Differential Revision: https://reviews.llvm.org/D31167 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@299027 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- include/clang/AST/Expr.h 3 additions, 3 deletionsinclude/clang/AST/Expr.h
- include/clang/AST/ExprCXX.h 3 additions, 1 deletioninclude/clang/AST/ExprCXX.h
- include/clang/Basic/LangOptions.def 2 additions, 1 deletioninclude/clang/Basic/LangOptions.def
- include/clang/Basic/LangOptions.h 25 additions, 6 deletionsinclude/clang/Basic/LangOptions.h
- include/clang/Frontend/CodeGenOptions.def 0 additions, 2 deletionsinclude/clang/Frontend/CodeGenOptions.def
- include/clang/Frontend/CodeGenOptions.h 0 additions, 6 deletionsinclude/clang/Frontend/CodeGenOptions.h
- lib/CodeGen/BackendUtil.cpp 4 additions, 4 deletionslib/CodeGen/BackendUtil.cpp
- lib/CodeGen/CGExprScalar.cpp 1 addition, 6 deletionslib/CodeGen/CGExprScalar.cpp
- lib/Frontend/CompilerInvocation.cpp 16 additions, 17 deletionslib/Frontend/CompilerInvocation.cpp
- lib/Sema/SemaAttr.cpp 6 additions, 3 deletionslib/Sema/SemaAttr.cpp
Loading
Please register or sign in to comment