summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Add files to VC++ projects.Steve Naroff2008-11-133-31/+39
| | | | llvm-svn: 59262
* Add file to VC++ project.Steve Naroff2008-11-131-0/+4
| | | | llvm-svn: 59261
* Some cleanup for the implementation of built-in operatorDouglas Gregor2008-11-135-28/+72
| | | | | | candidates. Thanks to Chris for the review! llvm-svn: 59260
* Fix an obscure rewriter bug when rewriting implementations that don't have a ↵Steve Naroff2008-11-131-6/+15
| | | | | | corresponding interface (found while doing random testing on another bug). llvm-svn: 59259
* Don't forget to emit stubs for function GV's emitted in CONSTPOOL_ENTRY's.Evan Cheng2008-11-131-3/+10
| | | | llvm-svn: 59258
* LLVM can generate native code for amd64 on "Linux".Dan Gohman2008-11-131-1/+1
| | | | llvm-svn: 59257
* Fix a couple of suboptimalities in error recovery.Chris Lattner2008-11-132-8/+18
| | | | | | | | | | | | | | | | | | | 1. In the top level of ParseStatementOrDeclaration, don't eat a } if we just parsed a statement if it list there. Also, don't even bother emitting an error about a missing semicolon if the statement had a bug (an rbrace is fine). 2. In do/while parsing, don't require a 'while' to be present if the do body didn't parse. This allows us to generate a clean diagnostic for this code: t.c:1:22: error: expected expression void foo (void) { do . while (0); } ^ Thanks to Neil for pointing this out. llvm-svn: 59256
* don't highlight field name, just put a caret on it.Chris Lattner2008-11-131-2/+2
| | | | llvm-svn: 59255
* disable these two tests, they crash and take a long time to run ↵Chris Lattner2008-11-132-4/+6
| | | | | | crashreporter etc. llvm-svn: 59254
* implement a fixme :), switch to -verify mode.Chris Lattner2008-11-131-6/+6
| | | | llvm-svn: 59253
* Fix <rdar://problem/6343942> clang ObjC rewriter: crash rewriting blocks Steve Naroff2008-11-131-1/+1
| | | | | | and <rdar://problem/6344601> clang ObjC rewriter: crash passing Block parameter? llvm-svn: 59251
* Using llvm::OwningPtr<> for CurLexer and CurTokenLexer. This makes both the ↵Ted Kremenek2008-11-133-27/+21
| | | | | | ownership semantics of these objects explicit within the Preprocessor and also tightens up the code (explicit deletes not needed). llvm-svn: 59249
* Use PushIncludeMacroStack/PopMacroStack instead of manually pushing/popping ↵Ted Kremenek2008-11-131-14/+6
| | | | | | from IncludeMacroStack. This is both cleaner and makes the include stack transparently extensible. llvm-svn: 59248
* Update Xcode project.Ted Kremenek2008-11-131-0/+14
| | | | llvm-svn: 59247
* Use find_first/find_next to iterate through all the set bits in aDan Gohman2008-11-132-12/+11
| | | | | | BitVector, instead of manually testing each bit. llvm-svn: 59246
* - Revert r59229 and r59232: AllocRegion should be immutable.Ted Kremenek2008-11-133-59/+31
| | | | | | - Temporarily disabled test Analysis/array-struct.c for region store. llvm-svn: 59245
* Fix to record comparator to make it work for return values > 1.Bill Wendling2008-11-131-1/+1
| | | | llvm-svn: 59242
* Put comma in correct place for call to StructType::getBill Wendling2008-11-131-2/+4
| | | | llvm-svn: 59241
* Process array base expression of any type.Zhongxing Xu2008-11-131-0/+8
| | | | llvm-svn: 59240
* Add test for unsigned array index.Zhongxing Xu2008-11-131-0/+5
| | | | llvm-svn: 59239
* Array index might be unsigned. We have to generate a temporary signed value forZhongxing Xu2008-11-131-0/+12
| | | | | | it to be evaluated by APSInt::operators. llvm-svn: 59238
* Modify the intrinsics pattern to separate out the "return" types from theBill Wendling2008-11-1311-644/+782
| | | | | | | | | | "parameter" types. An intrinsic can now return a multiple return values like this: def add_with_overflow : Intrinsic<[llvm_i32_ty, llvm_i1_ty], [LLVMMatchType<0>, LLVMMatchType<0>]>; llvm-svn: 59237
* Add test for incomplete struct pointer.Zhongxing Xu2008-11-131-0/+9
| | | | llvm-svn: 59236
* Incomplete struct pointer can be used as a function argument.Zhongxing Xu2008-11-131-1/+7
| | | | llvm-svn: 59235
* fsub{d|s} encoding bugs.Evan Cheng2008-11-131-2/+6
| | | | llvm-svn: 59234
* Add a test case for alloca().Zhongxing Xu2008-11-131-0/+6
| | | | llvm-svn: 59233
* Lift the pointer to alloca'ed region to the pointer to its first element.Zhongxing Xu2008-11-131-1/+21
| | | | | | | This is required by some operations, e.g., *p = 1; p[0] = 1;. Also set the AllocaRegion's type during the cast. llvm-svn: 59232
* Missed a break statement.Evan Cheng2008-11-131-0/+1
| | | | llvm-svn: 59231
* Fix pre- and post-indexed load / store encoding bugs.Evan Cheng2008-11-134-70/+98
| | | | llvm-svn: 59230
* Change AllocaRegion to subclass TypedRegion. We need to know ElementRegion'sZhongxing Xu2008-11-132-31/+49
| | | | | | type when assigning to it. llvm-svn: 59229
* Refactor the code that does the type checking for intrinsics.Bill Wendling2008-11-131-115/+132
| | | | llvm-svn: 59228
* Hook up "BodyBlock", not "Block".Ted Kremenek2008-11-131-1/+1
| | | | llvm-svn: 59227
* Correctly connect 'continue' and 'break' statements in Objective-C fast ↵Ted Kremenek2008-11-131-0/+7
| | | | | | enumeration for blocks to the appropriate basic blocks. llvm-svn: 59226
* GRExprEngine/CFRefCount/GRSimpleVals: We don't do any special handling (yet) ↵Ted Kremenek2008-11-134-15/+32
| | | | | | of vector types. Add explicit checks that when we process integers that they really are scalars. llvm-svn: 59225
* Fix for crash issues with comma operators with a void first operand, and Eli Friedman2008-11-133-50/+79
| | | | | | | | | | some more bullet-proofing/enhancements for tryEvaluate. This shouldn't cause any behavior changes except for handling cases where we were crashing before and being able to evaluate a few more cases in tryEvaluate. This should settle the minor mess surrounding r59196. llvm-svn: 59224
* Obey the FIXMES!Daniel Dunbar2008-11-131-5/+1
| | | | | | | | - Resume running the always inliner pass always now that LLVM has been improved and functions with debug info can be inlined. - Remove unused header. llvm-svn: 59223
* Fix uninitialized variable.Ted Kremenek2008-11-131-1/+1
| | | | llvm-svn: 59222
* [LLVM up] Update for raw_fd_ostream change. This fixes a FIXME thatDaniel Dunbar2008-11-139-13/+12
| | | | | | | | the Backend output should be done in binary mode. - I'd appreciate it if someone who has a Windows build could verify this. llvm-svn: 59221
* GRExprEngine::VisitInitListExpr:Ted Kremenek2008-11-132-2/+10
| | | | | | | - Don't crash on vector types. - Handle typedefs. llvm-svn: 59220
* Add Binary flag to raw_fd_ostream constructor.Daniel Dunbar2008-11-134-6/+25
| | | | | | Document raw_fd_ostream's treatment of "-". llvm-svn: 59219
* Added testcase for r59214.Bill Wendling2008-11-131-0/+14
| | | | llvm-svn: 59218
* Easy IRgen improvement for bitfields, don't emit x >> 0.Daniel Dunbar2008-11-131-2/+3
| | | | | | | - Logic such as this quite possibly should be optional builder behavior. llvm-svn: 59213
* Backout of r59196, plus a new ICE test. Sorry if this is a Eli Friedman2008-11-134-52/+35
| | | | | | | | | | | | | | | | | | little rude; I figure it's cleaner to just back this out now so it doesn't get forgotten or mixed up with other checkins. The modification to isICE is simply wrong; I've added a test that the change to isICE breaks. I'm pretty sure the modification to tryEvaluate is also wrong. At the very least, there's some serious miscommunication going on here, as this is going in exactly the opposite direction of r59105. My understanding is that tryEvaluate is not supposed to care about side effects. That said, a lot of the clients to tryEvaluate are expecting it to enforce a no-side-effects policy, so we probably need another method that provides that guarantee. llvm-svn: 59212
* Supply finished flag to EmitBlock for common statements which useDaniel Dunbar2008-11-131-9/+6
| | | | | | | | | | landing pads. - Primarily a cleanliness issue instead of a performance issue (this eliminates all blocks w/o predecessors on 176.gcc/expr.c), but this also allows subsequent code to recognize it is unreachable and potentially avoid IRgen. llvm-svn: 59211
* Normalize many BasicBlock names.Daniel Dunbar2008-11-136-24/+24
| | | | | | | | | | - Use dotted notation for blocks related to a particular statement type. - Use .end for landing pads. No functionality change in NDEBUG mode. :) llvm-svn: 59210
* Revert to older checker build.Ted Kremenek2008-11-131-1/+1
| | | | llvm-svn: 59209
* Really remove all debug information.Devang Patel2008-11-131-11/+52
| | | | llvm-svn: 59208
* Add IsFinished arg to EmitBlock.Daniel Dunbar2008-11-132-2/+13
| | | | | | | | | | - Indicates that caller is done with the block and it can be dropped if it has no predecessors. Useful for callers who need to make landing pads but which may not be reached. No functionality change. llvm-svn: 59207
* Update checker build.Ted Kremenek2008-11-131-1/+1
| | | | llvm-svn: 59206
* RegeneratedBill Wendling2008-11-133-1397/+1433
| | | | llvm-svn: 59204
OpenPOWER on IntegriCloud