summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* lli: [MCJIT] Suppress "__main" for cygming in ↵NAKAMURA Takumi2012-10-051-0/+12
| | | | | | | | LLIMCJITMemoryManager::getPointerToNamedFunction(), like legacy JITMemoryManager's. CRT's __main (aka premain) invokes global ctors on cygming. See also PR3897. llvm-svn: 165312
* [CMake] Enhance add_llvm_external_project.NAKAMURA Takumi2012-10-051-3/+9
| | | | | | | | | | | | - Substitute hyphen to underscore, s/-/_/g, as the variable name. - Additional parameter can be specified as the name of directory. e.g.) add_llvm_external_project(clang-tools-extra extra) - LLVM_EXTERNAL_CLANG_TOOLS_EXTRA_SOURCE_DIR=/path/to/llvm-srcroot/tools/clang/tools/extra, by default. - Build directory is in ${CMAKE_CURRENT_BINARY_DIR}/extra llvm-svn: 165311
* Fix incorrect setting of EI_DATASid Manning2012-10-051-1/+3
| | | | llvm-svn: 165310
* SROA.cpp: Fix a warning, [-Wunused-variable]NAKAMURA Takumi2012-10-051-0/+1
| | | | llvm-svn: 165309
* Convert to unix line endings.Rafael Espindola2012-10-051-68/+68
| | | | llvm-svn: 165308
* If !asan_inited, call internal versions of libc functions where available.Alexander Potapenko2012-10-051-24/+8
| | | | | | This is to remove unnecessary #if directives. llvm-svn: 165307
* Move this test a bit later, after the point at which we know that we eitherDuncan Sands2012-10-051-10/+10
| | | | | | | | have an alloca or a parameter, since then the alloca test should make sense to readers, while before it probably appears too specific. No functionality change. llvm-svn: 165306
* Move methods out-of-line.Bill Wendling2012-10-052-211/+291
| | | | | | | | | The internal representation of the Attributes class will be opaque. All of the query methods will need to query the opaque class. Therefore, these methods need to be out-of-line. No functionality change intended. llvm-svn: 165305
* Use method to query for attributes.Bill Wendling2012-10-051-1/+1
| | | | llvm-svn: 165304
* Remove some encoding bits I forgot to remove from SETB_C16r and SETB_C64r in ↵Craig Topper2012-10-051-3/+2
| | | | | | r165302. llvm-svn: 165303
* Move expansion of SETB_C(8/16/32/64)r from MCInstLower to ↵Craig Topper2012-10-053-19/+17
| | | | | | ExpandPostRAPseudos and mark them as pseudos in the td file. llvm-svn: 165302
* one more small fix for the gdb-comes-first column orderJason Molenda2012-10-051-1/+1
| | | | llvm-svn: 165301
* Change the "bt" command alias defined in ↵Jason Molenda2012-10-051-4/+20
| | | | | | | | | | | | CommandInterpreter::LoadCommandDictionary. It is now a regex command alias that more faithfully emulates gdb's behavior, most importantly, "bt 5" will backtrace 5 frames of the currently selected thread. "bt all" still backtraces all threads (unlike gdb) and for users who have learned to use "bt -c 5", that form is still accepted. llvm-svn: 165300
* Symbols::LocateMacOSXFilesUsingDebugSymbols() - perform tildeJason Molenda2012-10-051-1/+1
| | | | | | expansion on the dSYM path we find if it starts with a tilde. llvm-svn: 165299
* Added forgotten break.Abramo Bagnara2012-10-051-2/+2
| | | | llvm-svn: 165298
* typeoJason Molenda2012-10-051-2/+2
| | | | llvm-svn: 165297
* typeoJason Molenda2012-10-051-1/+1
| | | | llvm-svn: 165296
* Update the intro paragraph of text describing the table below toJason Molenda2012-10-051-2/+4
| | | | | | reflect that the columns were just swapped. llvm-svn: 165295
* Swap the columns in the lldb & gdb command comparison table. IJason Molenda2012-10-051-223/+229
| | | | | | | | | | | | often hear feedback from people that having the lldb commands on the left hand side is non-intuitive -- they say "I want a *gdb* to *lldb* table, not a *lldb* to *gdb* table". It doesn't seem odious to go from the right-hand column to the left hand column but I've heard this same feedback enough that it's also pointless to keep the format lldb-first, gdb-second when it was an arbitrary choice to begin with. llvm-svn: 165294
* docs: Add HowToSetUpLLVMStyleRTTI.rst.Sean Silva2012-10-053-4/+291
| | | | | | | | | This document describes how to set up LLVM-style RTTI for a class hierarchy. Surprisingly, this was not previously documented. Also, link it into ProgrammersManual.html. llvm-svn: 165293
* tblgen: Use appropriate LLVM-style RTTI functions.Sean Silva2012-10-052-26/+14
| | | | | | | Use isa<> or cast<> when semantically that is what is happening. Also some trivial "style" cleanups at fix sites. llvm-svn: 165292
* tblgen: Replace uses of dynamic_cast<XXXRecTy> with dyn_cast<>.Sean Silva2012-10-054-31/+31
| | | | | | | | This is a mechanical change of dynamic_cast<> to dyn_cast<>. A number of these uses are actually more like isa<> or cast<>, and will be changed to the semanticaly appropriate one in a future patch. llvm-svn: 165291
* tblgen: Put dyn_cast<> infrastructure in place for RecTy hierarchy.Sean Silva2012-10-051-8/+62
| | | | llvm-svn: 165290
* Make sure to generate the right kind of MDNode for enum forward declarations.Eli Friedman2012-10-053-11/+38
| | | | | | PR14029, clang part. llvm-svn: 165289
* Make sure to generate the right kind of MDNode for enum forward declarations.Eli Friedman2012-10-053-19/+17
| | | | | | PR14029, LLVM part. llvm-svn: 165288
* Follow up to r165072. Try a different approach: only move the load when it's ↵Evan Cheng2012-10-052-11/+45
| | | | | | going to be folded into the call. rdar://12437604 llvm-svn: 165287
* Workaround for libstdc++4.6 <atomic> bug: make comment more explicit about ↵Richard Smith2012-10-051-2/+7
| | | | | | what's going on, per Sean Silva's suggestion. llvm-svn: 165286
* Teach the new SROA a new trick. Now we zap any memcpy or memmoves whichChandler Carruth2012-10-052-46/+95
| | | | | | | | | | | | are in fact identity operations. We detect these and kill their partitions so that even splitting is unaffected by them. This is particularly important because Clang relies on emitting identity memcpy operations for struct copies, and these fold away to constants very often after inlining. Fixes the last big performance FIXME I have on my plate. llvm-svn: 165285
* Lift the speculation visitor above all the helpers that are targeted atChandler Carruth2012-10-051-281/+283
| | | | | | | | | | | the rewrite visitor to make the fact that the speculation is completely independent a bit more clear. I promise that this is just a cut/paste of the one visitor and adding the annonymous namespace wrappings. The diff may look completely preposterous, it does in git for some reason. llvm-svn: 165284
* Implement -Wshift-op-parentheses for: a << b + cDavid Blaikie2012-10-054-0/+39
| | | | | | | | | | | | This appears to be consistent with GCC's implementation of the same warning under -Wparentheses. Suppressing a << b + c for cases where 'a' is a user defined type for compatibility with C++ stream IO. Otherwise suggest parentheses around the addition or subtraction subexpression. (this came up when MSVC was complaining (incorrectly, so far as I can tell) about a perceived violation of this within the LLVM codebase, PR14001) llvm-svn: 165283
* Use -object_path_lto when linking executables if building Apple style.Bill Wendling2012-10-051-11/+15
| | | | llvm-svn: 165282
* [libclang] Now that we have a CXModule object, pass it to theArgyrios Kyrtzidis2012-10-053-22/+17
| | | | | | importedASTFile indexing callback. llvm-svn: 165281
* [libclang] Introduce new C functions that provide information about modules:Argyrios Kyrtzidis2012-10-054-0/+131
| | | | | | | | | | | clang_Cursor_getModule clang_Module_getParent clang_Module_getName clang_Module_getFullName clang_Module_getNumTopLevelHeaders clang_Module_getTopLevelHeader llvm-svn: 165280
* [Modules] Introduce Module::TopHeaders which is a set of top-level headersArgyrios Kyrtzidis2012-10-056-8/+47
| | | | | | that are associated with a (sub)module. llvm-svn: 165279
* [preprocessing record] Have PPEntityID be independent of the size of theArgyrios Kyrtzidis2012-10-052-28/+42
| | | | | | | loaded entities vector, otherwise its meaning will change when a module is imported and the vector size changes. llvm-svn: 165278
* [libclang] Introduce CXCursor_ModuleImportDecl cursor kind, used for a moduleArgyrios Kyrtzidis2012-10-054-7/+37
| | | | | | import declaration. llvm-svn: 165277
* Test case for r165275.Chad Rosier2012-10-041-0/+9
| | | | llvm-svn: 165276
* [ms-inline asm] Add support for parsing [Intel dialect] memory operands that useChad Rosier2012-10-041-7/+11
| | | | | | segmented registers. Test case to come. llvm-svn: 165275
* <rdar://problem/12099999> renaming SBStream::Printf to Print in the ↵Enrico Granata2012-10-041-3/+9
| | | | | | scripting world in order to avoid supporting varargs through SWIG llvm-svn: 165274
* If we flow off the end of a value-returning function:Richard Smith2012-10-044-0/+34
| | | | | | | | - outside C++, return undef (behavior is not undefined unless the value is used) - in C++, with -fcatch-undefined-behavior, perform an appropriate trap - in C++, produce an 'unreachable' (behavior is undefined immediately) llvm-svn: 165273
* A tweak to the previous commit to ensure that we don't try to use -> on a ↵Enrico Granata2012-10-041-1/+3
| | | | | | NULL pointer (should not happen but better be safe than sorry) llvm-svn: 165272
* <rdar://problem/12413390> Fixing an issue where synthetic ValueObjects do ↵Enrico Granata2012-10-041-0/+6
| | | | | | not properly resolve their value llvm-svn: 165271
* Rename the Target specific passes in the DataLayout class to be Target agnostic.Micah Villmow2012-10-043-83/+85
| | | | llvm-svn: 165270
* Ran the sources through the compiler with -Wshadow warningsJason Molenda2012-10-0417-54/+48
| | | | | | | | | | | | | | | | | | | | | | | | enabled after we'd found a few bugs that were caused by shadowed local variables; the most important issue this turned up was a common mistake of trying to obtain a mutex lock for the scope of a code block by doing Mutex::Locker(m_map_mutex); This doesn't assign the lock object to a local variable; it is a temporary that has its dtor called immediately. Instead, Mutex::Locker locker(m_map_mutex); does what is intended. For some reason -Wshadow happened to highlight these as shadowed variables. I also fixed a few obivous and easy shadowed variable issues across the code base but there are a couple dozen more that should be fixed when someone has a free minute. <rdar://problem/12437585> llvm-svn: 165269
* Removed a directive to delete the test subdirectoriesSean Callanan2012-10-041-3/+0
| | | | | | | | from LLVM and Clang. This made "svn update" very unpleasant if the original repository was fetched by build-llvm.pl. llvm-svn: 165268
* When merging connsecutive stores, use vectors to store the constant zero.Nadav Rotem2012-10-042-37/+92
| | | | llvm-svn: 165267
* Made the i386 ABI mark EBP as non-volatile,Sean Callanan2012-10-041-1/+1
| | | | | | | because the unwinders typically can find its value. llvm-svn: 165266
* libstdc++-4.6 needs the same common_type fix as libstdc++-4.7. Other than that,Richard Smith2012-10-042-1/+13
| | | | | | Clang can now cope with its eccentricities in C++11 mode. llvm-svn: 165265
* ClangASTContext::GetIndexOfChildWithName - increment the child index we plan ↵Jim Ingham2012-10-041-1/+1
| | | | | | | | to return as we iterate through the ivars. <rdar://problem/12433299> llvm-svn: 165264
* Egriegious hack to support libstdc++4.6's broken <atomic> header, which definesRichard Smith2012-10-044-27/+79
| | | | | | | | a non-inline namespace, then reopens it as inline to try to add its symbols to the surrounding namespace. In this one special case, permit the namespace to be reopened as inline, and patch up the name lookup tables to match. llvm-svn: 165263
OpenPOWER on IntegriCloud