summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Add hasLocalStorage/hasGlobalStorage matchers.Samuel Benzaquen2014-06-054-0/+68
| | | | | | | | | | | | | | Summary: Add hasLocalStorage/hasGlobalStorage matchers for VarDecl nodes. Update the doc. Also add them to the dynamic registry. Reviewers: klimek Subscribers: klimek, cfe-commits Differential Revision: http://reviews.llvm.org/D4034 llvm-svn: 210278
* Fix bot for named register testRenato Golin2014-06-051-1/+1
| | | | llvm-svn: 210275
* Add pointer types to global named registerRenato Golin2014-06-055-5/+61
| | | | | | | | | | This patch adds support for pointer types in global named registers variables. It'll be lowered as a pair of read/write_register and inttoptr/ptrtoint calls. Also adds some early checks on types on SemaDecl to avoid the assert. Tests changed accordingly. (PR19837) llvm-svn: 210274
* Document how to select build configuration with Visual C++ IDE or command line.Yaron Keren2014-06-051-0/+3
| | | | llvm-svn: 210273
* Added gdb-remote test for software breakpoints.Todd Fiala2014-06-052-17/+140
| | | | | | | | | | Tests $Z0 and $z0. Extends test exe get-code-address-hex: to take a function name. Enabled for debugserver, disabled for llgs. Implementing in llgs branch next. llvm-svn: 210272
* [PPC64LE] Temporarily disable VSX support in little-endian modeBill Schmidt2014-06-051-0/+5
| | | | | | | | | | This is a preliminary patch for the PowerPC64LE support. In stage 1 of the vector support, we will support the VMX (Altivec) instruction set, but will not yet support the VSX instructions. This is merely a staging issue to provide functional vector support as soon as possible. llvm-svn: 210271
* [mips] Add macros _MIPS_ISA and __mips_isa_rev (same expansion as defined by ↵Matheus Almeida2014-06-052-1/+28
| | | | | | | | | | | | | | GCC). Summary: The Linux Kernel is one example of a piece of software that relies on them. Reviewers: atanasyan Reviewed By: atanasyan Differential Revision: http://reviews.llvm.org/D3756 llvm-svn: 210270
* Fix equalsNode() to accept pointers to derived types.Samuel Benzaquen2014-06-053-43/+29
| | | | | | | | | | | | | | | Summary: Move the 'const' in the AST_*MATCHER_P* macros to the right of ParamType to avoiad applying the constness on the wrong level when ParamType is a pointer. Change equalsNode() to explicitly accept 'const Decl*' or 'const Stmt*'. Reviewers: klimek Subscribers: klimek, cfe-commits Differential Revision: http://reviews.llvm.org/D3994 llvm-svn: 210269
* Remove unused defines from lldb driver.Todd Fiala2014-06-051-3/+0
| | | | | | | | See http://reviews.llvm.org/D3965 for details. Change by Thiago Farina. llvm-svn: 210268
* [asancov] Faster coverage in memory-mapped mode.Evgeniy Stepanov2014-06-053-21/+26
| | | | | | | | Use caller pc of __sanitizer_cov_module_init to figure out when 2 sequential calls are from the same module; skip .sancov.map file update in this case. llvm-svn: 210267
* [asancov] Fix coverage line info some more.Evgeniy Stepanov2014-06-052-19/+55
| | | | | | | Now it should always point to the opening brace of the function (in -asan-coverage=1 mode). llvm-svn: 210266
* Add missing const specifier to a const method.Evgeniy Stepanov2014-06-052-2/+2
| | | | llvm-svn: 210265
* XFAIL: test/DebugInfo/missing-abstract-variable.ll on s390x as wellUlrich Weigand2014-06-051-1/+1
| | | | llvm-svn: 210264
* [SystemZ] Do not install IfConverter pass at -O0Ulrich Weigand2014-06-051-1/+2
| | | | | | | | When not optimizing, do not run the IfConverter pass, this makes debugging more difficult (and causes a testsuite failure in DebugInfo/unconditional-branch.ll). llvm-svn: 210263
* [mips] Modify long branch for NaCl:Sasa Stankovic2014-06-052-6/+64
| | | | | | | | | * Move the instruction that changes sp outside of the branch delay slot. * Bundle-align the target of indirect branch. Differential Revision: http://llvm-reviews.chandlerc.com/D3928 llvm-svn: 210262
* Prevent hoisting the instruction whose def might be clobbered by the terminator.Sasa Stankovic2014-06-052-4/+155
| | | | llvm-svn: 210261
* Allow per-file clang-tidy options.Alexander Kornienko2014-06-0511-103/+266
| | | | | | | | | | | | | | | | | | Summary: This patch makes it possible for clang-tidy clients to provide different options for different translation units. The option, which doesn't make sense to be file-dependent, was moved to a separate ClangTidyGlobalOptions struct. Added parsing of ClangTidyOptions. Reviewers: klimek Reviewed By: klimek Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D3979 llvm-svn: 210260
* [asan] asan_device_setup: extend search pathEvgeniy Stepanov2014-06-051-2/+2
| | | | | | In standalone build asan-rt is stored in yet another path. llvm-svn: 210259
* [Mips] Make dynlib-dynsym.test self contained.Simon Atanasyan2014-06-052-7/+76
| | | | llvm-svn: 210258
* [asan] Add 'asan' to asan test deps.Evgeniy Stepanov2014-06-051-1/+1
| | | | | | | | This sound like a good idea in general. Also, without this on Android we get add_lit_testsuite() with empty DEPENDS list, and it does not work well. llvm-svn: 210257
* [asan] Fix lit tests setup on Android.Evgeniy Stepanov2014-06-051-1/+1
| | | | | | Pass cflags in a way that's compatible with standalone compiler-rt build. llvm-svn: 210256
* [asan] Use -pthread instead of -lpthread in tests.Evgeniy Stepanov2014-06-052-3/+3
| | | | llvm-svn: 210255
* [mips] Fix triple.Matheus Almeida2014-06-052-2/+2
| | | | | | Mips2 is a 32-bit architecture. llvm-svn: 210254
* Fix driver warning about -pthread on Android.Evgeniy Stepanov2014-06-052-3/+9
| | | | | | -pthread is no-op on Android. Suppress the unused argument warning. llvm-svn: 210253
* Fix driver warning about -shared-libasan on Android.Evgeniy Stepanov2014-06-052-2/+10
| | | | | | | Asan runtime library is always shared on Android, and -shared-libasan is no-op. Suppress the unused argument warning. llvm-svn: 210252
* XCore target: Fix 'typestring' binding qualifier to the array and not the typeRobert Lytton2014-06-052-16/+21
| | | | | | Differential Revision: http://reviews.llvm.org/D3949 llvm-svn: 210250
* lld (build with configur and make) Enable buildIain Sandoe2014-06-051-3/+3
| | | | | | | r210177 added Makefiles to the lld project. This revision enables the automatic build of lld when the sources are found in tools/lld. llvm-svn: 210245
* R600: Fix test. Using wrong check prefix.Matt Arsenault2014-06-051-21/+21
| | | | llvm-svn: 210244
* Revert "[PECOFF] Support COMDAT associative sections."Rui Ueyama2014-06-057-146/+11
| | | | | | This reverts accidental commit r210240. llvm-svn: 210243
* Add SymbolTable::isCoalescedAwayRui Ueyama2014-06-053-21/+11
| | | | | | | isCoalescedAway(x) is faster than replacement(x) != x as the former does not follow the replacement atom chain. Also it's easier to use. llvm-svn: 210242
* Print error message in LinkOnce handler.Rui Ueyama2014-06-052-15/+13
| | | | | | Rather than outside of the handler function to make the code simple. llvm-svn: 210241
* [PECOFF] Support COMDAT associative sections.Rui Ueyama2014-06-057-11/+146
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | COFF supports a feature similar to ELF's section groups. This patch implements it. In ELF, section groups are identified by their names, and they are treated somewhat differently from regular symbols. In COFF, the feature is realized in a more straightforward way. A section can have an annotation saying "if Nth section is linked, link this section too." Implementing such feature is easy. We can add a reference from a target atom to an original atom, so that if the target is linked, the original atom is also linked. If not linked, both will be dead-stripped. So they are treated as a group. I added a new reference type, kindAssociate. It does nothing except preventing referenced atoms from being dead-stripped. No change to the Resolver is needed. Reviewers: Bigcheese, shankarke, atanasyan Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D3946 llvm-svn: 210240
* Fix coverage for files with global constructors again. Adds a testcase to ↵Nick Lewycky2014-06-052-0/+68
| | | | | | the commit from r206671, as requested by David Blaikie. llvm-svn: 210239
* Changing this line of code back to the way it was before Alp's config.h ↵Puyan Lotfi2014-06-051-0/+1
| | | | | | | | | clean up changes. I've already spoken to Alp and he signed off on making this one change, so that our buildbots go green in the short term. llvm-svn: 210238
* Revert r210221 again, due to a crash Richard Smith has provided involving ↵David Blaikie2014-06-051-2/+1
| | | | | | | | self-hosting LLVM with libc++. Test case coming, once I reduce it. llvm-svn: 210236
* Remove's uses of sys/timeb.h for Android.Dan Albert2014-06-051-1/+3
| | | | | | Android is removing sys/timeb.h because it was removed in POSIX 2008. llvm-svn: 210235
* DebugInfo: Reuse existing LexicalScope to retrieve the scope's MDNode, ↵David Blaikie2014-06-052-7/+2
| | | | | | | | | rather than looking it up through the DebugLoc. No functional change intended, just streamlines the abstract variable lookup/construction to use a common entry point. llvm-svn: 210234
* DebugInfo: Roll argument insertion into variable insertion to ensure ↵David Blaikie2014-06-051-6/+5
| | | | | | | | arguments are correctly handled in all cases. No functional change intended. llvm-svn: 210233
* [Deadlock detector] Fix CMake build rules for shared runtimeAlexey Samsonov2014-06-051-12/+9
| | | | llvm-svn: 210232
* PR19388: DebugInfo: Emit dead arguments in their originally declared order.David Blaikie2014-06-052-5/+86
| | | | | | | | | | | | | | | | | | | | | | | Unused arguments were not being added to the argument list, but instead treated as arbitrary scope variables. This meant they weren't carefully added in the original argument order. In this particular example, though, it turns out the argument is only /mostly/ unused (well, actually it's entirely used, but in a specific way). It's a struct that, due to ABI reasons, is decomposed into chunks (exactly one chunk, since it has one member) and then passed. Since only one of those chunks is used (SROA, etc, kill the original reconstitution code) we don't have a location to describe the whole variable. In this particular case, since the struct consists of just the one int, once we have partial location information, this should have a location that describes the entire variable (since the piece is the entirety of the object). And at some point we'll need to describe the location of even /entirely/ unused arguments so that they can at least be printed on function entry. llvm-svn: 210231
* Bugfix: don't assert if someone manages to declare an operator new/delete ↵Richard Smith2014-06-052-3/+6
| | | | | | template before the builtin operator new/delete. llvm-svn: 210230
* Use AArch64 instead of now removed ARM64 in test configsAlexey Samsonov2014-06-053-3/+3
| | | | llvm-svn: 210229
* DebugInfo: Add comments/assert description to r209674 based on Eric ↵David Blaikie2014-06-051-2/+4
| | | | | | Christopher's post-commit review feedback. llvm-svn: 210228
* We've got a getSlotSize call already that we use everywhere else,Eric Christopher2014-06-051-2/+3
| | | | | | use it here too. llvm-svn: 210227
* R600/SI: Match rsq instructionsMatt Arsenault2014-06-052-2/+32
| | | | llvm-svn: 210226
* Flush C stdio streams upon process terminationReid Kleckner2014-06-052-6/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Due to what can only be described as a CRT bug, stdout and amazingly even stderr are not always flushed upon process termination, especially when the system is under high threading pressure. I have found two repros for this: 1) In lib\Support\Threading.cpp, change sys::Mutex to an std::recursive_mutex and run check-clang. Usually between 30 and 40 tests will fail. 2) Add OutputDebugStrings in code that runs during static initialization and static shutdown. This will sometimes generate similar failures. After a substantial amount of troubleshooting and debugging, I found that I could reproduce this from the command line without running check-clang. Simply make the mutex change described in #1, then manually run the following command many times by running it once, then pressing Up -> Enter very quickly: D:\src\llvm\build\vs2013\Debug\bin\c-index-test.EXE -cursor-at=D:\src\llvm\tools\clang\test\Index\targeted-preamble.h:2:15 D:\src\llvm\tools\clang\test\Index\targeted-cursor.c -include D:\src\llvm\build\vs2013\tools\clang\test\Index\Output\targeted-cursor.c.tmp.h -Xclang -error-on-deserialized-decl=NestedVar1 -Xclang -error-on-deserialized-decl=TopVar | D:\src\llvm\build\vs2013\Debug\bin\FileCheck.EXE D:\src\llvm\tools\clang\test\Index\targeted-cursor.c -check-prefix=PREAMBLE-CURSOR1 Sporadically they will fail, and attaching a debugger to a failed instance indicates that stdin of FileCheck.exe is empty. Note that due to the repro in #2, we can rule out a bug in the STL's mutex implementation, and instead conclude that this is a real flake in the windows test harness. Test Plan: Without patch: Ran check-clang 10 times and saw over 30 Unexpected failures on every run. With patch: Ran check-clang 10 times and saw 0 unexpected failures across all runs. Reviewers: rnk Differential Revision: http://reviews.llvm.org/D4021 Patch by Zachary Turner! llvm-svn: 210225
* 80-columns.Eric Christopher2014-06-051-1/+2
| | | | llvm-svn: 210224
* Remove uses of the TargetMachine from X86FrameLowering.Eric Christopher2014-06-053-19/+25
| | | | llvm-svn: 210223
* Use nullptrMatt Arsenault2014-06-051-3/+2
| | | | llvm-svn: 210222
* DebugInfo: Reapply r209984 (reverted in r210143), asserting that abstract ↵David Blaikie2014-06-045-26/+59
| | | | | | | | | | | | | | | | | DbgVariables have DIEs. Abstract variables within abstract scopes that are entirely optimized away in their first inlining are omitted because their scope is not present so the variable is never created. Instead, we should ensure the scope is created so the variable can be added, even if it's been optimized away in its first inlining. This fixes the incorrect debug info in missing-abstract-variable.ll (added in r210143) and passes an asserts self-hosting build, so hopefully there's not more of these issues left behind... *fingers crossed*. llvm-svn: 210221
OpenPOWER on IntegriCloud