- Mar 20, 2012
-
-
Benjamin Kramer authored
llvm-svn: 153048
-
Matt Beaumont-Gay authored
llvm-svn: 153046
-
Lang Hames authored
instructions have been scheduled. Handy for tracking down scheduler bugs, or bugs exposed by scheduling. llvm-svn: 153045
-
Matt Beaumont-Gay authored
llvm-svn: 153044
-
Fariborz Jahanian authored
declaration and its siblings. llvm-svn: 153043
-
Howard Hinnant authored
I would really like to write the handlers in terms of C++11 atomics. This would give us the best performance, portablity, and safety tradeoff. Unfortunately I can not yet do that. So I've put the desired code in comments, and reverted the handler getters to the slower but safer legacy atomic intrinsics. llvm-svn: 153041
-
Kostya Serebryany authored
[asan] don't emit __asan_mapping_offset/__asan_mapping_scale by default -- they are currently used only for experiments llvm-svn: 153040
-
Howard Hinnant authored
I've moved __cxa_terminate_handler, __cxa_unexpected_handler and __cxa_new_handler from the public header cxxabi.h into the private header cxa_handlers.hpp. During this move I've also moved them from namespace __cxxabiapple into the global namespace. They are, and have always been extern C and so the namespace (or lack of it) does not affect their ABI. In general external clients should not reference these symbols. They are atomic variables and will be changing into C++11 atomic variables in the future. However for those few clients who really need access to them, their name, mangling, size, alignment and layout will remain stable. You just may need your own declaration of them. Include guards have been added to the private header cxa_exception.hpp. The private header cxa_default_handlers.hpp has been removed and the default handlers are now file-static. Include guards have been added to the private header cxa_handlers.hpp. llvm-svn: 153039
-
NAKAMURA Takumi authored
llvm-svn: 153038
-
NAKAMURA Takumi authored
On Win32 hosts, ';' is used for path separator. llvm-svn: 153037
-
- Mar 19, 2012
-
-
Howard Hinnant authored
Allow libc++ to be built with CMake from within the LLVM tree. The libc++ part is just some renaming as the variable was already in use, conflicting with something else in the LLVM tree. Contributed by Ruben Van Boxem. llvm-svn: 153036
-
Duncan Sands authored
llvm-svn: 153035
-
Nico Weber authored
This regressed in r152583. Also add a test to make sure it doesn't regress again. llvm-svn: 153034
-
Preston Gurd authored
X86InstrCompiler.td. It also adds –mcpu-generic to the legalize-shift-64.ll test so the test will pass if run on an Intel Atom CPU, which would otherwise produce an instruction schedule which differs from that which the test expects. llvm-svn: 153033
-
Benjamin Kramer authored
llvm-svn: 153031
-
Chandler Carruth authored
violations I introduced. Also sort some of the instructions to get a more consistent ordering. Suggestions on still better / more consistent formatting would be welcome. I'm actually tempted to use a macro to define all of the delegate methods... llvm-svn: 153030
-
Chandler Carruth authored
type hierarchy. I wanted to use this for the inline cost rewrite, and found it was missing. llvm-svn: 153029
-
Nick Lewycky authored
overflow checking multiply intrinsic as well. Add a test for this, updating the test from grep to FileCheck. llvm-svn: 153028
-
Craig Topper authored
llvm-svn: 153027
-
Sebastian Redl authored
llvm-svn: 153026
-
- Mar 18, 2012
-
-
Benjamin Kramer authored
llvm-svn: 153013
-
Benjamin Kramer authored
llvm-svn: 153012
-
Nick Lewycky authored
Thanks to Eli for noticing the discrepancy. llvm-svn: 153011
-
Jordy Rose authored
[analyzer] Mark a failed-realloc's result as an interesting symbol between the realloc call and the null check, so we get nicer path notes. Fixes a regression introduced by the diagnostic pruning added in r152361. This is accomplished by calling markInteresting /during/ path diagnostic generation, and as such relies on deterministic ordering of BugReporterVisitors -- namely, that BugReporterVisitors are run in /reverse/ order from how they are added. (Right now that's a consequence of storing visitors in an ImmutableList, where new items are added to the front.) It's a little hacky, but it works for now. I think this is the best we can do without storing the relation between the old and new symbols, and that would be a hit whether or not there ends up being an error. llvm-svn: 153010
-
Aaron Ballman authored
llvm-svn: 153009
-
David Blaikie authored
Instead of suggesting " = 0" for "char c();", suggest " = '\0'", and similarly for other char types (wide, 16, and 32). Add tests for all these, and since this means testing such hints under C++0x, add tests for some untested C++0x hint cases in the existing code, including suggesting nullptr for pointer initialization. This sets up the initialization helper to provide better type fidelity that will be especially helpful for non-assignment cases (such as fixit-correcting NULL usage in function calls (eg: foo(char) + foo(NULL) => foo('\0') instead of the less informative foo(0))) llvm-svn: 153008 -
Jordy Rose authored
[analyzer] Use a FoldingSet to cache simple RetainSummary instances, rather than explicitly keeping DoNothing and StopTracking summaries and nothing else. I tried to test the effects of this change on memory usage and run time, but what I saw on retain-release.m was indistinguishable from noise (debug and release builds). Even so, some caveman profiling showed 101 cache hits that we would have generated new summaries for before (i.e. not default or stop summaries), and the more code we analyze, the more memory we should save. Maybe we should have a standard project for benchmarking the retain count checker's memory and time? llvm-svn: 153007
-
Douglas Gregor authored
nested-name-specifier for a class template declaration. Fixes PR12291. llvm-svn: 153006
-
Douglas Gregor authored
declarator-ids that occur at class scope. Fixes PR8019. llvm-svn: 153002
-
Jordy Rose authored
[analyzer] Unify retain-count summary generation for class and instance methods. No functionality change. llvm-svn: 153001
-
Jordy Rose authored
Kill cocoa::deriveNamingConvention and cocoa::followsFundamentalRule. They are now just simple wrappers around method families, and method decls can cache method family lookups. Also, no one is using them right now. The one difference between ObjCMethodDecl::getMethodFamily and Selector::getMethodFamily is that the former will do some additional sanity checking, and since CoreFoundation types don't look like Objective-C objects, an otherwise interesting method will get a method family of OMF_None. Future clients that use method families should consider how they want to handle CF types. llvm-svn: 153000
-
Benjamin Kramer authored
llvm-svn: 152999
-
Jordy Rose authored
The cocoa::deriveNamingConventions helper is just using method families anyway now, and the way RetainSummaryTemplate works means we're allocating an extra summary for every method with a relevant family. Also, fix RetainSummaryTemplate to do the right thing w/r/t annotating an /existing/ summary. This was probably the real cause of <rdar://problem/10824732> and the fix in r152448. llvm-svn: 152998
-
Craig Topper authored
Reorder includes in Target backends to following coding standards. Remove some superfluous forward declarations. llvm-svn: 152997
-
Fariborz Jahanian authored
writing @synchronized statement; do not call locking expression more than once and support early exits in @synchronized's statement block (such as return). llvm-svn: 152993
-
Benjamin Kramer authored
This is particularly helpful as both arguments tend to be constants. llvm-svn: 152991
-
- Mar 17, 2012
-
-
NAKAMURA Takumi authored
llvm-svn: 152982
-
Craig Topper authored
llvm-svn: 152981
-
Craig Topper authored
llvm-svn: 152980
-
Craig Topper authored
Pass TargetOptions to HexagonTargetMachine constructor by reference to match other targets and the base class. llvm-svn: 152979
-