| Commit message (Collapse) | Author | Age | Files | Lines | 
| ... |  | 
| | 
| 
| 
| 
| 
| 
| 
|  | 
to the call site.
Used this in CGObjCGNU to attach metadata about message sends to permit speculative inlining.
llvm-svn: 102833
 | 
| | 
| 
| 
| 
| 
| 
| 
|  | 
access.  Fixes an assertion.
Fixes rdar://problem/7927811.  Too lazy to reduce a test case.
llvm-svn: 102776
 | 
| | 
| 
| 
|  | 
llvm-svn: 102747
 | 
| | 
| 
| 
|  | 
llvm-svn: 102711
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
|  | 
a class with virtual bases.  Just a patch until Sema starts (correctly) doing
most of this analysis.
Fixes PR 6622.
llvm-svn: 102692
 | 
| | 
| 
| 
| 
| 
|  | 
when used by the exceptions routines.  Fixes PR 6974.
llvm-svn: 102684
 | 
| | 
| 
| 
| 
| 
|  | 
might not have been an insertion block set at start.  Fixes PR6975.
llvm-svn: 102677
 | 
| | 
| 
| 
|  | 
llvm-svn: 102676
 | 
| | 
| 
| 
|  | 
llvm-svn: 102674
 | 
| | 
| 
| 
| 
| 
|  | 
llvm::GLobalVariable name may not match user visibile name for function static variables.
llvm-svn: 102644
 | 
| | 
| 
| 
| 
| 
|  | 
DeclContext, to satisfy the invariants that should hold on a RecordDecl.
llvm-svn: 102624
 | 
| | 
| 
| 
| 
| 
| 
|  | 
of c++ objects (NeXt runtime).
radar 7900343.
llvm-svn: 102546
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
|  | 
Amadini.
This change introduces a new expression node type, OffsetOfExpr, that
describes __builtin_offsetof. Previously, __builtin_offsetof was
implemented using a unary operator whose subexpression involved
various synthesized array-subscript and member-reference expressions,
which was ugly and made it very hard to instantiate as a
template. OffsetOfExpr represents the AST more faithfully, with proper
type source information and a more compact representation.
OffsetOfExpr also has support for dependent __builtin_offsetof
expressions; it can be value-dependent, but will never be
type-dependent (like sizeof or alignof). This commit introduces
template instantiation for __builtin_offsetof as well.
There are two major caveats to this patch:
  1) CodeGen cannot handle the case where __builtin_offsetof is not a
  constant expression, so it produces an error. So, to avoid
  regressing in C, we retain the old UnaryOperator-based
  __builtin_offsetof implementation in C while using the shiny new
  OffsetOfExpr implementation in C++. The old implementation can go
  away once we have proper CodeGen support for this case, which we
  expect won't cause much trouble in C++.
  2) __builtin_offsetof doesn't work well with non-POD class types,
  particularly when the designated field is found within a base
  class. I will address this in a subsequent patch.
Fixes PR5880 and a bunch of assertions when building Boost.Python
tests. 
llvm-svn: 102542
 | 
| | 
| 
| 
| 
| 
| 
|  | 
ivar class objects (NeXt runtime).
(radar 7900343).
llvm-svn: 102533
 | 
| | 
| 
| 
| 
| 
| 
| 
|  | 
ObjCInterfaceDecl for class messages and removed the boolean IsClassMessage argument, which wasn't used anywhere.
Emitted some metadata on message sends to allow a later pass to do some speculative inlining of class methods (GNU runtime).  Speculative inlining of instance methods requires type feedback to be useful (work in progress), but for class methods it works quite nicely.  
llvm-svn: 102514
 | 
| | 
| 
| 
|  | 
llvm-svn: 102499
 | 
| | 
| 
| 
|  | 
llvm-svn: 102497
 | 
| | 
| 
| 
| 
| 
| 
| 
|  | 
T::template apply<U>), handling a few cases where we previously failed
and performing substitutions on such dependent names. Fixes a crash in
Boost.PropertyTree.
llvm-svn: 102490
 | 
| | 
| 
| 
| 
| 
|  | 
incomplete type.  Fixes PR6911.
llvm-svn: 102473
 | 
| | 
| 
| 
|  | 
llvm-svn: 102459
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
|  | 
This works around stack corruption / crashes resulting from PR6944, and also
works around people who expect 'what works on my machine' to work everywhere
(GCC crashes in a number of cases on SPARC that should now work correctly with
clang).
llvm-svn: 102430
 | 
| | 
| 
| 
|  | 
llvm-svn: 102429
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
|  | 
of a class template or class template partial specialization.  That is to
say, in
  template <class T> class A { ... };
or
  template <class T> class B<const T*> { ... };
make 'A<T>' and 'B<const T*>' sugar for the corresponding InjectedClassNameType
when written inside the appropriate context.  This allows us to track the
current instantiation appropriately even inside AST routines.  It also allows
us to compute a DeclContext for a type much more efficiently, at some extra
cost every time we write a template specialization (which can be optimized,
but I've left it simple in this patch).
llvm-svn: 102407
 | 
| | 
| 
| 
|  | 
llvm-svn: 102398
 | 
| | 
| 
| 
| 
| 
|  | 
mode.
llvm-svn: 102377
 | 
| | 
| 
| 
| 
| 
| 
|  | 
@catch a VarDecl. The dynamic type is still a ParmVarDecl, but that
will change soon. No effective functionality change.
llvm-svn: 102341
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
|  | 
- Fix some places that had the alignment hard coded.
 - Use ABI type alignment, not preferred type alignment -- neither of this is exactly right, as we really want the C type alignment as required by the runtime, but the ABI alignment is a more correct choice.
This should be equivalent for x86_64, but fixes the alignment for ARM.
llvm-svn: 102314
 | 
| | 
| 
| 
| 
| 
|  | 
fixes Clang to correctly emit the "CorrectedSynthesize" bit when using the non-fragile ABI.
llvm-svn: 102312
 | 
| | 
| 
| 
|  | 
llvm-svn: 102293
 | 
| | 
| 
| 
|  | 
llvm-svn: 102289
 | 
| | 
| 
| 
|  | 
llvm-svn: 102286
 | 
| | 
| 
| 
|  | 
llvm-svn: 102285
 | 
| | 
| 
| 
| 
| 
|  | 
GetAddressOfDirectBaseInCompleteClass to reflect that it only handles direct bases.
llvm-svn: 102284
 | 
| | 
| 
| 
|  | 
llvm-svn: 102282
 | 
| | 
| 
| 
|  | 
llvm-svn: 102281
 | 
| | 
| 
| 
| 
| 
|  | 
implicit base initializers. (Member initializers are still handled by CodeGenFunction::SynthesizeCXXCopyConstructor for now).
llvm-svn: 102279
 | 
| | 
| 
| 
|  | 
llvm-svn: 102275
 | 
| | 
| 
| 
| 
| 
|  | 
use the new version.
llvm-svn: 102274
 | 
| | 
| 
| 
|  | 
llvm-svn: 102273
 | 
| | 
| 
| 
|  | 
llvm-svn: 102272
 | 
| | 
| 
| 
| 
| 
|  | 
for derived-to-base casts.
llvm-svn: 102270
 | 
| | 
| 
| 
|  | 
llvm-svn: 102263
 | 
| | 
| 
| 
|  | 
llvm-svn: 102262
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
|  | 
- Replace -cc1 level -fobjc-legacy-dispatch with -fobjc-dispatch-method={legacy,non-legacy,mixed}.
 - Lift "mixed" vs "non-mixed" policy choice up to driver level, instead of being buried in CGObjCMac.cpp.
 - No intended functionality change.
llvm-svn: 102255
 | 
| | 
| 
| 
|  | 
llvm-svn: 102249
 | 
| | 
| 
| 
| 
| 
| 
|  | 
pointer operand. This fixes an abort on
MultiSource/Applications/ClamAV/libclamav_mbox.c.
llvm-svn: 102238
 | 
| | 
| 
| 
|  | 
llvm-svn: 102226
 | 
| | 
| 
| 
| 
| 
|  | 
testsuite.
llvm-svn: 102224
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
|  | 
statements. Instead of the @try having a single @catch, where all of
the @catch's were chained (using an O(n^2) algorithm nonetheless),
@try just holds an array of its @catch blocks. The resulting AST is
slightly more compact (not important) and better represents the actual
language semantics (good).
llvm-svn: 102221
 | 
| | 
| 
| 
|  | 
llvm-svn: 102219
 |