summaryrefslogtreecommitdiffstats
path: root/clang/lib/Basic
Commit message (Collapse)AuthorAgeFilesLines
* Fixed pr20314-2.c failure, added E, F, p constraint letters.John Thompson2010-09-211-0/+4
| | | | llvm-svn: 114490
* Added '|' delimiter to separate inline asm multiple alternative constraints ↵John Thompson2010-09-181-2/+1
| | | | | | for Clang side of support. llvm-svn: 114253
* Fix Windows64 target info so pointer arithmetic is done correctly, and no ↵Cameron Esfahani2010-09-151-0/+3
| | | | | | sign extension code is emitted: PtrDiffType needs to be a signed long long. Add a corresponding test case. llvm-svn: 113910
* Revert "CMake: Update to use standard CMake dependency tracking facilities ↵Michael J. Spencer2010-09-131-18/+13
| | | | | | | | | | | | | instead" This reverts commit r113631 Conflicts: CMakeLists.txt lib/CodeGen/CMakeLists.txt llvm-svn: 113817
* CMake: Update to use standard CMake dependency tracking facilities insteadMichael J. Spencer2010-09-101-13/+18
| | | | | | of whatever we were using before... llvm-svn: 113631
* Allow 'o' and 'V' as constraints for output asm operands.Dale Johannesen2010-09-071-3/+9
| | | | | | Allow '<' and '>' as constraints for input or output. llvm-svn: 113246
* Add symantic support for the Pascal calling convention viaDawn Perchik2010-09-031-1/+3
| | | | | | | "__attribute((pascal))" or "__pascal" (and "_pascal" under -fborland-extensions). Support still needs to be added to llvm. llvm-svn: 112939
* Add support for windows x86-64 varargs, patch by Cameron Esfahani!Chris Lattner2010-08-311-0/+3
| | | | llvm-svn: 112603
* Fix a typo.Dan Gohman2010-08-261-1/+1
| | | | llvm-svn: 112219
* Add some missing X86-specific asm constraint letters, and fixDale Johannesen2010-08-241-4/+18
| | | | | | | some bugs in setting allowsRegister on the ones there. 8348447. llvm-svn: 111980
* fix PR7953 - Windows filename are case insensitive:Chris Lattner2010-08-231-0/+4
| | | | | | | | | | | | | | | | #pragma once wasn't working on win32 if the header file was included using a different case. I tracked down the problem to the fact that clang::FileManager was caching files using case sensitive string (UniqueFiles) on Windows. I changed FileManager to cache filename in lower case only. Doesn't affect UNIX because UNIX uses Inode to uniquely identify files. unix doesn't use this codepath. Analysis and patch by Francois Pichet! llvm-svn: 111866
* Detabify.Eli Friedman2010-08-221-1/+1
| | | | llvm-svn: 111768
* The ARM C++ ABI is sufficiently different from the Itanium C++ ABI thatJohn McCall2010-08-212-1/+7
| | | | | | | it deserves its own enumerator. Obviously the implementations should closely follow the Itanium ABI except in cases of divergence. llvm-svn: 111749
* More PCH -> AST renaming.Sebastian Redl2010-08-182-2/+2
| | | | llvm-svn: 111472
* Simplify FixItHint by eliminated the unnecessary InsertionLocDouglas Gregor2010-08-181-9/+1
| | | | | | location. Patch by Eelis van der Weegen! llvm-svn: 111362
* Check whether errors should be included in the diagnostic counts. Previously,Chandler Carruth2010-08-181-5/+7
| | | | | | only warnings did this check. llvm-svn: 111355
* Get rid of pretty non-ASCII quotes.Sebastian Redl2010-08-171-2/+2
| | | | llvm-svn: 111316
* apparently msvc defines _STDCALL_SUPPORTED, so we shouldChris Lattner2010-08-171-0/+1
| | | | | | too. Patch by Per Linden! llvm-svn: 111236
* Remove dead code, caught by unused function warnings.Argyrios Kyrtzidis2010-08-151-3/+0
| | | | llvm-svn: 111091
* Fix oversight with symbolic names in TargetInfo::validateInputConstraint.Eli Friedman2010-08-111-0/+1
| | | | llvm-svn: 110870
* -Make TokenID of IdentifierInfo read-only, remove setTokenID().Argyrios Kyrtzidis2010-08-111-4/+3
| | | | | | | | -There are 2 instances that change the TokenID for GNU libstdc++ 4.2 compatibility. To handler those cases introduce a RevertedTokenID bitfield, RevertTokenIDToIdentifier() and hasRevertedTokenIDToIdentifier() methods. Store the bitfield in PCH. llvm-svn: 110868
* ARM: Recognize single precision float register names.Daniel Dunbar2010-08-111-1/+11
| | | | | | | - We don't recognize double or NEON register names yet -- we don't have the infrastructure to generate the right clobbers for them. llvm-svn: 110775
* ARM: Swap which registers we consider real / aliases to match LLVM and llvm-gcc.Daniel Dunbar2010-08-111-6/+5
| | | | llvm-svn: 110774
* Fix for pr7869, inline asm mult-alt constraints.John Thompson2010-08-111-5/+3
| | | | llvm-svn: 110764
* Slightly revised handling of mult-alt constraints, to avoid an assert, until ↵John Thompson2010-08-101-4/+16
| | | | | | we have the full fix. llvm-svn: 110706
* Define _INTEGRAL_MAX_BITS for the win32 and win64 targets, from Per Lindén!Douglas Gregor2010-08-061-0/+2
| | | | llvm-svn: 110442
* fix the va_list definition for vc++64, patch by Cameron Esfahani!Chris Lattner2010-08-051-3/+0
| | | | llvm-svn: 110370
* Add -mavx and -mno-avx command line supportBruno Cardoso Lopes2010-08-041-2/+18
| | | | llvm-svn: 110265
* PR7777: Set EnabledByDefault to something useful, instead of setting itEli Friedman2010-08-011-1/+1
| | | | | | | randomly. This makes us consistently show "-pedantic" as the warning option for a warning where appropriate. llvm-svn: 109987
* Implement dependency analysis for the precompiled preamble. If any ofDouglas Gregor2010-07-311-16/+17
| | | | | | | the files in the precompiled preamble have changed since it was build, force the preamble to be rebuilt. llvm-svn: 109937
* Make macro weirdness in chained PCH work. This required changing the way ↵Sebastian Redl2010-07-301-0/+1
| | | | | | PCHReader and PCHWriter are initialized to correctly pick up all initializer. On the upside, this means that there is far less repetition in the dependent PCH now. llvm-svn: 109823
* Add a test case for tentative definitions in chained PCH. Fix a bug that ↵Sebastian Redl2010-07-281-1/+4
| | | | | | completely messed up source locations and thus caused a crash whenever a diagnostic was emitted in chained PCH files. llvm-svn: 109660
* When remapping a virtual file, also make an entry for the file withDouglas Gregor2010-07-261-0/+12
| | | | | | | its absolute path on disk. Also, introduce a fun test for the precompiled preamble, which almost works... llvm-svn: 109470
* Introduce basic support for loading a precompiled preamble whileDouglas Gregor2010-07-261-11/+14
| | | | | | | | | | | | | | | | | | | | | | | reparsing an ASTUnit. When saving a preamble, create a buffer larger than the actual file we're working with but fill everything from the end of the preamble to the end of the file with spaces (so the lexer will quickly skip them). When we load the file, create a buffer of the same size, filling it with the file and then spaces. Then, instruct the lexer to start lexing after the preamble, therefore continuing the parse from the spot where the preamble left off. It's now possible to perform a simple preamble build + parse (+ reparse) with ASTUnit. However, one has to disable a bunch of checking in the PCH reader to do so. That part isn't committed; it will likely be handled with some other kind of flag (e.g., -fno-validate-pch). As part of this, fix some issues with null termination of the memory buffers created for the preamble; we were trying to explicitly NULL-terminate them, even though they were also getting implicitly NULL terminated, leading to excess warnings about NULL characters in source files. llvm-svn: 109445
* Fix namespace polution.Dan Gohman2010-07-261-0/+4
| | | | llvm-svn: 109440
* Wrap bit mangling logic for DiagMappings in its own class so it doesn't leakBenjamin Kramer2010-07-251-5/+2
| | | | | | into other code. Make it an array instead of a constant-length vector. llvm-svn: 109384
* Catch thinko that Daniel Dunbar found.Nate Begeman2010-07-211-0/+1
| | | | llvm-svn: 109023
* Fix win64 compilation of constants like 0xFFFFFFFFFFFFFFFFULLNate Begeman2010-07-211-1/+3
| | | | | | intmax_t is __int64 (long long to clang), per VS 2010 stdint.h llvm-svn: 108980
* Introduce a new libclang API, clang_reparseTranslationUnit(), whichDouglas Gregor2010-07-191-26/+31
| | | | | | | | reparses an already-parsed translation unit. At the moment it's just a convenience function, but we hope to use it for performance optimizations. llvm-svn: 108756
* BUILD_ARCHIVE is the default for libraries, no need to set it.Chris Lattner2010-07-181-1/+0
| | | | llvm-svn: 108633
* Add builtin definition for scanf, including extending the builtin encoding toTed Kremenek2010-07-161-0/+20
| | | | | | | | | | represent builtins that have the "scanf" attribution (via the format attribute) just like we do with printf functions. Follow-up work is needed to add similar support for fscanf et al. This is to support format-string checking for scanf functions. llvm-svn: 108499
* CodeGen/ObjC/NeXT: Fix Obj-C message send to match llvm-gcc when choosingDaniel Dunbar2010-07-142-0/+11
| | | | | | | | whether to use objc_msgSend_fpret; the choice is target dependent, not Obj-C ABI dependent. - <rdar://problem/8139758> arm objc _objc_msgSend_fpret bug llvm-svn: 108379
* Pass StringRefs by value.Benjamin Kramer2010-07-141-2/+2
| | | | llvm-svn: 108375
* Hack for dealing with commas until we support multiple alternative ↵John Thompson2010-07-091-0/+4
| | | | | | constraints, per pr7338. llvm-svn: 108028
* Revert 107953, remove comma ignoring from PPC constraints.John Thompson2010-07-091-2/+0
| | | | llvm-svn: 107956
* Updating PPC target to ignore commas in asm contrains, as apparently that is ↵John Thompson2010-07-091-0/+2
| | | | | | what gcc does. llvm-svn: 107953
* add driver support for minix, patch by Kees van ReeuwijkChris Lattner2010-07-071-0/+26
| | | | | | from PR7583 llvm-svn: 107788
* Translate numbers properly.Eric Christopher2010-06-251-1/+1
| | | | llvm-svn: 106873
* Fixed another double-char in PPC-specific asm constraints.John Thompson2010-06-251-2/+6
| | | | llvm-svn: 106812
* Added PPC-specific asm constraints, PS3 configuration changes.John Thompson2010-06-241-2/+91
| | | | llvm-svn: 106806
OpenPOWER on IntegriCloud