hanchenye-llvm-project/clang
Chandler Carruth 212334f7ab Switch the X86TargetInfo object from a string representation of the
selected CPU model to the enumeration. This parses the string
representation once using a StringSwitch on SetCPU. It returns an error
for strings which are not recognized (yay!). Finally it replaces
ridiculous if-chains with switches that cover all enumerators.

The last change required adding several missing entries to the features
function. These were obvious on inspection. Yay for a pattern that gives
warnings when we miss one.

No new test cases yet, as I want to get the 64-bit errors working first.
I'll then start fleshing out the testing more. Currently I'm primarily
testing on Linux, but I'm hoping check whether there are interesting
differences on darwin before long...

llvm-svn: 140685
2011-09-28 08:55:37 +00:00
..
INPUTS Enhance the CFG construction to detect no-return destructors for 2011-09-13 06:09:01 +00:00
bindings/python Update python testcase for GNU old-style field designator warning, 2011-08-30 00:16:30 +00:00
docs Driver: Add a --working-directory option which can be used to cause the compiler 2011-09-23 20:33:41 +00:00
examples Fix examples for r140478. PR11021. 2011-09-27 18:33:47 +00:00
include Clean up a bit of the uses of CPU in the TargetInfo classes. This makes 2011-09-28 05:56:05 +00:00
lib Switch the X86TargetInfo object from a string representation of the 2011-09-28 08:55:37 +00:00
runtime Build and use libcompiler_rt whenever possible. 2011-06-22 17:41:40 +00:00
test Begin fixing Clang's predefined macros for various architectures. This 2011-09-28 02:59:25 +00:00
tools Install c-index-test as part of install-clang-c Makefile rule. 2011-09-28 04:39:41 +00:00
unittests Rename DiagnosticInfo to Diagnostic as per issue 5397 2011-09-26 01:18:08 +00:00
utils [analyzer] CmpRuns can now optionally delete empty reports. 2011-09-12 22:40:36 +00:00
www Document the incompatibility that stems from Clang properly implement 2011-09-27 18:58:27 +00:00
.gitignore Add .gitignore file. 2011-07-18 23:05:36 +00:00
CMakeLists.txt CMake: Define ${LLVM_TABLEGEN_EXE} with explicit ${CMAKE_EXECUTABLE_SUFFIX} on standalone build. Or build might fail with NMake. 2011-09-23 00:52:55 +00:00
INSTALL.txt
LICENSE.TXT My calendar says it's 2011. 2011-06-12 15:26:54 +00:00
Makefile If you download clang and delete the test directory, you can end up 2011-09-27 21:28:10 +00:00
ModuleInfo.txt
NOTES.txt Make a note about a missing optimization. 2011-07-28 07:41:22 +00:00
README.txt
TODO.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 development mailing list:
  http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev

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