[all-commits] [llvm/llvm-project] e17882: [CUDA][HIP] Rename and fix `-fcuda-approx-transcen...
Yaxun (Sam) Liu via All-commits
all-commits at lists.llvm.org
Tue Jul 25 09:02:07 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: e17882430e5c243c7244dadcd0a6b5cce2219386
https://github.com/llvm/llvm-project/commit/e17882430e5c243c7244dadcd0a6b5cce2219386
Author: Yaxun (Sam) Liu <yaxun.liu at amd.com>
Date: 2023-07-25 (Tue, 25 Jul 2023)
Changed paths:
M clang/include/clang/Basic/LangOptions.def
M clang/include/clang/Driver/Options.td
M clang/lib/Driver/ToolChains/Clang.cpp
M clang/lib/Driver/ToolChains/Cuda.cpp
M clang/lib/Driver/ToolChains/HIPAMD.cpp
M clang/lib/Driver/ToolChains/HIPSPV.cpp
M clang/lib/Frontend/InitPreprocessor.cpp
M clang/lib/Headers/__clang_cuda_math.h
M clang/lib/Headers/__clang_cuda_runtime_wrapper.h
M clang/lib/Headers/__clang_hip_math.h
M clang/test/Driver/hip-macros.hip
M clang/test/Driver/hip-options.hip
M clang/test/Headers/__clang_hip_math.hip
M clang/test/Headers/nvptx_device_math_sin.c
M clang/test/Headers/nvptx_device_math_sin.cpp
M clang/test/Preprocessor/cuda-approx-transcendentals.cu
Log Message:
-----------
[CUDA][HIP] Rename and fix `-fcuda-approx-transcendentals`
Rename -fcuda-approx-transcendentals as
-fgpu-approx-transcendentals and pass it
to both device and host clang -cc1.
Fix its interaction with -ffast-math to allow
-fno-gpu-approx-transcendentals to override
the implicit -fcuda-approx-transcendentals
due to -ffast-math.
Rename the predefined macro to be
__CLANG_GPU_APPROX_TRANSCENDENTALS__.
Emit the macro for both device and host compilation.
Reviewed by: Artem Belevich, Fangrui Song
Differential Revision: https://reviews.llvm.org/D154797
More information about the All-commits
mailing list