llvm-project/clang
Rainer Orth bf3714884a [clang][Driver] Handle SPARC -mcpu=native etc.
To make use of SPARC support in `getHostCPUName` as implemented by D130272
<https://reviews.llvm.org/D130272>, this patch uses it to handle
`-mcpu=native` and `-mtune=native`.  To match GCC, this patch rejects
`-march` instead of silently treating it as a no-op.

Tested on `sparcv9-sun-solaris2.11` and checking that those options are
passed on as `-target-cpu` resp. `-tune-cpu` as expected.

Differential Revision: https://reviews.llvm.org/D130273
2022-07-29 09:27:09 +02:00
..
bindings [clang] Implement ElaboratedType sugaring for types written bare 2022-07-27 11:10:54 +02:00
cmake [CMake][Fuchsia] Enable assertions and backtraces in stage 1 build 2022-07-26 06:09:38 +00:00
docs [Clang] Diagnose ill-formed constant expression when setting a non fixed enum to a value outside the range of the enumeration values 2022-07-28 15:27:50 -07:00
examples
include [C++20] [Modules] Merge same concept decls in global module fragment 2022-07-29 10:50:27 +08:00
lib [clang][Driver] Handle SPARC -mcpu=native etc. 2022-07-29 09:27:09 +02:00
runtime Fix running orc-rt tests with LLVM_BUILD_EXTERNAL_COMPILER_RT (again). 2022-07-05 15:20:08 -07:00
test [clang][Driver] Handle SPARC -mcpu=native etc. 2022-07-29 09:27:09 +02:00
tools [clang-repl] Support destructors of global objects. 2022-07-29 02:38:40 +09:00
unittests [clang-format] Handle Verilog attributes 2022-07-29 00:38:30 +00:00
utils [Docs] Fix column ordering on clang attribute docs 2022-07-27 21:36:43 -05:00
www [Clang] Diagnose ill-formed constant expression when setting a non fixed enum to a value outside the range of the enumeration values 2022-07-28 15:27:50 -07:00
.clang-format
.clang-tidy
.gitignore
CMakeLists.txt [clang][lld][cmake] Simplify header dirs 2022-07-28 19:36:40 -04:00
CODE_OWNERS.TXT
INSTALL.txt
LICENSE.TXT
ModuleInfo.txt
NOTES.txt
README.txt

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/