commit | 40234a66836d9798cf215297e3ea03e5f9116de5 | [log] [tgz] |
---|---|---|
author | Nick Sarnie <nick.sarnie@intel.com> | Fri Jan 24 03:25:54 2025 +0900 |
committer | Copybara-Service <copybara-worker@google.com> | Thu Jan 23 10:30:59 2025 -0800 |
tree | d35596a4d79cd4d7705ba65a69ccac4b37b8b0af | |
parent | 2ca8287a2be5ebcc10c6f4aa93bfa471b5e0541d [diff] |
[Clang] __has_builtin should return false for aux triple builtins (#121839) Currently, `__has_builtin` will return true when passed a builtin that is only supported on the aux target. I found this when `__has_builtin` was called with an X86 builtin but the current target was SPIR-V. We should instead return false for aux builtins. --------- Signed-off-by: Sarnie, Nick <nick.sarnie@intel.com> GitOrigin-RevId: 1c28b9237382b093f477479c993c80181922ca6a
Welcome to Clang.
This is a compiler front-end for the C family of languages (C, C++ and Objective-C) which is built as part of the LLVM compiler infrastructure project.
Unlike many other compiler frontends, Clang is useful for a number of things beyond just compiling code: we intend for Clang to be host to a number of different source-level tools. One example of this is the Clang Static Analyzer.
If you're interested in more (including how to build Clang) it is best to read the relevant websites. Here are some pointers:
Information on Clang: http://clang.llvm.org/
Building and using Clang: http://clang.llvm.org/get_started.html
Clang Static Analyzer: http://clang-analyzer.llvm.org/
Information on the LLVM project: http://llvm.org/
If you have questions or comments about Clang, a great place to discuss them is on the Clang forums:
If you find a bug in Clang, please file it in the LLVM bug tracker: