hanchenye-llvm-project/clang/lib
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
..
ARCMigrate When 'bool' is not a built-in type but is defined as a macro, print 2011-09-27 22:38:19 +00:00
AST Introduce Decl::getParentFunctionOrMethod which if the decl is defined inside 2011-09-28 02:45:33 +00:00
Analysis Removing a bunch of dead returns/breaks after llvm_unreachables. 2011-09-23 20:26:49 +00:00
Basic Switch the X86TargetInfo object from a string representation of the 2011-09-28 08:55:37 +00:00
CodeGen de-tmpify clang. 2011-09-27 21:06:10 +00:00
Driver Driver: Fix two bad typos that were breaking the buildbots. 2011-09-28 05:33:02 +00:00
Frontend Remove the egregious hack that made Objective-C++ ARC work with older 2011-09-27 22:48:19 +00:00
FrontendTool Eliminate the unused -create-module cc1-level option 2011-09-15 19:45:56 +00:00
Headers Tweak *mmintrin.h so that they don't make any bad assumptions about alignment (which probably has little effect in practice, but better to get it right). Make the load in _mm_loadh_pi and _mm_loadl_pi a single LLVM IR instruction to make optimizing easier for CodeGen. 2011-09-15 23:15:27 +00:00
Index Removing a bunch of dead returns/breaks after llvm_unreachables. 2011-09-23 20:26:49 +00:00
Lex Introduce a callback to PPCallbacks for lines skipped by the preprocessor. 2011-09-27 17:32:05 +00:00
Parse Revert r140589. It was causing failures during llvm compilation: 2011-09-27 10:09:33 +00:00
Rewrite When 'bool' is not a built-in type but is defined as a macro, print 2011-09-27 22:38:19 +00:00
Sema PR11002: Make sure we emit sentinel warnings with a valid source location. (Ideally, we want to use the location returned by getLocForEndOfToken, but that is not always successful.) 2011-09-27 23:46:37 +00:00
Serialization Add a comment in ASTReader::ReadPragmaDiagnosticMappings that the user bit 2011-09-26 23:06:41 +00:00
StaticAnalyzer Fix a crash in MallocOverflowSecurityChecker. Patch by Lei Zhang. 2011-09-27 22:25:01 +00:00
CMakeLists.txt The ARC Migration Tool. All the credit goes to Argyrios and Fariborz 2011-06-15 23:25:17 +00:00
Makefile The ARC Migration Tool. All the credit goes to Argyrios and Fariborz 2011-06-15 23:25:17 +00:00