]>
granicus.if.org Git - clang/log
Chris Lattner [Wed, 12 Dec 2007 07:56:42 +0000 (07:56 +0000)]
more cleanups changing things like getInstanceVariables to iterators.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44930
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 12 Dec 2007 07:46:12 +0000 (07:46 +0000)]
resolve some fixmes and clean up some code by eliminating the get*Vars apis to some classes and use iterators instead.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44927
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 12 Dec 2007 07:30:05 +0000 (07:30 +0000)]
start cleaning up interfaces for objc bits and pieces by switching to an
iterator interface.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44926
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 12 Dec 2007 07:09:47 +0000 (07:09 +0000)]
split objc pieces of SemaDecl.cpp out into SemaDeclObjC.cpp
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44925
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Wed, 12 Dec 2007 06:59:42 +0000 (06:59 +0000)]
Added back VisitDeclStmt() to the StmtDumper, essentially reverting r44920:
http://llvm.org/viewvc/llvm-project?rev=44920&view=rev
Putting VisitDeclStmt() was motivated because it called DumpDeclarator(),
which printed out a little bit more information than just using the
child_iterator interface to visit the subexpressions of DeclStmt. To avoid
printing the initializers twice, DumpSubTree() now specially checks for
DeclStmts; in such cases it calls VisitDeclStmt() without using the
child_iterators to visit the subexpressions.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44924
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 12 Dec 2007 06:56:32 +0000 (06:56 +0000)]
move function to a more logical location, add its grammar productions.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44923
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 12 Dec 2007 06:54:22 +0000 (06:54 +0000)]
remove todo
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44922
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Wed, 12 Dec 2007 06:44:12 +0000 (06:44 +0000)]
Removed VisitDeclStmt(). The initializers of a DeclStmt are now automatically
printed out by DumpSubTree() via the child_iterator interface. This fixes a
bug where the initializers were being dumped twice.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44920
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 12 Dec 2007 06:43:05 +0000 (06:43 +0000)]
Unbreak -stats on cocoa.h
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44919
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 12 Dec 2007 06:22:14 +0000 (06:22 +0000)]
add run lines.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44918
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 12 Dec 2007 06:20:40 +0000 (06:20 +0000)]
add run line
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44917
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 12 Dec 2007 06:20:18 +0000 (06:20 +0000)]
add runline, make this test real.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44916
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 12 Dec 2007 06:19:22 +0000 (06:19 +0000)]
verify that tests contain RUN lines.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44915
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 12 Dec 2007 06:13:27 +0000 (06:13 +0000)]
simplify some code.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44913
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 12 Dec 2007 05:47:28 +0000 (05:47 +0000)]
implement correct semantic analysis for shifts. For:
int test(int x, long long y) {
return x << y;
}
we now realize the type of the shift is int, not long long.
This fixes a fixme from june.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44912
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 12 Dec 2007 05:01:48 +0000 (05:01 +0000)]
Simplify some code, don't force the triple to a darwin triple if non-darwin.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44911
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 12 Dec 2007 04:22:37 +0000 (04:22 +0000)]
typo reported by Gabor Greif
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44909
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 12 Dec 2007 04:13:20 +0000 (04:13 +0000)]
Fix a codegen crash on test/CodeGen/cast.c, reported by Keith.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44908
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 12 Dec 2007 03:33:41 +0000 (03:33 +0000)]
fix typo pointed out by gordon
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44906
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 12 Dec 2007 01:15:04 +0000 (01:15 +0000)]
fix expected errors.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44901
91177308 -0d34-0410-b5e6-
96231b3b80d8
Fariborz Jahanian [Wed, 12 Dec 2007 01:06:09 +0000 (01:06 +0000)]
Add -pedantic so test passes.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44900
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 12 Dec 2007 01:04:12 +0000 (01:04 +0000)]
Add ObjC parser support for concatenated ObjC strings. Note that
this is passed to sema and ignored there, so the second part of the
string will not make it into the AST. Passing to Fariborz to finish
Sema + AST construction.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44898
91177308 -0d34-0410-b5e6-
96231b3b80d8
Fariborz Jahanian [Wed, 12 Dec 2007 01:00:23 +0000 (01:00 +0000)]
Implemented type checking for pointer of objects of protocol-qualified types.
Note that incompatible-protocol-qualified-types.m is currently failing. This is
unrelated to this patch and Steve is looking at the general problem of not reporting
incompitible pointer types in return stetement..
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44897
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Tue, 11 Dec 2007 23:28:38 +0000 (23:28 +0000)]
Moved creation of SourceManager, HeaderSearch, TargetInfo, and LangOptions
into the loop that processes input files. These will soon become translation
unit specific (with the exception of LangOptions).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44893
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 11 Dec 2007 23:15:04 +0000 (23:15 +0000)]
simplify code now that isConstantExpr really does always
return a loc.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44890
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 11 Dec 2007 23:11:17 +0000 (23:11 +0000)]
Fix a case where we'd return "is not a constant expr" without
return a location.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44889
91177308 -0d34-0410-b5e6-
96231b3b80d8
Fariborz Jahanian [Tue, 11 Dec 2007 23:04:08 +0000 (23:04 +0000)]
80-column please.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44888
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Tue, 11 Dec 2007 22:57:35 +0000 (22:57 +0000)]
Modified the internals of Diagnostic and DiagnosticClient to use
SourceManager*'s instead of SourceManager&'s. This allows the client specify a
NULL SourceManager when using a default constructed SourceLocation. Thus the
SourceManager can be NULL when the SourceLocation's isValid() == false.
The interface to most clients of Diagnostic remains the same.
Diagnostic::Report() is overload to either accept a SourceLocation and a
SourceManager&, or neither. Thus clients that do not have a SourceManager
cannot specify a SourceLocation.
Modified TextDiagnostics* to use this new interface.
Modified the driver to not passed in SourceManager when warning about "-I-".
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44887
91177308 -0d34-0410-b5e6-
96231b3b80d8
Fariborz Jahanian [Tue, 11 Dec 2007 22:50:14 +0000 (22:50 +0000)]
Implemented rewriting of protocol-qualified global variable types.
Re-implemented some of rewriting of protocol-qualified function
argument types to support it in its generality.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44886
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 11 Dec 2007 22:32:45 +0000 (22:32 +0000)]
gcc supports more targets.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44885
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 11 Dec 2007 22:29:38 +0000 (22:29 +0000)]
update pch discussion
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44884
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 11 Dec 2007 22:26:03 +0000 (22:26 +0000)]
improve title
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44883
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 11 Dec 2007 22:22:59 +0000 (22:22 +0000)]
add a con of clang vs gcc
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44882
91177308 -0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Tue, 11 Dec 2007 21:33:16 +0000 (21:33 +0000)]
Match union field type when member expression is u->x
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44879
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Tue, 11 Dec 2007 21:27:55 +0000 (21:27 +0000)]
Mega-patch: ripped SourceManager out of Diagnostic/DiagnosticClient. Now
SourceManager is passed by reference, allowing the SourceManager to be
associated with a specific translation unit, and not the entire execution
of the driver.
Modified all users of Diagnostics to comply with this new interface.
Integrated SourceManager as a member variable of TargetInfo. TargetInfo will
eventually be associated with a single translation unit (just like
SourceManager).
Made the SourceManager reference in ASTContext private. Provided accessor
getSourceManager() for clients to use instead. Modified clients to comply with
new interface.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44878
91177308 -0d34-0410-b5e6-
96231b3b80d8
Fariborz Jahanian [Tue, 11 Dec 2007 19:56:36 +0000 (19:56 +0000)]
Refactor Rewritetest::RewriteObjcQualifiedInterfaceTypes in preparation for more
general use.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44876
91177308 -0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Tue, 11 Dec 2007 19:51:39 +0000 (19:51 +0000)]
Refactor bit-field handling code into a separate method.
No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44875
91177308 -0d34-0410-b5e6-
96231b3b80d8
Fariborz Jahanian [Tue, 11 Dec 2007 19:10:26 +0000 (19:10 +0000)]
For @optional unimplemented methods do not issue the warning.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44872
91177308 -0d34-0410-b5e6-
96231b3b80d8
Fariborz Jahanian [Tue, 11 Dec 2007 18:34:51 +0000 (18:34 +0000)]
Fixed a parsing bug whereby @optional/@required keyword is not followed by
a method declaration.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44870
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 11 Dec 2007 07:59:50 +0000 (07:59 +0000)]
mention pork
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44857
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 11 Dec 2007 04:36:28 +0000 (04:36 +0000)]
properly namespacify.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44845
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 11 Dec 2007 04:33:00 +0000 (04:33 +0000)]
fix a build issue with non-apple-gcc-4.0 compilers.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44844
91177308 -0d34-0410-b5e6-
96231b3b80d8
Steve Naroff [Tue, 11 Dec 2007 03:38:03 +0000 (03:38 +0000)]
Avoid the first person in a recently added comment.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44843
91177308 -0d34-0410-b5e6-
96231b3b80d8
Steve Naroff [Tue, 11 Dec 2007 03:34:41 +0000 (03:34 +0000)]
- Tweak several tests to be compatible with my last commit.
- Add a test to message.m for an unusual case for GCC compat (as suggested by Chris).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44842
91177308 -0d34-0410-b5e6-
96231b3b80d8
Anders Carlsson [Tue, 11 Dec 2007 03:09:22 +0000 (03:09 +0000)]
Generate more builtins.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44841
91177308 -0d34-0410-b5e6-
96231b3b80d8
Steve Naroff [Tue, 11 Dec 2007 02:44:30 +0000 (02:44 +0000)]
Change err_undef_protocolref to warn_undef_protocolref (this is consistent with GCC).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44840
91177308 -0d34-0410-b5e6-
96231b3b80d8
Anders Carlsson [Tue, 11 Dec 2007 02:25:54 +0000 (02:25 +0000)]
Generate code for some more intrinsics.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44839
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 11 Dec 2007 01:38:45 +0000 (01:38 +0000)]
Reimplement support for strings that initialize global inits now that
the types are right in sema. Thanks Steve.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44834
91177308 -0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Tue, 11 Dec 2007 01:23:33 +0000 (01:23 +0000)]
Separate access field number is not required.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44833
91177308 -0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Tue, 11 Dec 2007 00:54:19 +0000 (00:54 +0000)]
Beautify comment.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44831
91177308 -0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Tue, 11 Dec 2007 00:49:18 +0000 (00:49 +0000)]
Add support to share llvm fields for bit-fields.
For example, struct { char a; short b:2; };
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44830
91177308 -0d34-0410-b5e6-
96231b3b80d8
Steve Naroff [Tue, 11 Dec 2007 00:00:01 +0000 (00:00 +0000)]
Explicitly set the string literal type from "char *" to "constant array of char".
At this point, I am fairly certain the front-end is correct. Unfortunately, the back-end is still unhappy.
That said, I've commented out the two lines in globalinit.c that are causing problems.
Chris, please have a look...thanks!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44823
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Mon, 10 Dec 2007 23:58:39 +0000 (23:58 +0000)]
Fixed bug in CFG::PopulateBlkExprMap where the ordering
between fetching the size of the expression map (for use as
the next integer id for an Expr*) and the creation of the
entry in the map could be non-deterministic. This could
cause the size of the map to be incremented prior to the
index being determine.
On Linux the map entry would be created first, causing the
map to the "size" to be incremented prior to it being
queried. On Mac OS X we had the reverse behavior. Now the
size is always queried prior to the new id being inserted
into the map.
This was the real cause of the bit-overrun triggered in
PR 1847:
http://llvm.org/bugs/show_bug.cgi?id=1847
Also reverted the change in patch 44813, which was a bogus
fix to this problem:
http://llvm.org/viewvc/llvm-project?rev=44813&view=rev
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44822
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Mon, 10 Dec 2007 23:44:32 +0000 (23:44 +0000)]
Added missing inclusion of stdarg.h. Now CGExprScalar.cpp
compiles again on Linux.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44821
91177308 -0d34-0410-b5e6-
96231b3b80d8
Steve Naroff [Mon, 10 Dec 2007 22:44:33 +0000 (22:44 +0000)]
Add support for initializing char arrays from string literals.
Adapted from a patch by Anders Carlsson.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44816
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Mon, 10 Dec 2007 22:01:22 +0000 (22:01 +0000)]
Fixed off-by-one-error when resizing Bitvectors used for
dataflow analysis over expressions and decls.
This should fix bug 1847:
http://llvm.org/bugs/show_bug.cgi?id=1847
Thanks to Török Edwin for providing a test case that
identified the problem.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44813
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 10 Dec 2007 19:50:32 +0000 (19:50 +0000)]
add support for implicit cast from array to pointer that is not the element
type.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44809
91177308 -0d34-0410-b5e6-
96231b3b80d8
Anders Carlsson [Mon, 10 Dec 2007 19:46:20 +0000 (19:46 +0000)]
Revert change that broke the build.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44808
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 10 Dec 2007 19:44:50 +0000 (19:44 +0000)]
disable case that makes this fail.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44807
91177308 -0d34-0410-b5e6-
96231b3b80d8
Anders Carlsson [Mon, 10 Dec 2007 19:35:18 +0000 (19:35 +0000)]
Add EmitShuffleVector helper method.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44806
91177308 -0d34-0410-b5e6-
96231b3b80d8
Anders Carlsson [Mon, 10 Dec 2007 19:30:18 +0000 (19:30 +0000)]
Address comments from Chris.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44804
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 10 Dec 2007 18:56:37 +0000 (18:56 +0000)]
minor edits.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44801
91177308 -0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Mon, 10 Dec 2007 18:52:06 +0000 (18:52 +0000)]
Add assert to flag incomplete bit-field support.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44800
91177308 -0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Mon, 10 Dec 2007 18:37:40 +0000 (18:37 +0000)]
Use getABITypeSizeInBits() instead of getTypeSizeInBits() during struct layout.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44799
91177308 -0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Mon, 10 Dec 2007 18:25:34 +0000 (18:25 +0000)]
Use getABITypeSizeInBits() instead of getTypeSizeInBits() during struct layout.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44798
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Mon, 10 Dec 2007 18:01:25 +0000 (18:01 +0000)]
Added newline to end of file.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44797
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 10 Dec 2007 17:38:50 +0000 (17:38 +0000)]
be more clear about what we are comparing.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44795
91177308 -0d34-0410-b5e6-
96231b3b80d8
Anders Carlsson [Mon, 10 Dec 2007 08:48:18 +0000 (08:48 +0000)]
Forgot this file.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44790
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 10 Dec 2007 08:21:12 +0000 (08:21 +0000)]
fixes, thanks to Nico Weber
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44789
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 10 Dec 2007 08:19:29 +0000 (08:19 +0000)]
clean up the TOC.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44788
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 10 Dec 2007 08:12:49 +0000 (08:12 +0000)]
finish the features description.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44787
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 10 Dec 2007 07:23:52 +0000 (07:23 +0000)]
now with hackability.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44784
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 10 Dec 2007 07:14:08 +0000 (07:14 +0000)]
reorganize features, expound on a couple more.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44783
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 10 Dec 2007 06:01:32 +0000 (06:01 +0000)]
incorporate suggestions from Joel Nelson.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44782
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 10 Dec 2007 05:52:05 +0000 (05:52 +0000)]
start making features be a more detailed description of the features/goals section on the main page.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44781
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 10 Dec 2007 05:23:01 +0000 (05:23 +0000)]
add toc
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44780
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 10 Dec 2007 05:20:47 +0000 (05:20 +0000)]
don't duplicate goals on the features page.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44779
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 10 Dec 2007 05:11:40 +0000 (05:11 +0000)]
update status
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44778
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 10 Dec 2007 05:10:14 +0000 (05:10 +0000)]
edits, switch the goals/why section.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44777
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 10 Dec 2007 05:06:15 +0000 (05:06 +0000)]
minor edits
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44776
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 10 Dec 2007 02:25:51 +0000 (02:25 +0000)]
add link to comparison page.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44763
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 10 Dec 2007 02:24:44 +0000 (02:24 +0000)]
Be more positive! Add to sidebar.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44762
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 10 Dec 2007 02:18:15 +0000 (02:18 +0000)]
updates.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44761
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 10 Dec 2007 02:05:32 +0000 (02:05 +0000)]
minor edits
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44759
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 10 Dec 2007 01:52:24 +0000 (01:52 +0000)]
make more positive.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44758
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 10 Dec 2007 01:44:24 +0000 (01:44 +0000)]
Add a "comparing clang to other compilers" page, to help resolve some FAQ's.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44754
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 10 Dec 2007 00:14:49 +0000 (00:14 +0000)]
lots of this is done.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44753
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 10 Dec 2007 00:05:55 +0000 (00:05 +0000)]
abort when we lower an initializer to the wrong type, as we currently do for:
char text[] = "string";
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44752
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 10 Dec 2007 00:00:56 +0000 (00:00 +0000)]
extend or truncate the initializer for a string initializer to match its type.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44751
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 9 Dec 2007 23:49:42 +0000 (23:49 +0000)]
Implement codegen support for:
char text[8] = "string";
Big fixme remains.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44750
91177308 -0d34-0410-b5e6-
96231b3b80d8
Anders Carlsson [Sun, 9 Dec 2007 23:39:18 +0000 (23:39 +0000)]
Address Chris's comments.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44749
91177308 -0d34-0410-b5e6-
96231b3b80d8
Anders Carlsson [Sun, 9 Dec 2007 23:17:02 +0000 (23:17 +0000)]
Move target specific builtin IDs to TargetBuiltins.h so that they can be used by CGBuiltin.cpp
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44748
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 9 Dec 2007 21:53:25 +0000 (21:53 +0000)]
Implement correct semantic analysis of subtractions, implementing
C99 6.5.6.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44746
91177308 -0d34-0410-b5e6-
96231b3b80d8
Anders Carlsson [Sun, 9 Dec 2007 21:51:19 +0000 (21:51 +0000)]
Implement __builtin_ia32_mulps.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44745
91177308 -0d34-0410-b5e6-
96231b3b80d8
Anders Carlsson [Sun, 9 Dec 2007 21:20:04 +0000 (21:20 +0000)]
Generate code for target specific intrinsics.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44744
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 9 Dec 2007 21:11:08 +0000 (21:11 +0000)]
The flags on tokens indicate whether they are the start of a *physical* line,
not the start of a logical line. Be careful about this distinction, which
affects when newlines are printed and when paste-avoidance happens, etc.
This fixes PR1848, thanks to Neil for noticing this!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44743
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 9 Dec 2007 20:45:43 +0000 (20:45 +0000)]
Fix a pretty big but subtle bug counting the number of newlines to emit.
This would cause us to emit different code (in -E mode) for these two files:
---
#define t(x) x
t(a
3)
---
#define t(x) x
t(a
3)
---
In one case, -E would print "a\n3", in the other it printed "a3". Now
it prints "a3" for both.
This is part of PR1848.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44742
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 9 Dec 2007 20:31:55 +0000 (20:31 +0000)]
Add dumping support for locations, make -dumptokens print out the location
info of each token.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44741
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 9 Dec 2007 17:50:14 +0000 (17:50 +0000)]
Fix typo noticed by Nico Weber
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44739
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 9 Dec 2007 09:05:23 +0000 (09:05 +0000)]
many edits to the main page, add a prominant 'status' section.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44737
91177308 -0d34-0410-b5e6-
96231b3b80d8