- Feb 02, 2012
-
-
Alexander Potapenko authored
attribute into CodeGenModule::SetLLVMFunctionAttributesForDefinition(). Previously it resided in CodeGenModule::GetOrCreateLLVMFunction, which for some reason wasn't called for ObjC class methods, see http://code.google.com/p/address-sanitizer/issues/detail?id=33 llvm-svn: 149605
-
- Feb 01, 2012
-
-
Argyrios Kyrtzidis authored
commit 149470. This fixes test/CodeGen/PR3589-freestanding-libcalls.c. Original log: ConstantArray::get() (for strings) is going away, use ConstantDataArray::getString instead. Many instances of ConstantArray::get() could be moved to use more efficient ConstantDataArray methods that avoid a ton of intermediate Constant*'s for each element (e.g. GetConstantArrayFromStringLiteral). I don't plan on doing this in the short-term though. llvm-svn: 149477
-
- Jan 31, 2012
-
-
David Chisnall authored
Patch by Niels Grewe! llvm-svn: 149401
-
Chris Lattner authored
ConstantDataArray::getString instead. Many instances of ConstantArray::get() could be moved to use more efficient ConstantDataArray methods that avoid a ton of intermediate Constant*'s for each element (e.g. GetConstantArrayFromStringLiteral). I don't plan on doing this in the short-term though. llvm-svn: 149363
-
- Jan 24, 2012
-
-
Kostya Serebryany authored
address safety analysis (such as e.g. AddressSanitizer or SAFECode) for a specific function. When building with AddressSanitizer, add AddressSafety function attribute to every generated function except for those that have __attribute__((no_address_safety_analysis)). With this patch we will be able to 1. disable AddressSanitizer for a particular function 2. disable AddressSanitizer-hostile optimizations (such as some cases of load widening) when AddressSanitizer is on. llvm-svn: 148842
-
- Jan 20, 2012
-
-
David Blaikie authored
llvm-svn: 148577
-
- Jan 18, 2012
-
-
Seth Cantrell authored
llvm-svn: 148388
-
Nick Lewycky authored
llvm-svn: 148375
-
Nick Lewycky authored
llvm-svn: 148368
-
- Jan 14, 2012
-
-
Douglas Gregor authored
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
-
Richard Smith authored
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
-
- Jan 10, 2012
-
-
Bill Wendling authored
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
-
- Jan 01, 2012
-
-
Douglas Gregor authored
ObjCProtocolDecl modules forward declarations properly. llvm-svn: 147415
-
- Dec 27, 2011
-
-
Douglas Gregor authored
covers both declarations (@class) and definitions (@interface) of an Objective-C class. llvm-svn: 147299
-
- Dec 19, 2011
-
-
Rafael Espindola authored
the inner decl being a builtin. This is needed to support the glibc headers in fedora 16 (2.14). llvm-svn: 146867
-
- Dec 03, 2011
-
-
Douglas Gregor authored
__import_module__ std.vector; in the AST. llvm-svn: 145725
-
- Nov 01, 2011
-
-
Eli Friedman authored
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
-
- Oct 28, 2011
-
-
Rafael Espindola authored
the common case (-O0, no always_inline) fast. llvm-svn: 143222
-
- Oct 26, 2011
-
-
Rafael Espindola authored
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
-
- Oct 15, 2011
-
-
Benjamin Kramer authored
llvm-svn: 142072
-
- Oct 13, 2011
-
-
Eric Christopher authored
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
-
- Oct 12, 2011
-
-
Eric Christopher authored
llvm-svn: 141796
-
Eric Christopher authored
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
-
- Oct 08, 2011
-
-
Ted Kremenek authored
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
-
- Oct 06, 2011
-
-
Peter Collingbourne authored
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
-
Peter Collingbourne authored
llvm-svn: 141300
-
- Oct 03, 2011
-
-
Argyrios Kyrtzidis authored
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
-
Argyrios Kyrtzidis authored
objc method decls. They are not stored in the AST yet. llvm-svn: 140984
-
- Oct 02, 2011
-
-
John McCall authored
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
-
- Sep 26, 2011
-
-
David Blaikie authored
llvm-svn: 140478
-
- Sep 23, 2011
-
-
David Blaikie authored
llvm-svn: 140367
-
- Sep 19, 2011
-
-
Peter Collingbourne authored
llvm-svn: 140068
-
John McCall authored
instead of internal linkage. llvm-svn: 140030
-
- Sep 14, 2011
-
-
John McCall authored
the builtin is really just a predefined declaration. These are totally valid to cast. llvm-svn: 139657
-
- Sep 13, 2011
-
-
Douglas Gregor authored
language options. Use that .def file to declare the LangOptions class and initialize all of its members, eliminating a source of annoying initialization bugs. AST serialization changes are next up. llvm-svn: 139605
-
- Sep 10, 2011
-
-
Julien Lerouge authored
annotate global, local variables, struct fields, or arbitrary statements (using the __builtin_annotation), rdar://8037476. llvm-svn: 139423
-
- Sep 09, 2011
-
-
John McCall authored
feature akin to the ARC runtime checks. Removes a terrible hack where IR gen needed to find the declarations of those symbols in the translation unit. llvm-svn: 139404
-
Argyrios Kyrtzidis authored
instead of codegen waiting to consume such a declaration, which won't happen if that decls are coming from a PCH. Fixes rdar://10028656. llvm-svn: 139359
-
- Sep 02, 2011
-
-
Douglas Gregor authored
builtin types (When requested). This is another step toward making ASTUnit build the ASTContext as needed when loading an AST file, rather than doing so after the fact. No actual functionality change (yet). llvm-svn: 138985
-
- Aug 23, 2011
-
-