[all-commits] [llvm/llvm-project] 8a8d70: Fix how cc1 command line options are mapped into F...
John McCall via All-commits
all-commits at lists.llvm.org
Mon Jun 1 19:00:49 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 8a8d703be0986dd6785cba0b610c9c4708b83e89
https://github.com/llvm/llvm-project/commit/8a8d703be0986dd6785cba0b610c9c4708b83e89
Author: John McCall <rjmccall at apple.com>
Date: 2020-06-01 (Mon, 01 Jun 2020)
Changed paths:
M clang/include/clang/Basic/CodeGenOptions.def
M clang/include/clang/Basic/LangOptions.h
M clang/lib/CodeGen/BackendUtil.cpp
M clang/lib/CodeGen/CGCall.cpp
M clang/lib/CodeGen/CGExprScalar.cpp
M clang/lib/CodeGen/CodeGenFunction.cpp
M clang/lib/CodeGen/CodeGenFunction.h
M clang/lib/Frontend/CompilerInvocation.cpp
M clang/test/CodeGen/builtins-nvptx-ptx60.cu
M clang/test/CodeGen/complex-math.c
A clang/test/CodeGen/fp-options-to-fast-math-flags.c
M clang/test/CodeGen/libcalls.c
M clang/test/CodeGenCUDA/builtins-amdgcn.cu
M clang/test/CodeGenCUDA/library-builtin.cu
M clang/test/CodeGenOpenCL/relaxed-fpmath.cl
Log Message:
-----------
Fix how cc1 command line options are mapped into FP options.
Canonicalize on storing FP options in LangOptions instead of
redundantly in CodeGenOptions. Incorporate -ffast-math directly
into the values of those LangOptions rather than considering it
separately when building FPOptions. Build IR attributes from
those options rather than a mix of sources.
We should really simplify the driver/cc1 interaction here and have
the driver pass down options that cc1 directly honors. That can
happen in a follow-up, though.
Patch by Michele Scandale!
https://reviews.llvm.org/D80315
More information about the All-commits
mailing list