summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Use MapVector::pop_back() per LLVM r175538.Douglas Gregor2013-02-191-1/+1
| | | | llvm-svn: 175539
* Remove my bogus MapVector::erase() with a narrower ::pop_back(), and add a ↵Douglas Gregor2013-02-192-8/+19
| | | | | | unit test. llvm-svn: 175538
* Hexagon: Sync TSFlags in MCTargetDesc/HexagonBaseInfo.h withJyotsna Verma2013-02-191-28/+60
| | | | | | HexagonInstrFormats.td. llvm-svn: 175537
* Clean up HiPE prologue emission a bit and avoid signed arithmetic tricks.Benjamin Kramer2013-02-191-43/+47
| | | | | | No intended functionality change. llvm-svn: 175536
* [docs] Rename to permit wider variety of content.Sean Silva2013-02-192-4/+4
| | | | | | | | | | | I don't want to rule out the possibility of linking to e.g. interesting blog posts about uses of Clang, so avoid restricting the content to "projects". This breaks URL compatibility, but this document was committed less than an hour ago so hopefully nobody has linked to it yet. llvm-svn: 175535
* [docs] Revise content on ExternalProjectsUsingClang page.Sean Silva2013-02-191-6/+22
| | | | llvm-svn: 175534
* Correctly format macro with unfinished template declaration.Daniel Jasper2013-02-192-7/+12
| | | | | | | | | We can now format: #define A template <typename T> Before this created a segfault :-/. llvm-svn: 175533
* Support in hasDeclaration for types with getDecl()Edwin Vane2013-02-194-27/+72
| | | | | | | | | | | | Using a new metafunction for detecting the presence of the member 'getDecl' in a type T, added support to hasDeclaration for any such type T. This allows hasDecl() to be replaced and enables several other subclasses of clang::Type to use hasDeclaration. Updated unittests and LibASTMatchersReference.html. Reviewers: klimek llvm-svn: 175532
* Move LLVM_LIBRARY_VISIBILITY for consistency with what was done toRafael Espindola2013-02-191-1/+1
| | | | | | PPCJITInfo.cpp in r175394. llvm-svn: 175531
* Fix typoEli Bendersky2013-02-191-1/+1
| | | | llvm-svn: 175530
* [docs] Introduce ExternalProjectsUsingClang.rstSean Silva2013-02-192-0/+57
| | | | | | | | | A couple concrete examples are sure to be a win. If you know of any other external projects using Clang, please let me know! Patch by Laszlo Nagy! (with a title tweak by me) llvm-svn: 175529
* Fix GCMetadaPrinter::finishAssembly not executed, patch by Yiannis Tsiouris.Benjamin Kramer2013-02-193-40/+34
| | | | | | | | | | | Due to the execution order of doFinalization functions, the GC information were deleted before AsmPrinter::doFinalization was executed. Thus, the GCMetadataPrinter::finishAssembly was never called. The patch fixes that by moving the code of the GCInfoDeleter::doFinalization to Printer::doFinalization. llvm-svn: 175528
* Make ARMAsmPrinter pass name more precise and fix comment.Eli Bendersky2013-02-191-6/+2
| | | | llvm-svn: 175527
* Make pass name more precise and fix comment.Eli Bendersky2013-02-191-6/+2
| | | | llvm-svn: 175525
* Minor test runner improvemenstDaniel Malea2013-02-194-7/+32
| | | | | | | | - rework the way SBDebugger.SetAsync() is used to avoid side effects (reset original value at TearDownHook) - refactor expectedFailureClang (and add expectedFailureGcc decorator) - mark TestChangeValueAPI.py as expectedFailureGcc due to PR-15039 llvm-svn: 175523
* Update TestVBool Makefile to allow building test program with gccDaniel Malea2013-02-191-1/+4
| | | | | | - do not pass (incompatible option) -stdlib=libstdc++ option if using GCC as test compiler llvm-svn: 175522
* Update Makefile to use build-compiler (CC) for LLDB testingDaniel Malea2013-02-191-1/+1
| | | | | | - Should allow tests to run without 'clang' installed llvm-svn: 175521
* ARM NEON: Merge a f32 bitcast of a v2i32 extracteltArnold Schwaighofer2013-02-192-0/+31
| | | | | | | | | | | | | | A vectorized sitfp on doubles will get scalarized to a sequence of an extract_element of <2 x i32>, a bitcast to f32 and a sitofp. Due to the the extract_element, and the bitcast we will uneccessarily generate moves between scalar and vector registers. The patch fixes this by using a COPY_TO_REGCLASS and a EXTRACT_SUBREG to extract the element from the vector instead. radar://13191881 llvm-svn: 175520
* R600: Add AR_X to the R600_TReg_X register class.Tom Stellard2013-02-191-1/+1
| | | | | NOTE: This is a candidate for the Mesa stable branch. llvm-svn: 175519
* R600: Mark all members of the TRegMem register class as reservedTom Stellard2013-02-191-0/+6
| | | | | | | | This stops the Machine Verifier from complaining about uses of undefined physical registers. NOTE: This is a candidate for the Mesa stable branch. llvm-svn: 175518
* R600: Fix scheduler crash caused by invalid MachinePointerInfoTom Stellard2013-02-191-1/+1
| | | | | | | | | | | | | | Kernel function arguments are lowered to loads from the PARAM_I address space. When creating these load instructions, we were initializing their MachinePointerInfo with an Arguement object that was not attached to any function. This was causing the MachineScheduler to crash when it tried to access the parent of the Arguement. This has been fixed by initializing the MachinePointerInfo with a UndefValue instead. NOTE: This is a candidate for the Mesa stable branch. llvm-svn: 175517
* R600: Fix tracking of implicit defs in the IndirectAddressing passTom Stellard2013-02-191-7/+25
| | | | | | | | | In some cases, we were losing track of live implicit registers which was creating dead defs and causing the scheduler to produce invalid code. NOTE: This is a candidate for the Mesa stable branch. llvm-svn: 175516
* [sanitizer] Fix FileOps test on Android.Evgeniy Stepanov2013-02-191-0/+10
| | | | llvm-svn: 175515
* [asan] don't run the long double test if long double is the same as doubleKostya Serebryany2013-02-191-0/+1
| | | | llvm-svn: 175514
* [sanitizer] Slightly lower allocator test memory consumption.Evgeniy Stepanov2013-02-191-1/+1
| | | | | | This way it fits on a random 1G device. llvm-svn: 175513
* [ASan] Allow ASan default runtime options be overriden at compile time by ↵Alexey Samsonov2013-02-192-3/+19
| | | | | | providing ASAN_DEFAULT_OPTIONS macro llvm-svn: 175512
* [Sanitizer] Allow runtime flags be separated by colon as well as spaceAlexey Samsonov2013-02-192-2/+20
| | | | llvm-svn: 175511
* [msan] Use slow stack unwinder in UMR reports.Evgeniy Stepanov2013-02-192-5/+11
| | | | llvm-svn: 175510
* Fix initialization-order bug in llvm::Support::TimeValue. TimeValue::now() ↵Alexey Samsonov2013-02-193-9/+18
| | | | | | is explicitly called during module initialization of lib/Support/Process.cpp. It reads the field of global object PosixZeroTime, which is not guaranteed to be initialized at this point. Found by AddressSanitizer with -fsanitize=init-order option. llvm-svn: 175509
* [asan] instrument memory accesses with unusual sizesKostya Serebryany2013-02-196-4/+41
| | | | | | | | | | | | | | | | This patch makes asan instrument memory accesses with unusual sizes (e.g. 5 bytes or 10 bytes), e.g. long double or packed structures. Instrumentation is done with two 1-byte checks (first and last bytes) and if the error is found __asan_report_load_n(addr, real_size) or __asan_report_store_n(addr, real_size) is called. asan-rt part Also fix lint. llvm-svn: 175508
* [asan] instrument memory accesses with unusual sizesKostya Serebryany2013-02-192-30/+80
| | | | | | | | | | | | | | | | | This patch makes asan instrument memory accesses with unusual sizes (e.g. 5 bytes or 10 bytes), e.g. long double or packed structures. Instrumentation is done with two 1-byte checks (first and last bytes) and if the error is found __asan_report_load_n(addr, real_size) or __asan_report_store_n(addr, real_size) is called. Also, call these two new functions in memset/memcpy instrumentation. asan-rt part will follow. llvm-svn: 175507
* Fix a bug in mutex_try_to_lock. This was previously trying to unlock a ↵David Chisnall2013-02-191-1/+0
| | | | | | | | | | mutex that it didn't own, causing an assertion failure in mutex.cpp. The issue was that the unique_lock went out of scope, releasing the lock on m, then m.unlock() was called on an already-unlocked mutex. This change removes the spurious m.unlock() call. If this test was previously passing for anyone with assertions enabled, then they should investigate bugs in their pthread implementation, as pthread_unlock() should not return 0 if the mutex is currently unlocked. llvm-svn: 175506
* [Sanitizer] If -fsanitize-blacklist= option is not explicitly specified, ↵Alexey Samsonov2013-02-192-0/+21
| | | | | | make Clang look for the default sanitizer-specific blacklist in the resource directory. llvm-svn: 175505
* [msan] Fix ReExec on linux.Evgeniy Stepanov2013-02-192-3/+7
| | | | | | | execle(argv[0], ...) is wrong, because argv[0] may contain a PATH-resolvable program name. Execute /proc/self/exe instead. llvm-svn: 175504
* [sanitizer] Fix Android build.Evgeniy Stepanov2013-02-192-4/+10
| | | | llvm-svn: 175503
* Add the missing 'static' keyword to the testTimur Iskhodzhanov2013-02-191-2/+2
| | | | llvm-svn: 175502
* Simplify code. No functionality change.Jakub Staszak2013-02-191-14/+7
| | | | llvm-svn: 175501
* Fix bug in LineState comparison function.Daniel Jasper2013-02-191-13/+13
| | | | | | | | | | | | | | The key bug was if (Other.StartOfLineLevel < StartOfLineLevel) .. instead of if (Other.StartOfLineLevel != StartOfLineLevel) .. Also cleaned up the function to be more consistent in the comparisons. llvm-svn: 175500
* [sanitizer] Add interceptors for localtime and friends.Evgeniy Stepanov2013-02-1911-51/+212
| | | | llvm-svn: 175499
* [tsan] use our own GetEnv instead of libc's getenvKostya Serebryany2013-02-193-3/+3
| | | | llvm-svn: 175498
* Fix capitalization in comment to match function name.Craig Topper2013-02-191-1/+1
| | | | llvm-svn: 175497
* Fix a case where a kext module was being added to the TargetJason Molenda2013-02-191-1/+1
| | | | | | twice. llvm-svn: 175496
* Change the order that the DarwinKernel DynamicLoader plugin usesJason Molenda2013-02-192-41/+14
| | | | | | | | | | | to search for kexts on the local system -- the ModuleList FindModule() method is the best first attempt, only call Symbols::DownloadObjectAndSymbolFile() if that has failed and this is the kernel binary which really needs to have its symbols located. <rdar://problem/13241893> llvm-svn: 175495
* Experiment with printing a warning message when lldb is unable toJason Molenda2013-02-191-1/+11
| | | | | | | | | | | find a binary on the debugger-host during a kernel debug session for a kernel extension (kext). This may prove to be too verbose in typical usage, particularly if there are many third-party kexts. We'll try this and see how it works. <rdar://problem/13080833> llvm-svn: 175494
* Grammar.Eric Christopher2013-02-191-1/+1
| | | | llvm-svn: 175493
* More grammar.Eric Christopher2013-02-191-1/+1
| | | | llvm-svn: 175492
* Always print the kernel UUID and load address if we are working withJason Molenda2013-02-191-3/+20
| | | | | | | | | | | a kernel binary - even if we can't find the symbol-rich binary or dSYM on the debugger-system. Print a warning if the symbol-rich binary cannot be located. This more closely emulates the gdb behavior when a kernel debug session failed to locate a kernel binary. <rdar://problem/13016095> llvm-svn: 175491
* More const correcting of stack coloring.Craig Topper2013-02-191-8/+8
| | | | llvm-svn: 175490
* Change the DarwinKernel DyanmicLoader to maintain a persist listJason Molenda2013-02-192-284/+597
| | | | | | | | | | | | of kernel extensions (kexts) that have been loaded into the kernel. Now when we hit the "kexts have changed" breakpoint we can avoid adding kexts multiple times, and can properly detect kext unloads and remove them from the Target's list of modules. <rdar://problem/13107639> <rdar://problem/13191016> llvm-svn: 175489
* Const-correct the stack coloring code.Craig Topper2013-02-191-18/+15
| | | | llvm-svn: 175488
OpenPOWER on IntegriCloud