summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* [Hexagon] Adding xtype shift instructions.Colin LeMahieu2014-12-193-0/+330
| | | | llvm-svn: 224604
* [libcxx] Allow the use of ccache when running the test suite.Eric Fiselier2014-12-191-12/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: In order to get the bots running quicker I would like to be able to use ccache with the test suite. This patch adds support for running the test suite using ccache. To use ccache pass `--param=use_ccache=true` when running the test suite. ccache will not cache any command that invokes ld, so the build step needs to be split into two separate compile commands. The cost of splitting the build step into two parts when not using ccache seems to be minimal. On my machine I saw a difference of ~5 seconds on a 5 minute test suite run. A full test suite run with ccache generates about 250MB of cached data. I recorded the following times for running the test suite in the following configurations: - no ccache: 340s - initial ccache run: 380s - rerun with ccache (no changes): 53s. - rerun with ccache (<string> changed): 80s - rerun with ccache (<cmath> changed): 169s - rerun with ccache (<valarray> changed): 69s Reviewers: mclow.lists, jroelofs, danalbert Reviewed By: jroelofs Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D6647 llvm-svn: 224603
* Audit uses of ConstString::AsCString() to make sure they weren't assumingJim Ingham2014-12-198-14/+16
| | | | | | | | they would always get a non-NULL string back. <rdar://problem/19298575> llvm-svn: 224602
* [ASan] Restrict the set of flags overriden at activation.Alexey Samsonov2014-12-191-26/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: Change the way ASan flag parsing is performed at activation: instead of overwriting all ASan and common flags from the activation string, ASan will now only override a handful of whitelisted flags. This is a first step towards making runtime flags immutable after initialization. I plan to re-factor the activation stragegy to the following one: - Parse commandline flags. Override the defaults from compile definition, env var, etc. Flags are immutable at this point. - Initiailize the runtime from commandline flags. - If ASan needs to be started deactivated, stash the runtime state in "asan_deactivated_flags" and deactivate the runtime. - When ASan is activated, override "asan_deactivated_flags" with activation flags, and use it to re-activate the runtime. Test Plan: regression test suite Reviewers: eugenis, kcc Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D6709 llvm-svn: 224601
* [ASan] Move flag validation from ParseFlagsFromString() to InitializeFlags().Alexey Samsonov2014-12-191-5/+5
| | | | llvm-svn: 224600
* [Hexagon] Adding transfers to and from control registers.Colin LeMahieu2014-12-193-1/+70
| | | | llvm-svn: 224599
* [Hexagon] Adding doubleregs for control registers. Renaming control ↵Colin LeMahieu2014-12-194-22/+66
| | | | | | register class. llvm-svn: 224598
* builtins: rely on the compiler for user label prefixSaleem Abdulrasool2014-12-191-12/+6
| | | | | | | | | | clang does not like the definition of builtins. In order to work around this, we use a SUN CC to redefine the generated name. However, this requires that we account for the user label prefix. Rather than hard coding that into the file, rely on the compiler to tell us the information and use the preprocessor to generate the name as we do in the assembly routines. NFC. llvm-svn: 224597
* Allow to disable all sanitizers with "-fno-sanitize=all" option.Alexey Samsonov2014-12-193-5/+24
| | | | | | | | | | | | | | | | | | | | | | Summary: This patch adds "all" sanitizer group. A shortcut "-fno-sanitize=all" can be used to disable all sanitizers for a given source file. "-fsanitize=all" option makes no sense, and will produce an error. This group can also be useful when we add "-fsanitize-recover=<list>" options (patch in http://reviews.llvm.org/D6302), as it would allow to conveniently enable/disable recovery for all specified sanitizers. Test Plan: regression test suite Reviewers: kcc, rsmith Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D6733 llvm-svn: 224596
* Added a fixit to remove empty parens from a C++11 attribute argument list ↵Aaron Ballman2014-12-192-2/+7
| | | | | | when we diagnose this as an error. llvm-svn: 224595
* [DebugInfo] Move all DWARF headers to the public include directory.Frederic Riss2014-12-1932-48/+48
| | | | | | | | | | dsymutil needs access to DWARF specific inforamtion, the small DIContext wrapper isn't sufficient. Other DWARF consumers might want to use it too (I'm looking at you lldb). Differential Revision: http://reviews.llvm.org/D6694 llvm-svn: 224594
* Don't generate lldb inline test Makefiles if Makefile already exists.Zachary Turner2014-12-191-2/+5
| | | | | | | Differential Revision: http://reviews.llvm.org/D6664 Reviewed by: Sean Callanan llvm-svn: 224593
* Fix an address space id reset with array decay'sPekka Jaaskelainen2014-12-192-1/+13
| | | | | | | | | | implicit conversion. The issue was produced with OpenCL C code that called a function with a constant string literal argument. llvm-svn: 224592
* (diagnostics) fix typo in test...Andreas Simbuerger2014-12-191-1/+1
| | | | llvm-svn: 224591
* [BBVectorize] Remove two more redundant assignments.Tilmann Scheller2014-12-191-2/+0
| | | | | | Found by the Clang static analyzer. llvm-svn: 224590
* [BBVectorize] Remove redundant assignment.Tilmann Scheller2014-12-191-1/+0
| | | | | | Found by the Clang static analyzer. llvm-svn: 224589
* Reapply: [InstCombine] Fix visitSwitchInst to use right operand types for ↵Bruno Cardoso Lopes2014-12-192-3/+40
| | | | | | | | | | | | | | | | | | sub cstexpr The visitSwitchInst generates SUB constant expressions to recompute the switch condition. When truncating the condition to a smaller type, SUB expressions should use the previous type (before trunc) for both operands. Also, fix code to also return the modified switch when only the truncation is performed. This fixes an assertion crash. Differential Revision: http://reviews.llvm.org/D6644 rdar://problem/19191835 llvm-svn: 224588
* [LoopVectorize] Remove redundant assignment.Tilmann Scheller2014-12-191-1/+0
| | | | | | Found by the Clang static analyzer. llvm-svn: 224587
* [ARM] Remove dead assignment.Tilmann Scheller2014-12-191-1/+0
| | | | | | Found by the Clang static analyzer. llvm-svn: 224586
* Use ObjCMultipleMethodNames to match the option.Fariborz Jahanian2014-12-192-2/+2
| | | | llvm-svn: 224585
* (diagnostics) Fix typo.Andreas Simbuerger2014-12-191-1/+1
| | | | | | Thanks Albert Cohen. llvm-svn: 224584
* use -0.0 when creating an fneg instructionSanjay Patel2014-12-192-2/+2
| | | | | | | | | | | | | | | | | | | Backends recognize (-0.0 - X) as the canonical form for fneg and produce better code. Eg, ppc64 with 0.0: lis r2, ha16(LCPI0_0) lfs f0, lo16(LCPI0_0)(r2) fsubs f1, f0, f1 blr vs. -0.0: fneg f1, f1 blr Differential Revision: http://reviews.llvm.org/D6723 llvm-svn: 224583
* Attributes accepting an EnumArgument are allowed to pass a string literal, ↵Aaron Ballman2014-12-193-2/+10
| | | | | | | | or an identifier. VariadicEnumArguments now behave consistently instead of only accepting a string literal. This change affects the only attribute accepting a variadic enumeration: callable_when. llvm-svn: 224582
* Fixed a typo in a comment. NFC.Alexander Kornienko2014-12-191-1/+1
| | | | llvm-svn: 224581
* [lsan] Add debug output to leak_check_before_thread_started.cc.Sergey Matveev2014-12-191-2/+1
| | | | | | Trying to investigate why this test is flaky. llvm-svn: 224580
* Putting unevaluated expression warnings, and evaluated typeid warnings, ↵Aaron Ballman2014-12-192-3/+7
| | | | | | under their own warning flags. Amends r224465. llvm-svn: 224578
* [sanitizer] Rename InitIfLinkerInitialized to InitLinkerInitialized.Sergey Matveev2014-12-192-9/+9
| | | | llvm-svn: 224577
* Revert "[InstCombine] Fix visitSwitchInst to use right operand types for sub ↵Bruno Cardoso Lopes2014-12-192-34/+2
| | | | | | | | | | | | | cstexpr" Reverts commit r224574 to appease buildbots: The visitSwitchInst generates SUB constant expressions to recompute the switch condition. When truncating the condition to a smaller type, SUB expressions should use the previous type (before trunc) for both operands. This fixes an assertion crash. llvm-svn: 224576
* tsan: intercept closedirDmitry Vyukov2014-12-191-0/+9
| | | | llvm-svn: 224575
* [InstCombine] Fix visitSwitchInst to use right operand types for sub cstexprBruno Cardoso Lopes2014-12-192-2/+34
| | | | | | | | | | | | | The visitSwitchInst generates SUB constant expressions to recompute the switch condition. When truncating the condition to a smaller type, SUB expressions should use the previous type (before trunc) for both operands. This fixes an assertion crash. Differential Revision: http://reviews.llvm.org/D6644 rdar://problem/19191835 llvm-svn: 224574
* [asan] Test BB- and edge- level coverage on Android.Evgeniy Stepanov2014-12-191-5/+81
| | | | llvm-svn: 224572
* [asan] Add tests for direct (mmap-ed) mode for BB- and edge-level coverage.Evgeniy Stepanov2014-12-191-2/+41
| | | | llvm-svn: 224571
* Remove redundant assignment.Tilmann Scheller2014-12-191-1/+0
| | | | | | Found with the Clang static analyzer. llvm-svn: 224570
* [asan] Resurrect sanitize-coverage test on Android.Evgeniy Stepanov2014-12-192-5/+5
| | | | | | | The test got silently disabled because of a typo in the lit config. Also, compiler flags have changed (asan-coverage -> fsanitize-coverage). llvm-svn: 224569
* Remove wrong semi-colonsJeroen Ketema2014-12-192-2/+2
| | | | | | Patch by Alastair Donaldson llvm-svn: 224568
* LTO: Export local context symbolsDuncan P. N. Exon Smith2014-12-192-2/+16
| | | | | | | | Export symbols in libLTO.dylib for the local context-related functions added in r221733 (`LTO_API_VERSION=11`)... and add the missing definition for `lto_codegen_create_in_local_context()`. llvm-svn: 224567
* Rename MapValue(Metadata*) to MapMetadata()Duncan P. N. Exon Smith2014-12-195-31/+31
| | | | | | | | Instead of reusing the name `MapValue()` when mapping `Metadata`, use `MapMetadata()`. The old name doesn't make much sense after the `Metadata`/`Value` split. llvm-svn: 224566
* Test commitAndrew Wilkins2014-12-191-0/+1
| | | | | | Just changing whitespace to test commit access... llvm-svn: 224565
* [Sanitizer] Get rid of parseArgument helper function. NFC.Alexey Samsonov2014-12-191-54/+43
| | | | llvm-svn: 224564
* [Object] Don't crash on empty export lists.Juergen Ributzka2014-12-193-1/+8
| | | | | | | | | | | | Summary: This fixes the exports iterator if the export list is empty. Reviewers: Bigcheese, kledzik Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D6732 llvm-svn: 224563
* Fix layering violation, Lex shouldn't know about DeclDavid Majnemer2014-12-192-7/+6
| | | | llvm-svn: 224562
* PR21969: Improve diagnostics for a conversion function that has any pieces of aRichard Smith2014-12-198-14/+136
| | | | | | declared return type (including a trailing-return-type in C++14). llvm-svn: 224561
* RegisterCoalescer: rewrite eliminateUndefCopy().Matthias Braun2014-12-191-29/+64
| | | | | | | | This also fixes problems with undef copies of subregisters. I can't attach a testcase for that as none of the targets in trunk has subregister liveness tracking enabled. llvm-svn: 224560
* Fixed an issue that could cause GetPointeeData() to fail when passing in a ↵Greg Clayton2014-12-191-5/+34
| | | | | | | | | | non-zero index. The issue was we had a global variable that was a pointer, and the address type of the children wasn't "load address" when it needed to be. Full details are in the comments of the changes. <rdar://problem/15107937> llvm-svn: 224559
* Correct delayed typos in the operand to typeof expressions.Kaelyn Takata2014-12-192-2/+7
| | | | | | Fixes PR21947. llvm-svn: 224558
* Fix a typo.Adrian Prantl2014-12-191-1/+1
| | | | llvm-svn: 224557
* [Hexagon] Adding loop0/1 sp0/1/2loop0 instructions.Colin LeMahieu2014-12-197-37/+158
| | | | llvm-svn: 224556
* Explain why LLVM is emitting a DW_AT_containing_type inside of a class.Adrian Prantl2014-12-191-0/+2
| | | | llvm-svn: 224555
* [cmake] Unbreak LLVM-Config.cmake / llvm_expand_dependencies.Peter Zotov2014-12-181-20/+30
| | | | | | | | | | | | | The algorithm for sorting libraries in topological order, as previously implemented, had a few issues: * It didn't make any sense. * It didn't actually sort libraries in topological order. * It hung on some inputs, e.g. "LLVMipo". This commit replaces the old algorithm with a straightforward port from llvm-config.cpp. llvm-svn: 224554
* ConstantFold: Shifting undef by zero results in undefDavid Majnemer2014-12-182-0/+30
| | | | llvm-svn: 224553
OpenPOWER on IntegriCloud