- Apr 25, 2009
-
-
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
-
Chris Lattner authored
support -pg, we never instrument :) llvm-svn: 70061
-
Chris Lattner authored
is no longer needed: a function type and a function declarator are always known to line up. llvm-svn: 70060
-
Douglas Gregor authored
blobs, so that we don't need to do any work to get these arrays into memory at PCH load time. This gives another 19% performance improvement to the Cocoa-prefixed "Hello, World!". llvm-svn: 70059
-
Chris Lattner authored
patch by Jeff Yasskin! llvm-svn: 70058
-
Chris Lattner authored
Nicolas Capens! llvm-svn: 70057
-
Dan Gohman authored
using EXTRACT_ELEMENT into a utility function. llvm-svn: 70056
-
Douglas Gregor authored
This results in a 10% speedup on the Cocoa-prefixed "Hello, World!", all of which is (not surprisingly) user time. There was a tiny reduction in the size of the PCH file for Cocoa.h, because certain selectors aren't being written twice. I'm using two new tricks here that I'd like to replicate elsewhere: (1) The selectors not used in the global method pool are packed into the blob after the global method pool's on-disk hash table and stored as keys, so that all selectors are in the same blob. (2) We record the offsets of each selector key when we write it into the global method pool (or after it, in the same blob). The offset table is written as a blob, so that we don't need to pack/unpack a SmallVector with its contents. llvm-svn: 70055
-
Dan Gohman authored
llvm-svn: 70054
-
Dan Gohman authored
into unsigned ones when the operands are known to have the same sign bit value. llvm-svn: 70053
-
Dan Gohman authored
llvm-svn: 70052
-
Dan Gohman authored
common, but indvars shouldn't crash on them. This fixes PR4054. llvm-svn: 70051
-
Steve Naroff authored
llvm-svn: 70046
-
Steve Naroff authored
llvm-svn: 70044
-
Steve Naroff authored
llvm-svn: 70040
-
Steve Naroff authored
Also simplify some syntax in PCHWriter::WritePreprocessor(), suggested by Chris. llvm-svn: 70039
-
Torok Edwin authored
Path.cpp:59: warning: case label value exceeds maximum value for type magic[0] is a (signed) char, but some case values are unsigned (e.g. 0xde). When magic[0] was 0xde, the switch has taken the default branch instead of case 0xde branch. Apparently this was the behaviour with older versions of gcc too, but not with g++. Now g++-4.4 behaves as gcc, and ignores unsigned case values out of range signed range. llvm-svn: 70038
-
Evan Cheng authored
Do not share a single unknown val# for all the live ranges merged into a physical sub-register live interval. When coalescer is merging in clobbered virtaul register live interval into a physical register live interval, give each virtual register val# a separate val# in the physical register live interval. Otherwise, the coalescer would have lost track of the definitions information it needs to make correct coalescing decisions. llvm-svn: 70026
-
Chris Lattner authored
always return a non-null QualType + error bit. This fixes a bunch of cases that didn't check for null result (and could thus crash) and eliminates some crappy code scattered throughout sema. This also improves the diagnostics in the recursive struct case to eliminate a bogus second error. It also cleans up the case added to function.c by forming a proper function type even though the declarator is erroneous, allowing the parameter to be added to the function. Before: t.c:2:1: error: unknown type name 'unknown_type' unknown_type f(void*P) ^ t.c:4:3: error: use of undeclared identifier 'P' P+1; ^ After: t.c:2:1: error: unknown type name 'unknown_type' unknown_type f(void*P) ^ llvm-svn: 70023
-
Chris Lattner authored
llvm-svn: 70022
-
Chris Lattner authored
llvm-svn: 70021
-
Chris Lattner authored
This gets rid of a bunch of random InvalidDecl bools in sema, changing us to use the following approach: 1. When analyzing a declspec or declarator, if an error is found, we set a bit in Declarator saying that it is invalid. 2. Once the Decl is created by sema, we immediately set the isInvalid bit on it from what is in the declarator. From this point on, sema consistently looks at and sets the bit on the decl. This gives a very clear separation of concerns and simplifies a bunch of code. In addition to this, this patch makes these changes: 1. it renames DeclSpec::getInvalidType() -> isInvalidType(). 2. various "merge" functions no longer return bools: they just set the invalid bit on the dest decl if invalid. 3. The ActOnTypedefDeclarator/ActOnFunctionDeclarator/ActOnVariableDeclarator methods now set invalid on the decl returned instead of returning an invalid bit byref. 4. In SemaType, refering to a typedef that was invalid now propagates the bit into the resultant type. Stuff declared with the invalid typedef will now be marked invalid. 5. Various methods like CheckVariableDeclaration now return void and set the invalid bit on the decl they check. There are a few minor changes to tests with this, but the only major bad result is test/SemaCXX/constructor-recovery.cpp. I'll take a look at this next. llvm-svn: 70020
-
Sanjiv Gupta authored
llvm-svn: 70019
-
Douglas Gregor authored
llvm-svn: 70018
-
Douglas Gregor authored
we see what trouble it causes. llvm-svn: 70017
-
Chris Lattner authored
parameters in a functiondecl, even if the decl is invalid and has a confusing Declarator. On the testcase, we now emit one beautiful diagnostic: t.c:2:1: error: unknown type name 'unknown_type' unknown_type f(void*) ^ GCC 4.0 produces: t.c:2: error: syntax error before ‘f’ t.c: In function ‘f’: t.c:2: error: parameter name omitted and GCC 4.2: t.c:2: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘f’ llvm-svn: 70016
-
Chris Lattner authored
remove a special case that was apparently for typeof() and generalize the code in SemaDecl that handles typedefs to handle any sugar type (including typedef, typeof, etc). Improve comment to make it more clear what is going on. llvm-svn: 70015
-
Chris Lattner authored
static in Decl.cpp. llvm-svn: 70014
-
Chris Lattner authored
typedef void foo(void); We get a typedef for a functiontypeproto with no arguments, not one with one argument and type void. This means the code being removed in SemaDecl is dead. llvm-svn: 70013
-
Daniel Dunbar authored
don't yet understand where this is happening in llvm-gcc). llvm-svn: 70012
-
Chris Lattner authored
functions with prototypes get the bit. llvm-svn: 70011
-
Daniel Dunbar authored
llvm-svn: 70010
-
Daniel Dunbar authored
types. - I broke this in the switch to representing interfaces with opaque types. - <rdar://problem/6822660> clang crashes on subscript of interface in 32-bit mode llvm-svn: 70009
-
Ted Kremenek authored
users to specify that a method's argument is visibly retained (reference count incremented). llvm-svn: 70008
-