Граф коммитов

2001 Коммитов

Автор SHA1 Сообщение Дата
Chris Lattner 3a57077668 simplify the lexer a bit, pulling stuff out of the default case.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@45540 91177308-0d34-0410-b5e6-96231b3b80d8
2008-01-03 17:58:54 +00:00
Fariborz Jahanian 3ba5a0f90a Patch to parse/build AST ObjC2's foreach statement.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@45539 91177308-0d34-0410-b5e6-96231b3b80d8
2008-01-03 17:55:25 +00:00
Chris Lattner c89bf69c92 fix long lines.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@45531 91177308-0d34-0410-b5e6-96231b3b80d8
2008-01-03 07:05:49 +00:00
Chris Lattner 8f925280ab Fix a crash reported by Seo Sanghyeon.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@45530 91177308-0d34-0410-b5e6-96231b3b80d8
2008-01-03 06:36:51 +00:00
Fariborz Jahanian 0196cab540 New declarations/defs for Objc2's foreach-statement. This is work in progress.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@45511 91177308-0d34-0410-b5e6-96231b3b80d8
2008-01-02 22:54:34 +00:00
Chris Lattner 529bd02aff When promoting array to pointer for argument, don't lose type qualifiers.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@45510 91177308-0d34-0410-b5e6-96231b3b80d8
2008-01-02 22:50:48 +00:00
Ted Kremenek f56dac9ae9 SimulVertex: Inverted argument order when calling the Profile method of StateTy.
SimulGraph: Inverted argument order when calling the Profile method of VertexTy
  (plus minor cleanups)


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@45508 91177308-0d34-0410-b5e6-96231b3b80d8
2008-01-02 22:20:20 +00:00
Chris Lattner efdd1574e3 Fix PR1895: a crash on an ugly gcc extension.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@45505 91177308-0d34-0410-b5e6-96231b3b80d8
2008-01-02 21:54:09 +00:00
Chris Lattner 0fc53dfc7a Compute the proper sourcerange for an CompoundLiteralExpr.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@45504 91177308-0d34-0410-b5e6-96231b3b80d8
2008-01-02 21:46:24 +00:00
Ted Kremenek 41bc5cda96 Converted state reference within SimulVertex from StateTy* to StateTy.
This is more flexible.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@45502 91177308-0d34-0410-b5e6-96231b3b80d8
2008-01-02 21:31:13 +00:00
Chris Lattner ef5a85d364 Refactor the decl printer, patch by Mike Stump!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@45497 91177308-0d34-0410-b5e6-96231b3b80d8
2008-01-02 21:04:16 +00:00
Fariborz Jahanian 0de2ae28c6 Issue diagnostic when objective-c's @interface is preceeded by a type specifier.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@45491 91177308-0d34-0410-b5e6-96231b3b80d8
2008-01-02 19:17:38 +00:00
Ted Kremenek e8599e570e Added/fixed some comments.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@45490 91177308-0d34-0410-b5e6-96231b3b80d8
2008-01-02 18:31:49 +00:00
Fariborz Jahanian 0ba0aa1460 Prevent crash on incorrect objc messaging expression.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@45489 91177308-0d34-0410-b5e6-96231b3b80d8
2008-01-02 18:09:46 +00:00
Ted Kremenek 5d5c462e41 Sprinkled 'typename' and fixed a few typos and type declaration errors to
make these headers compile.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@45488 91177308-0d34-0410-b5e6-96231b3b80d8
2008-01-02 17:45:00 +00:00
Ted Kremenek a5c999d518 Added fixme.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@45487 91177308-0d34-0410-b5e6-96231b3b80d8
2008-01-02 17:05:47 +00:00
Ted Kremenek b679fed000 Allocate vertices using a BumpPtrAllocator.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@45486 91177308-0d34-0410-b5e6-96231b3b80d8
2008-01-02 17:00:32 +00:00
Nate Begeman 4119d1aeca Allow implicit casts during arithmetic for OCUVector operations
Add codegen support and test for said casts.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@45443 91177308-0d34-0410-b5e6-96231b3b80d8
2007-12-30 02:59:45 +00:00
Nate Begeman 4288c43eab Allow splat casts for OCU vector assignments & add some comments.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@45442 91177308-0d34-0410-b5e6-96231b3b80d8
2007-12-30 01:45:55 +00:00
Nate Begeman aabbb12dcb Rename stats to print-stats to avoid conflicting with llvm's
stats statistic when clang is built as a dylib.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@45441 91177308-0d34-0410-b5e6-96231b3b80d8
2007-12-30 01:38:50 +00:00
Nate Begeman b3ab8dc7d3 Allow codegen of vector fdiv
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@45440 91177308-0d34-0410-b5e6-96231b3b80d8
2007-12-30 01:28:16 +00:00
Chris Lattner 17930d9b58 implement codegen support for most unary operators when
initializing a global.  This handles important cases like:
float foo3 = -0.01f;



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@45427 91177308-0d34-0410-b5e6-96231b3b80d8
2007-12-29 23:43:37 +00:00
Chris Lattner 0538bc56e3 remove attributions from .def files.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@45413 91177308-0d34-0410-b5e6-96231b3b80d8
2007-12-29 20:03:32 +00:00
Chris Lattner 6298b8c021 remove attribution from makefiles.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@45412 91177308-0d34-0410-b5e6-96231b3b80d8
2007-12-29 20:02:25 +00:00
Chris Lattner 0bc735ffcf Don't attribute in file headers anymore. See llvmdev for the
discussion of this change.



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@45410 91177308-0d34-0410-b5e6-96231b3b80d8
2007-12-29 19:59:25 +00:00
Christopher Lamb 5c09a02a5d Fix OCUVector case in struct layout code.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@45396 91177308-0d34-0410-b5e6-96231b3b80d8
2007-12-29 05:10:55 +00:00
Christopher Lamb 22c940ee58 Enable CodeGen for member expressions based on call expressions returning aggregate types. This enables expressions like 'foo().member.submember'.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@45395 91177308-0d34-0410-b5e6-96231b3b80d8
2007-12-29 05:02:41 +00:00
Christopher Lamb d3ba3f44ad Make MemberExpr code safe w.r.t. address spaces.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@45394 91177308-0d34-0410-b5e6-96231b3b80d8
2007-12-29 04:06:57 +00:00
Christopher Lamb 33fd5c124a Fix an error in the base/idx accessors for ArraySubscriptExpr's that crops up with vector element access.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@45390 91177308-0d34-0410-b5e6-96231b3b80d8
2007-12-28 23:43:03 +00:00
Chris Lattner 998568f24d various cleanups. Use IgnoreParenCasts instead of inlined versions.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@45382 91177308-0d34-0410-b5e6-96231b3b80d8
2007-12-28 05:38:24 +00:00
Chris Lattner fae3f1f656 unindent cases in a switch stmt, no functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@45381 91177308-0d34-0410-b5e6-96231b3b80d8
2007-12-28 05:31:15 +00:00
Chris Lattner 925e60d3fa Change Sema::ActOnCallExpr to construct the CallExpr early and put it into
and OwningPtr instead of constructing only after all of sema is done.  This
has a couple of effects:
1. it fixes memory leaks from all the error cases in sema
2. it simplifies the code significantly.

The cost of this is that the error case now new's and delete's an expr where
it did not before, but we don't care about the perf of the error case.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@45380 91177308-0d34-0410-b5e6-96231b3b80d8
2007-12-28 05:29:59 +00:00
Chris Lattner c063e43618 move file to proper place in project.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@45379 91177308-0d34-0410-b5e6-96231b3b80d8
2007-12-28 05:27:01 +00:00
Chris Lattner d18b3299de Add accessors + iterator interface.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@45378 91177308-0d34-0410-b5e6-96231b3b80d8
2007-12-28 05:25:02 +00:00
Chris Lattner bfc7930db0 From Lucas Newman:
"Here's a tiny patch that lets the clang Xcode project build in any 
location, so llvm doesn't have to be checked out in your home folder."


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@45376 91177308-0d34-0410-b5e6-96231b3b80d8
2007-12-28 00:38:23 +00:00
Chris Lattner 1e571444b9 add a file I forgot to svn add.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@45374 91177308-0d34-0410-b5e6-96231b3b80d8
2007-12-27 21:46:27 +00:00
Chris Lattner 1dc4304d65 alphabetize in project.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@45373 91177308-0d34-0410-b5e6-96231b3b80d8
2007-12-27 20:59:50 +00:00
Chris Lattner cda459ec79 use -emit-llvm-bc
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@45372 91177308-0d34-0410-b5e6-96231b3b80d8
2007-12-27 20:35:58 +00:00
Chris Lattner 6d0747d6be no need to verify this, no errors/warnings are expected.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@45371 91177308-0d34-0410-b5e6-96231b3b80d8
2007-12-27 20:31:56 +00:00
Chris Lattner 516bd467c2 Fix a crash on a top-level objc string, patch by Nico Weber
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@45370 91177308-0d34-0410-b5e6-96231b3b80d8
2007-12-27 20:29:42 +00:00
Chris Lattner cb53b361bc - Use Tok.isObjCAtKeyword instead of Tok.getIdentifierInfo()->getObjCKeywordID().
The later fails if the token is not an identifier.
 - Replace tabs with spaces.
 - Various other cleanups.

Patch by Nico Weber!


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@45368 91177308-0d34-0410-b5e6-96231b3b80d8
2007-12-27 19:57:00 +00:00
Anders Carlsson b5ce097bb7 No need to do work that the folding builder does for us.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@45361 91177308-0d34-0410-b5e6-96231b3b80d8
2007-12-26 18:20:19 +00:00
Seo Sanghyeon 9bb947adc5 Remove broken assert from CodeGen. Better check is done in Sema.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@45358 91177308-0d34-0410-b5e6-96231b3b80d8
2007-12-26 05:21:37 +00:00
Christopher Lamb 4c92b43383 Make output files binary mode for -emit-llvm-bc
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@45348 91177308-0d34-0410-b5e6-96231b3b80d8
2007-12-24 23:49:33 +00:00
Christopher Lamb 396f9fee46 Almost the best possible handling of stdin/stdout for llvm-emit-bc!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@45346 91177308-0d34-0410-b5e6-96231b3b80d8
2007-12-24 20:59:36 +00:00
Christopher Lamb 8bd848f1e8 Better handing of stdin/stdout for -emit-llvm-bc
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@45345 91177308-0d34-0410-b5e6-96231b3b80d8
2007-12-24 20:56:07 +00:00
Christopher Lamb 2d6c065fa9 Allow bitcode output to be redirected to stdout.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@45340 91177308-0d34-0410-b5e6-96231b3b80d8
2007-12-24 03:23:55 +00:00
Seo Sanghyeon fe947ad362 Implement -emit-llvm-bc option
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@45339 91177308-0d34-0410-b5e6-96231b3b80d8
2007-12-24 01:52:34 +00:00
Seo Sanghyeon ad6ebd6efc String literal in aggregate expression
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@45330 91177308-0d34-0410-b5e6-96231b3b80d8
2007-12-23 03:11:58 +00:00
Chris Lattner eb44eeeff2 remove use of alloca.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@45329 91177308-0d34-0410-b5e6-96231b3b80d8
2007-12-23 01:40:15 +00:00