summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Add target triple to include/llvm/Config/config.h.in. Regenerate all files.Eric Christopher2007-12-013-66/+74
| | | | llvm-svn: 44478
* Change LinkTimeOptimizer.h install location.Devang Patel2007-12-011-4/+6
| | | | llvm-svn: 44477
* Change lib lto install location.Devang Patel2007-11-301-0/+9
| | | | llvm-svn: 44476
* start partitioning the diagnostics into two classes: thoseChris Lattner2007-11-3011-39/+57
| | | | | | | | that are builtin and those that are aren't. This is a bunch of API refactoring that will make this possible, but there is no functionality change yet. llvm-svn: 44473
* String literals are always valid LValues.Anders Carlsson2007-11-301-0/+1
| | | | llvm-svn: 44472
* Implemented serialization of SelectorTable and Selectors.Ted Kremenek2007-11-303-18/+115
| | | | | | | Modified serialization of IdentifierTable to self-register itself with the Deserializer. llvm-svn: 44471
* Fixed subtle bug in Deserializer::JumpTo when jumping when the block-nestingTed Kremenek2007-11-302-11/+29
| | | | | | | information matching did not exactly match the underlying stream's scoping information. llvm-svn: 44470
* Fixed potential bug where CurWord is not zeroed out in JumpToBit.Ted Kremenek2007-11-301-0/+1
| | | | llvm-svn: 44469
* pass diagnostics into the rewrite test client.Chris Lattner2007-11-304-5/+12
| | | | llvm-svn: 44468
* Do not fold reload into an instruction with multiple uses. It issues one ↵Evan Cheng2007-11-303-77/+170
| | | | | | extra load. llvm-svn: 44467
* Initialize CurMethodDecl to 0.Anders Carlsson2007-11-301-1/+1
| | | | llvm-svn: 44463
* GCC has an extension where the left hand side of the ? : operator can be ↵Anders Carlsson2007-11-304-12/+50
| | | | | | omitted. Handle this in a few more places. llvm-svn: 44462
* chain update requests properly.Chris Lattner2007-11-301-0/+3
| | | | llvm-svn: 44460
* Initialize LaxVectorConversions.Anders Carlsson2007-11-301-0/+1
| | | | llvm-svn: 44459
* Small optimization of parameter attribute lookup.Duncan Sands2007-11-301-1/+1
| | | | llvm-svn: 44458
* Add a convenience method for modifying parameterDuncan Sands2007-11-304-10/+79
| | | | | | | | attributes. While there, I noticed that not all attribute methods returned a pointer-to-constant, so I fixed that. llvm-svn: 44457
* fix a bug handling typedefs in member expr codegen. Patch Chris Lattner2007-11-302-2/+11
| | | | | | by Seo Sanghyeon llvm-svn: 44455
* Fix a codegen crash on void ?: reported by OliverChris Lattner2007-11-303-4/+19
| | | | llvm-svn: 44454
* Support fully general case expressions, patch by Sanghyeon Seo!Chris Lattner2007-11-302-1/+5
| | | | llvm-svn: 44453
* Check that there are not more attributes thanDuncan Sands2007-11-301-0/+4
| | | | | | function parameters. llvm-svn: 44452
* Doh! Check in this long overdue test fix.Christopher Lamb2007-11-301-1/+1
| | | | llvm-svn: 44450
* Support lax vector conversions.Anders Carlsson2007-11-304-3/+63
| | | | llvm-svn: 44449
* Provide a way to update DescGlobals cache directly.Devang Patel2007-11-302-1/+15
| | | | llvm-svn: 44446
* Yesterday, I simplified how we stream top-level decls.Steve Naroff2007-11-296-56/+12
| | | | | | | After a discussion with Ted, we both came to the conclusion that adding a "HandleTopLevelDeclaration" hook to ASConsumer is far more elegant. The default implementation of HandleTopLevelDeclaration will be responsible for iterating over the ScopedDecl (which has a chain of the decls:-). TODO: Once Ted adds HandleTopLevelDeclaration, make sure TagDecls are chainged appropriately... llvm-svn: 44445
* Added method "HandleTopLevelDeclaration" to ASTConsumer. This will eventuallyTed Kremenek2007-11-292-6/+40
| | | | | | | | | | | | | | | | | | | | | | | | be the new hook that ASTStreamer calls to feed top-level Decls to ASTConsumers. The difference between "HandleTopLevelDeclaration" and "HandleTopLevelDecl" is that "HandleTopLevelDecl" is currently called by ASTStreamer for every top-level declaration, including those that appear within a Decl chain. Using the new interface, ASTStreamer would only call HandleTopLevelDeclaration for Decls that appear that the beginning of a Decl chain (i.e., a group of related decls). To preserve the behavior that all subclasses of ASTConsumer currently expect, the default implementation of HandleTopLevelDeclaration simply calls HandleTopLevelDecl, and for decl chains it calls HandleTopLevelDecl for each Decl* in a chain of Decls. The advantage of this interface is that some subclasses of ASTConsumer only really want the Decl chain, and not each individual Decl passed to them. This extra level of indirection allows subclasses to override the default behavior if they so desire. llvm-svn: 44444
* Do not lose rematerialization info when spilling already split live intervals.Evan Cheng2007-11-291-14/+9
| | | | llvm-svn: 44443
* Update the initializer's type, in addition to the decl, if we've changed the ↵Christopher Lamb2007-11-291-1/+3
| | | | | | type of the decl based on it. llvm-svn: 44440
* Added "complex.c" (a copy of test/Codegen/complex.) to the serialization Ted Kremenek2007-11-291-0/+48
| | | | | | test suite. llvm-svn: 44439
* Only serialize top-level decls that appear at the head of a decl chain.Ted Kremenek2007-11-291-12/+17
| | | | llvm-svn: 44438
* Fix a miscompilation in spiff on PPC.Owen Anderson2007-11-291-1/+2
| | | | llvm-svn: 44437
* Fix a major performance issue with splitting. If there is a def (not def/use)Evan Cheng2007-11-292-64/+152
| | | | | | | | | | | | | | | in the middle of a split basic block, create a new live interval starting at the def. This avoid artifically extending the live interval over a number of cycles where it is dead. e.g. bb1: = vr1204 (use / kill) <= new interval starts and ends here. ... ... vr1204 = (new def) <= start a new interval here. = vr1204 (use) llvm-svn: 44436
* Update tests.Evan Cheng2007-11-291-1/+1
| | | | llvm-svn: 44435
* Replace the odd kill# hack with something less fragile.Evan Cheng2007-11-294-18/+22
| | | | llvm-svn: 44434
* Small parameter attributes cleanup.Duncan Sands2007-11-291-4/+6
| | | | llvm-svn: 44433
* Pass the whole StringMapEntry into StringMapEntryInitializer::Initialize.Chris Lattner2007-11-291-2/+4
| | | | llvm-svn: 44432
* Support floating point literals of the form "1e-16f" which specify an ↵Christopher Lamb2007-11-292-2/+9
| | | | | | exponent but no decimal point. llvm-svn: 44431
* provide an optional API to allow datatypes in a stringmap to be *gasp* Chris Lattner2007-11-291-7/+41
| | | | | | | initialized with a value if they want, by specializing the StringMapEntryInitializer class. llvm-svn: 44430
* Enhanced serialization testing by also pretty-printing CFGs constructed from ↵Ted Kremenek2007-11-291-0/+16
| | | | | | | | | ASTs both before and after serialization/deserialization. If the CFGs between the pre- and post- serialized/deserialized ASTs differ, the serialization has failed. llvm-svn: 44429
* Fixed various live interval splitting bugs / compile time issues.Evan Cheng2007-11-294-161/+275
| | | | llvm-svn: 44428
* Kill info update bug.Evan Cheng2007-11-291-0/+3
| | | | llvm-svn: 44427
* Fixed test case to not expect a warning when one should not be emitted.Ted Kremenek2007-11-291-5/+1
| | | | | | Removed redundant test case. llvm-svn: 44426
* Added test cases for -Wfloat-equal to test comparisons against literals that ↵Ted Kremenek2007-11-291-6/+14
| | | | | | | | | can be represented exactly and inexactly by APFloats. For the former, we do not emit a warning. llvm-svn: 44425
* Enhanced implementation of -Wfloat-equal to check for comparisons againstTed Kremenek2007-11-291-0/+18
| | | | | | | | | | floating-point literals that are represented exactly by the APFloat in FloatingLiteral. For such literals, we do not emit a warning since such checks are often performed in real code to see if a variable has changed from its original value. This heuristic clearly can lead to false negatives, but the hope is it will significantly reduce false positives to help make the compiler flag more useful. llvm-svn: 44424
* Added "isExact" field to FloatingLiteral. This flag indicates whether or notTed Kremenek2007-11-293-5/+15
| | | | | | | | the APFloat representing the parsed literal can represent the literal value exactly. This is useful when performing various semantic checks on the code, and issuing appropriate warnings to users. llvm-svn: 44423
* Removed potential buffer overrun (spotted by Neil Booth) when ↵Ted Kremenek2007-11-291-13/+8
| | | | | | | | | | | | | NumericLiteralParser converts a parsed literal into an APFloat. We are still performing a copy of the string, which hopefully will be removed eventually for performance reasons. This version now is at least safe. Changed rounding in APFloat construction in NumericLiteralParser from rmTowardsZero to rmNearestTiesToEven. llvm-svn: 44422
* Several fixes/simplifications surrounding how we stream top-level decl AST's.Steve Naroff2007-11-288-36/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The following code... typedef struct cssm_data {} CSSM_DATA, *CSSM_DATA_PTR; struct Y { int A; }; struct X { int A; } D; struct X E, F; ...now produces the following output... > ../../Debug/bin/clang xx.c -ast-print Read top-level tag decl: 'cssm_data' typedef struct cssm_data CSSM_DATA; typedef struct cssm_data *CSSM_DATA_PTR; Read top-level tag decl: 'Y' Read top-level tag decl: 'X' Read top-level variable decl: 'D' Read top-level variable decl: 'E' Read top-level variable decl: 'F' ...which is much more accurate than the previous -ast-print output... typedef struct cssm_data CSSM_DATA; typedef struct cssm_data CSSM_DATA; Read top-level variable decl: 'D' Read top-level variable decl: 'E' Read top-level variable decl: 'E' llvm-svn: 44421
* New testcase for PR1744Chris Lattner2007-11-281-0/+8
| | | | llvm-svn: 44418
* Converted AST Pretty-Printer to use iostreams instead of FILE*. This fixesTed Kremenek2007-11-283-129/+120
| | | | | | | | | a bug where the statement pretty-printer used iostreams but the AST printer did not. This was an issue when dumping ASTs to something other than stderr. Updated SerializationTest to use the new iostreams interface for the AST printer. llvm-svn: 44417
* Inlined test case to make it independent of the stmt_exprs test case in ↵Ted Kremenek2007-11-281-1/+11
| | | | | | test/Sema. llvm-svn: 44416
* Work around a GCC bug, producing this code:Chris Lattner2007-11-281-0/+6
| | | | | | | | | | | | | | unsigned char *llvm_cbe_X; ... llvm_cbe_X = 0; *((void**)&llvm_cbe_X) = __builtin_stack_save(); instead of: llvm_cbe_X = __builtin_stack_save(); See PR1809 for details. llvm-svn: 44415
OpenPOWER on IntegriCloud