llvm-project/clang
Joseph Huber 24849c9eb5 [Clang] Fix the wrong features being derivec in the offload packager
The offload packager embeds the features in the offloading binary when
performing LTO. This had an incorrect interaction with the
`--cuda-feature` option because we weren't deriving the features from
the CUDA toolchain arguments when it was being specified. This patch
fixes this so the features are correctly overrideen when using this
argument.

However, this brings up a question of how best to handle conflicting
target features. The user could compile many libraries with different
features, in this case we do not know which one to pick. This was not
previously a problem when we simply passed the features in from the CUDA
installation at link-link because we just defaulted to whatever was
current on the system.

Reviewed By: ye-luo

Differential Revision: https://reviews.llvm.org/D129393
2022-07-08 17:26:20 -04:00
..
bindings [OpenMP] Initial parsing and sema for 'parallel masked' construct 2022-06-16 18:01:15 -07:00
cmake [libc++] Always build c++experimental.a 2022-07-08 16:58:22 -04:00
docs [clang] Introduce -Warray-parameter 2022-07-08 22:36:05 +02:00
examples
include [clang] Introduce -Warray-parameter 2022-07-08 22:36:05 +02:00
lib [Clang] Fix the wrong features being derivec in the offload packager 2022-07-08 17:26:20 -04:00
runtime Fix running orc-rt tests with LLVM_BUILD_EXTERNAL_COMPILER_RT (again). 2022-07-05 15:20:08 -07:00
test [Clang] Fix the wrong features being derivec in the offload packager 2022-07-08 17:26:20 -04:00
tools [LinkerWrapper] Fix use of string savers and correctly pass bitcode libraries 2022-07-08 17:22:35 -04:00
unittests [clang][dataflow] Return a solution from the solver when `Constraints` are `Satisfiable`. 2022-07-07 20:21:19 +00:00
utils [RISCV][Clang] Teach RISCVEmitter to generate BitCast for pointer operands. 2022-07-05 11:02:44 +08:00
www Update references to Discourse instead of the mailing lists. 2022-07-08 11:16:47 -07:00
.clang-format
.clang-tidy
.gitignore
CMakeLists.txt Revert "[cmake] Don't export `LLVM_TOOLS_INSTALL_DIR` anymore" 2022-06-10 19:26:12 +00:00
CODE_OWNERS.TXT
INSTALL.txt
LICENSE.TXT
ModuleInfo.txt
NOTES.txt
README.txt Replace links to archived mailing lists by links to Discourse forums 2022-03-23 10:10:20 -04:00

README.txt

//===----------------------------------------------------------------------===//
// C Language Family Front-end
//===----------------------------------------------------------------------===//

Welcome to Clang.  This is a compiler front-end for the C family of languages
(C, C++, Objective-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 web sites.  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:
  https://discourse.llvm.org/c/clang/

If you find a bug in Clang, please file it in the LLVM bug tracker:
  http://llvm.org/bugs/