- Oct 22, 2010
-
-
John McCall authored
more closely parallel the computation of linkage. This gets us to a state much closer to what gcc emits, modulo bugs, which will undoubtedly arise in abundance. llvm-svn: 117147
-
- Oct 19, 2010
-
-
Fariborz Jahanian authored
PR6056, //rdar: //8564463 llvm-svn: 116819
-
- Oct 15, 2010
-
-
Dan Gohman authored
llvm-svn: 116613
-
Dan Gohman authored
llvm-svn: 116595
-
Dan Gohman authored
This enables metadata generation by default, however the TBAA pass in the optimizer is still disabled for now. llvm-svn: 116536
-
- Oct 11, 2010
-
-
NAKAMURA Takumi authored
It enables clang to compile Mingw's headers. llvm-svn: 116184
-
- Sep 29, 2010
-
-
Daniel Dunbar authored
- Minor style tweaks by me. llvm-svn: 115056
-
- Sep 28, 2010
-
-
Douglas Gregor authored
already be determined by isCopyAssignmentOperator(), and was set too late in the process for all clients to see the appropriate value. Cleanup only; no functionality change. llvm-svn: 114916
-
- Sep 16, 2010
-
-
John McCall authored
translation units that don't catch ObjC types. rdar://problem/8434851 llvm-svn: 114070
-
- Sep 07, 2010
-
-
Fariborz Jahanian authored
llvm-svn: 113256
-
Fariborz Jahanian authored
instead of asserting in IRGen. Fixes radar 8390459. llvm-svn: 113253
-
- Aug 31, 2010
-
-
John McCall authored
under the ARM ABI. llvm-svn: 112588
-
- Aug 26, 2010
-
-
John McCall authored
This lets us remove Sema.h's dependency on Expr.h and Decl.h. llvm-svn: 112156
-
- Aug 23, 2010
-
-
Fariborz Jahanian authored
objc-nonfragile-abi2 (radar 7824380). llvm-svn: 111823
-
- Aug 22, 2010
-
-
John McCall authored
Make CGT defer to the ABI on all member pointer types. This requires giving CGT a handle to the ABI. It's way easier to make that work if we avoid lazily creating the ABI. Make it so. llvm-svn: 111786
-
John McCall authored
it deserves its own enumerator. Obviously the implementations should closely follow the Itanium ABI except in cases of divergence. llvm-svn: 111749
-
- Aug 19, 2010
-
-
Charles Davis authored
active C++ ABI as a raw string, we store it as an enum. This should improve performance somewhat. And yes, this time, I started from a clean build directory, and all the tests passed. :) llvm-svn: 111507
-
Alexis Hunt authored
Now all classes derived from Attr are generated from TableGen. Additionally, Attr* is no longer its own linked list; SmallVectors or Attr* are used. The accompanying LLVM commit contains the updates to TableGen necessary for this. Some other notes about newly-generated attribute classes: - The constructor arguments are a SourceLocation and a Context&, followed by the attributes arguments in the order that they were defined in Attr.td - Every argument in Attr.td has an appropriate accessor named getFoo, and there are sometimes a few extra ones (such as to get the length of a variadic argument). Additionally, specific_attr_iterator has been introduced, which will iterate over an AttrVec, but only over attributes of a certain type. It can be accessed through either Decl::specific_attr_begin/end or the global functions of the same name. llvm-svn: 111455
-
- Aug 17, 2010
-
-
Benjamin Kramer authored
and remove getStrData(). Patch by Peter Davies (with some tweaks). llvm-svn: 111229
-
- Aug 13, 2010
-
-
John McCall authored
a -cc1 option. The Darwin linker complains about mixed visibility when linking gcc-built objects with clang-built objects, and the optimization isn't really that valuable. Platforms with less ornery linkers can feel free to enable this. llvm-svn: 110979
-
- Aug 08, 2010
-
-
Eric Christopher authored
llvm-svn: 110530
-
- Aug 05, 2010
-
-
John McCall authored
do the right thing with mixed-visibility symbols, so disable the visibility optimization where that's possible, i.e. with template classes (since it's possible that an arbitrary template might be subject to an explicit instantiation elsewhere). 447.dealII actually does this. I've put the code under an option that's currently not hooked up to anything. llvm-svn: 110374
-
Eli Friedman authored
llvm-svn: 110315
-
- Aug 04, 2010
-
-
John McCall authored
Apply hidden visibility to most RTTI; libstdc++ does not rely on exact pointer equality for the type info (just the type info names). Apply the same optimization to RTTI that we do to vtables. Fixes PR5962. llvm-svn: 110192
-
- Jul 29, 2010
-
-
Argyrios Kyrtzidis authored
llvm-svn: 109797
-
Argyrios Kyrtzidis authored
DeclIsRequiredFunctionOrFileScopedVar. This is essentially a CodeGen predicate that is also needed by the PCH mechanism to determine whether a decl needs to be deserialized during PCH loading for codegen purposes. Since this logic is shared by CodeGen and the PCH mechanism, move it to the ASTContext, thus CodeGenModule's GetLinkageForFunction/GetLinkageForVariable and the GVALinkage enum is moved out of CodeGen. This fixes current (and avoids future) codegen-from-PCH bugs. llvm-svn: 109784
-
- Jul 28, 2010
-
-
Gabor Greif authored
we are not supposed to create an improper callsite using a CallInstr; leave a fixme mentioning the simplification when CallSite can clone itself llvm-svn: 109575
-
Argyrios Kyrtzidis authored
llvm-svn: 109550
-
Argyrios Kyrtzidis authored
DeclIsRequiredFunctionOrFileScopedVar. This function is part of the public CodeGen interface since it's essentially a CodeGen predicate that is also needed by the PCH mechanism to determine whether a decl needs to be deserialized during PCH loading for codegen purposes. This fixes current (and avoids future) codegen-from-PCH bugs. llvm-svn: 109546
-
- Jul 22, 2010
-
-
Fariborz Jahanian authored
warning flag in clang. Little more to do for a PCH issue. Radar 6507158. llvm-svn: 109129
-
- Jul 16, 2010
-
-
Daniel Dunbar authored
- This issue here is that /usr/include/Blocks.h wants to define some of the block runtime globals as weak, depending on the target. This doesn't work in Clang because we aren't using the AST decl for these globals. - The fix is a pretty gross hack which just watches all the decls for the specific blocks globals we need to know about; if we see one we use it, otherwise we use the hand coded type. In time, I would like to clean this up by changing IRgen to ask Sema/AST for the decl, which would then be lazily loaded from the builtin table if necessary. This could be used in a whole host of places in IRgen and would get rid of a lot of grotty hand coding of LLVM IR; however, we need some extra Sema support for this as well as support for builtin global variables. llvm-svn: 108482
-
Daniel Dunbar authored
llvm-svn: 108481
-
John McCall authored
the order they appeared in the translation unit. If they get emitted, put them in their proper order. Fixes rdar://problem/7458115 llvm-svn: 108477
-
Douglas Gregor authored
with always_inline attribute. Thanks to Howard for the tip. llvm-svn: 108469
-
- Jul 13, 2010
-
-
Douglas Gregor authored
at -O0. The only change from the previous patch is that we don't try to generate virtual method thunks for an available_externally function. llvm-svn: 108230
-
- Jul 12, 2010
-
-
Douglas Gregor authored
llvm-svn: 108194
-
Douglas Gregor authored
-O0, since we won't be using the definitions for anything anyway. For lib/System/Path.o when built in Debug+Asserts mode, this leads to a 4% improvement in compile time (and suppresses 440 function bodies). <rdar://problem/7987644> llvm-svn: 108156
-
- Jul 07, 2010
-
-
Argyrios Kyrtzidis authored
Introduce Decl::hasBody() and FunctionDecl::hasBody() and use them instead of getBody() when we are just checking the existence of a body, to avoid de-serialization of the body from PCH. Makes de-serialization of the function body even more "lazier". llvm-svn: 107768
-
John McCall authored
emit metadata associating allocas and global values with a Decl*. This feature is controlled by an option that (intentionally) cannot be enabled on the command line. To use this feature, simply set CodeGenOptions.EmitDeclMetadata = true; and then interpret the completely underspecified metadata. :) llvm-svn: 107739
-
- Jun 30, 2010
-
-
Chris Lattner authored
r107173, "fix PR7519: after thrashing around and remembering how all this stuff" r107216, "fix PR7523, which was caused by the ABI code calling ConvertType instead" This includes a fix to make ConvertTypeForMem handle the "recursive" case, and call it as such when lowering function types which have an indirect result. llvm-svn: 107310
-