[all-commits] [llvm/llvm-project] cefe47: [clang] Fix __has_builtin
Yaxun (Sam) Liu via All-commits
all-commits at lists.llvm.org
Thu May 19 08:35:27 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: cefe472c51fbcd1aed4d4a090709f25a12a8bc2c
https://github.com/llvm/llvm-project/commit/cefe472c51fbcd1aed4d4a090709f25a12a8bc2c
Author: Yaxun (Sam) Liu <yaxun.liu at amd.com>
Date: 2022-05-19 (Thu, 19 May 2022)
Changed paths:
M clang/include/clang/Basic/Builtins.h
A clang/lib/Basic/BuiltinTargetFeatures.h
M clang/lib/Basic/Builtins.cpp
M clang/lib/CodeGen/CodeGenFunction.cpp
M clang/lib/CodeGen/CodeGenFunction.h
M clang/lib/Lex/PPMacroExpansion.cpp
M clang/test/Preprocessor/feature_tests.c
A clang/test/Preprocessor/hash_builtin.cpp
M clang/unittests/CodeGen/CheckTargetFeaturesTest.cpp
Log Message:
-----------
[clang] Fix __has_builtin
Fix __has_builtin to return 1 only if the requested target features
of a builtin are enabled by refactoring the code for checking
required target features of a builtin and use it in evaluation
of __has_builtin.
Reviewed by: Artem Belevich
Differential Revision: https://reviews.llvm.org/D125829
More information about the All-commits
mailing list