- Apr 26, 2009
-
-
Eli Friedman authored
cleanup attribute checking. The difference isn't normally visible, but it can make a difference... llvm-svn: 70104
-
Daniel Dunbar authored
llvm-svn: 70103
-
Daniel Dunbar authored
- This can be used to supply a default value for -std=; the idea is that this can be used in conjunction with CCC_ADD_ARGS or QA_OVERRIDE_GCC3_OPTIONS to change the default without having to modify the build system. llvm-svn: 70102
-
Daniel Dunbar authored
should be joined or separate. llvm-svn: 70101
-
Chris Lattner authored
the missing bits of ObjCMessageExpr. llvm-svn: 70100
-
Douglas Gregor authored
Another shot at switching PCH on by default, now that we've cleaned up some bugs and improved performance. Will be reverted after Mr. Speedy gets done with it llvm-svn: 70099
-
Anders Carlsson authored
When calling the cleanup function specified by __attribute__((cleanup)), make sure to bitcast the argument so it has the same type as the first argument of the cleanup function. Fixes <rdar://problem/6827047>. llvm-svn: 70098
-
Douglas Gregor authored
most of which are ignored. Instead, move the __COUNTER__ value out to a PCH-level record (since it is handled eagerly) and move the header file information into the SourceManager block (which is also, currently, loaded eagerly). This results in another 17% performance improvement in the Cocoa-prefixed "Hello, World" with PCH. llvm-svn: 70097
-
Eli Friedman authored
I wasn't originally going to use this approach, but cases like test/Sema/expr-comma.c make things difficult. llvm-svn: 70096
-
Chris Lattner authored
llvm-svn: 70095
-
Douglas Gregor authored
PCH file. In the Cocoa-prefixed "Hello, World" benchmark, this takes us from reading 503 identifiers down to 37 and from 470 macros down to 4. It also results in an 8% performance improvement. llvm-svn: 70094
-
Chris Lattner authored
"This fixes message sends to super in a way that both works with real code and passes the test in the test suite. It also fixes a crash when using recent versions of GNU libobjc and compiling modules that do not contain any constant strings but do contain a declaration of the constant string class and possible some other corner cases (thanks to Pete French for providing me with a test case for that one)." Patch by David Chisnall! llvm-svn: 70093
-
Chris Lattner authored
llvm-svn: 70092
-
Eli Friedman authored
llvm-svn: 70091
-
Eli Friedman authored
any issues now that we have our own tgmath.h. llvm-svn: 70090
-
Eli Friedman authored
Overall, I'm not particularly happy with the current situation regarding constant expression diagnostics, but I plan to improve it at some point. llvm-svn: 70089
-
Chris Lattner authored
Josef Eisl! llvm-svn: 70087
-
Eli Friedman authored
llvm-svn: 70086
-
Chris Lattner authored
llvm-svn: 70085
-
Chris Lattner authored
Patch by Jeffrey Yasskin! llvm-svn: 70084
-
Chris Lattner authored
patch by Jeffrey Yasskin! llvm-svn: 70083
-
Chris Lattner authored
llvm-svn: 70082
-
- Apr 25, 2009
-
-
Chris Lattner authored
VerifyIntegerConstantExpression instead of isIntegerConstantExpr. This makes it ext-warn but tolerate things that fold to a constant but that are not valid i-c-e's. There must be a bug in the i-c-e computation though, because it doesn't catch this case even with pedantic. This also switches the later code to use EvaluateAsInt which is simpler and handles everything that evaluate does. llvm-svn: 70081
-
Chris Lattner authored
llvm-svn: 70080
-
Chris Lattner authored
The real fix for this whole mess is to require the operand of the alias to be a *GlobalValue* (not a general constant, including constant exprs) but allow the operand and the alias type to be unrelated. This fixes PR4066 llvm-svn: 70079
-
Douglas Gregor authored
identifier's ID. In this case, we know where the identifier's entry is located in the hash table (it starts right before the identifier string itself), so skip the hash table lookup and read the entry directly. The performance improvement here is, gain, hard to quantify, but it's the right thing to do. llvm-svn: 70078
-
Chris Lattner authored
new stuff. PR3924. llvm-svn: 70077
-
Bill Wendling authored
llvm-svn: 70076
-
Douglas Gregor authored
"interesting" identifiers (e.g., those where the IdentifierInfo has some useful information) from "uninteresting" identifiers (where the IdentifierInfo is just a name). This makes the hash table smaller (so searching in it should be faster) and, when loading "uninteresting" identifiers, we skip the lookup in the hash table. PCH file size is slightly smaller than before (since we don't emit the contents of the uninteresting IdentifierInfo structures). The Cocoa.h-prefixed "Hello, World" doesn't show any speedup, although we're getting to the point where system noise is a bit issue. llvm-svn: 70075
-
Mon P Wang authored
llvm-svn: 70072
-
Douglas Gregor authored
identifiers. They don't yet work, but will inhibit future optimizations. llvm-svn: 70071
-
Douglas Gregor authored
allocating IdentifierInfos with a pointer into the string data stored in the PCH file rather than having an entry in the identifier table's string map. However, we don't actually get these savings at the moment, because we go through the IdentifierTable when loading identifiers from the on-disk hash table. This commit is for record-keeping purposes only. I'll be reverting this change (and the PCH layout tweak that preceded it) because it appears that implementing this optimization will collide with another, future optimization to reduce the size of the on-disk hash table for identifiers. That optimization is likely to provide more benefit (with less voodoo). llvm-svn: 70070
-
Evan Cheng authored
llvm-svn: 70069
-
Chris Lattner authored
Patch by John McCall! llvm-svn: 70068
-
Chris Lattner authored
llvm-svn: 70067
-
Douglas Gregor authored
Tweak the data layout for the on-disk hash table of identifiers in the PCH file so that the key layout matches that of the PTH key layout llvm-svn: 70066
-
Ted Kremenek authored
llvm-svn: 70065
-
Chris Lattner authored
llvm-svn: 70064
-
Douglas Gregor authored
that the PCH reader does not have to decode the VBR encoding at PCH load time. Also, reduce the size of the identifier offsets from 64 bits down to 32 bits. The identifier table itself isn't going to grow to more than 4GB :) Overall, this results in a 13% speedup in the Cocoa-prefixed "Hello, World" benchmark. llvm-svn: 70063
-
Chris Lattner authored
llvm-svn: 70062
-