#
9ed5b156 |
| 18-Jan-2012 |
Nick Lewycky <nicholas@mxc.ca> |
Fix a string over-run detected by ASAN.
llvm-svn: 148375
|
#
72cd2293 |
| 18-Jan-2012 |
Nick Lewycky <nicholas@mxc.ca> |
Fix special king of typo.
llvm-svn: 148368
|
#
ec9fd13c |
| 14-Jan-2012 |
Douglas Gregor <dgregor@apple.com> |
De-virtualize getPreviousDecl() and getMostRecentDecl() when we know we have a redeclarable type, and only use the new virtual versions (getPreviousDeclImpl() and getMostRecentDeclImpl()) when we don
De-virtualize getPreviousDecl() and getMostRecentDecl() when we know we have a redeclarable type, and only use the new virtual versions (getPreviousDeclImpl() and getMostRecentDeclImpl()) when we don't have that type information. This keeps us from penalizing users with strict type information (and is the moral equivalent of a "final" method).
Plus, settle on the names getPreviousDecl() and getMostRecentDecl() throughout.
llvm-svn: 148187
show more ...
|
#
dafff947 |
| 14-Jan-2012 |
Richard Smith <richard-llvm@metafoo.co.uk> |
constexpr irgen: Add irgen support for APValue::Struct, APValue::Union, APValue::Array and APValue::MemberPointer. All APValue values can now be emitted as constants.
Add new CGCXXABI entry point fo
constexpr irgen: Add irgen support for APValue::Struct, APValue::Union, APValue::Array and APValue::MemberPointer. All APValue values can now be emitted as constants.
Add new CGCXXABI entry point for emitting an APValue MemberPointer. The other entrypoints dealing with constant member pointers are no longer necessary and will be removed in a later change.
Switch codegen from using EvaluateAsRValue/EvaluateAsLValue to VarDecl::evaluateValue. This performs caching and deals with the nasty cases in C++11 where a non-const object's initializer can refer indirectly to previously-initialized fields within the same object.
Building the intermediate APValue object incurs a measurable performance hit on pathological testcases with huge initializer lists, so we continue to build IR directly from the Expr nodes for array and record types outside of C++11.
llvm-svn: 148178
show more ...
|
#
86131f2c |
| 10-Jan-2012 |
Bill Wendling <isanbard@gmail.com> |
The `-fwritable-strings' flag doesn't make the backing store strings of all CFStrings writable.
The strings (both Unicode and ASCII) should reside in a read-only section. E.g., __TEXT,__cstring inst
The `-fwritable-strings' flag doesn't make the backing store strings of all CFStrings writable.
The strings (both Unicode and ASCII) should reside in a read-only section. E.g., __TEXT,__cstring instead of __DATA,__data. This is done by making the global variable created for the strings constant despite the value of that flag. <rdar://problem/10657500>
llvm-svn: 147845
show more ...
|
#
f6102675 |
| 01-Jan-2012 |
Douglas Gregor <dgregor@apple.com> |
Eliminate ObjCForwardProtocolDecl, which is redundant now that ObjCProtocolDecl modules forward declarations properly.
llvm-svn: 147415
|
#
deafd0b2 |
| 27-Dec-2011 |
Douglas Gregor <dgregor@apple.com> |
Eliminate ObjCClassDecl, which is redundant now that ObjCInterfaceDecl covers both declarations (@class) and definitions (@interface) of an Objective-C class.
llvm-svn: 147299
|
#
4fdc1759 |
| 19-Dec-2011 |
Rafael Espindola <rafael.espindola@gmail.com> |
Extend the fix for PR9614 to handle inline asm in the outer decl and the inner decl being a builtin. This is needed to support the glibc headers in fedora 16 (2.14).
llvm-svn: 146867
|
#
ba34552e |
| 02-Dec-2011 |
Douglas Gregor <dgregor@apple.com> |
Introduce a module import declaration, so that we properly represent, e.g.,
__import_module__ std.vector;
in the AST.
llvm-svn: 145725
|
Revision tags: llvmorg-3.0.0, llvmorg-3.0.0-rc4, llvmorg-3.0.0-rc3, llvmorg-3.0.0-rc2 |
|
#
fcec630a |
| 01-Nov-2011 |
Eli Friedman <eli.friedman@gmail.com> |
Fix the representation of wide strings in the AST and IR so that it uses the native representation of integers for the elements. This fixes a bunch of nastiness involving treating wide strings as a
Fix the representation of wide strings in the AST and IR so that it uses the native representation of integers for the elements. This fixes a bunch of nastiness involving treating wide strings as a series of bytes.
Patch by Seth Cantrell.
llvm-svn: 143417
show more ...
|
#
fffc1ce1 |
| 28-Oct-2011 |
Rafael Espindola <rafael.espindola@gmail.com> |
Fix PR9614 for functions with the always_inline attribute. Try to keep the common case (-O0, no always_inline) fast.
llvm-svn: 143222
|
#
c594135b |
| 26-Oct-2011 |
Rafael Espindola <rafael.espindola@gmail.com> |
Fix pr9614 by not emitting an available_externally function when it calls itself via an asm label.
available_externally functions are supposed to correspond to an external function, and that is not
Fix pr9614 by not emitting an available_externally function when it calls itself via an asm label.
available_externally functions are supposed to correspond to an external function, and that is not the case in the examples in pr9614.
llvm-svn: 143049
show more ...
|
Revision tags: llvmorg-3.0.0-rc1 |
|
#
22d24c28 |
| 15-Oct-2011 |
Benjamin Kramer <benny.kra@googlemail.com> |
Replace vectors with arrays.
llvm-svn: 142072
|
#
7cdf9486 |
| 13-Oct-2011 |
Eric Christopher <echristo@apple.com> |
Recommit:
Start handling debug line and scope information better:
Migrate most of the location setting within the larger API in CGDebugInfo and update a lot of callers. Remove the e
Recommit:
Start handling debug line and scope information better:
Migrate most of the location setting within the larger API in CGDebugInfo and update a lot of callers. Remove the existing file/scope change machinery in UpdateLineDirectiveRegion and replace it with DILexicalBlockFile usage.
Finishes off the rest of rdar://10246360
after fixing a few bugs that were exposed in gdb testsuite testing.
llvm-svn: 141893
show more ...
|
#
93663b3c |
| 12-Oct-2011 |
Eric Christopher <echristo@apple.com> |
Revert file/scope handling patches. gdb testing revealed a couple of bugs.
llvm-svn: 141796
|
#
498b7fd7 |
| 11-Oct-2011 |
Eric Christopher <echristo@apple.com> |
Start handling debug line and scope information better:
Migrate most of the location setting within the larger API in CGDebugInfo and update a lot of callers. Remove the existing file/scope change m
Start handling debug line and scope information better:
Migrate most of the location setting within the larger API in CGDebugInfo and update a lot of callers. Remove the existing file/scope change machinery in UpdateLineDirectiveRegion and replace it with DILexicalBlockFile usage.
Finishes off the rest of rdar://10246360
llvm-svn: 141732
show more ...
|
#
c168e507 |
| 08-Oct-2011 |
Ted Kremenek <kremenek@apple.com> |
Free 'TheTargetCodeGenInfo' in the class CodeGenModule. This looks like an obvious memory leak that was reported from LLDB devs. The comment indicates the leak is deliberate, but I have no idea why
Free 'TheTargetCodeGenInfo' in the class CodeGenModule. This looks like an obvious memory leak that was reported from LLDB devs. The comment indicates the leak is deliberate, but I have no idea why this needs to be so. Please comment/revert if you know otherwise.
llvm-svn: 141479
show more ...
|
#
a9455ec9 |
| 06-Oct-2011 |
Peter Collingbourne <peter@pcc.me.uk> |
CUDA: add -fcuda-is-device flag
This frontend-only flag is used by the IR generator to determine whether to filter CUDA declarations for the host or for the device.
llvm-svn: 141301
|
#
fe883422 |
| 06-Oct-2011 |
Peter Collingbourne <peter@pcc.me.uk> |
CUDA: IR generation support for kernel call expressions
llvm-svn: 141300
|
#
b8c3aaf4 |
| 03-Oct-2011 |
Argyrios Kyrtzidis <akyrtzi@gmail.com> |
Allow getting all source locations of selector identifiers in a ObjCMethodDecl.
Instead of always storing all source locations for the selector identifiers we check whether all the identifiers are i
Allow getting all source locations of selector identifiers in a ObjCMethodDecl.
Instead of always storing all source locations for the selector identifiers we check whether all the identifiers are in a "standard" position; "standard" position is
-Immediately before the arguments: -(id)first:(int)x second:(int)y; -With a space between the arguments: -(id)first: (int)x second: (int)y; -For nullary selectors, immediately before ';': -(void)release;
In such cases we infer the locations instead of storing them.
llvm-svn: 140989
show more ...
|
#
dfd65706 |
| 03-Oct-2011 |
Argyrios Kyrtzidis <akyrtzi@gmail.com> |
Pass from the parser the locations of selector identifiers when creating objc method decls.
They are not stored in the AST yet.
llvm-svn: 140984
|
#
9b0a7cea |
| 02-Oct-2011 |
John McCall <rjmccall@apple.com> |
Make -fobjc-nonfragile-abi the -cc1 default, since it's the increasingly prevailing case to the point that new features like ARC don't even support the fragile ABI anymore.
This required a little bi
Make -fobjc-nonfragile-abi the -cc1 default, since it's the increasingly prevailing case to the point that new features like ARC don't even support the fragile ABI anymore.
This required a little bit of reshuffling with exceptions because a check was assuming that ObjCNonFragileABI was only being set in ObjC mode, and that's actually a bit obnoxious to do.
Most, though, it involved a perl script to translate a ton of test cases.
Mostly no functionality change for driver users, although there are corner cases with disabling language-specific exceptions that we should handle more correctly now.
llvm-svn: 140957
show more ...
|
#
9c902b55 |
| 25-Sep-2011 |
David Blaikie <dblaikie@gmail.com> |
Rename Diagnostic to DiagnosticsEngine as per issue 5397
llvm-svn: 140478
|
#
83d382b1 |
| 23-Sep-2011 |
David Blaikie <dblaikie@gmail.com> |
Switch assert(0/false) llvm_unreachable.
llvm-svn: 140367
|
#
2dbb708b |
| 19-Sep-2011 |
Peter Collingbourne <peter@pcc.me.uk> |
OpenCL: introduce support for function scope __local variables
llvm-svn: 140068
|