summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Add initial NetBSD support in lldbsuite/test/lldbtest.pyKamil Rytarowski2015-12-071-5/+21
| | | | | | | | | | | | | | | | | | | | | | | | Summary: Add new functions: - expectedFailureNetBSD() - expectedFlakeyNetBSD() - skipIfNetBSD() Add new NetBSD entry in: - getPlatform() - getHostPlatform() Assume that libc++ is installed and use the GNU toolchain Reviewers: joerg, emaste, tfiala, clayborg Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D15262 llvm-svn: 254948
* Return gmake as the default name for GNU make on NetBSDKamil Rytarowski2015-12-071-1/+1
| | | | | | | | | | | | | | | Summary: The base make(1) on NetBSD is BSD make. In the default installation of NetBSD GNU make comes via pkgsrc under the gmake name. Reviewers: emaste, tfiala, clayborg Subscribers: joerg, lldb-commits Differential Revision: http://reviews.llvm.org/D15261 llvm-svn: 254947
* Rename test_results.py to result_formatter.py.Zachary Turner2015-12-075-19/+20
| | | | | | | | There is already a class called LLDBTestResults which I would like to move into a separate file, but the most appropriate filename was taken. llvm-svn: 254946
* Use updated threshold for indirect call bonusEaswaran Raman2015-12-071-2/+2
| | | | | | | | When considering foo->bar inlining, if there is an indirect call in foo which gets resolved to a direct call (say baz), then we try to inline baz into bar with a threshold T and subtract max(T - Cost(bar->baz), 0) from Cost(foo->bar). This patch uses max(Threshold(bar->baz) - Cost(bar->baz)) instead, where Thresheld(bar->baz) could be different from T due to bonuses or subtractions. Threshold(bar->baz) - Cost(bar->baz) better represents the desirability of inlining baz into bar. Differential Revision: http://reviews.llvm.org/D14309 llvm-svn: 254945
* getwd(3) with NULL pointer extension is supported on NetBSDKamil Rytarowski2015-12-071-2/+2
| | | | | | | | | | | | | | | | | | | | | | Summary: The getwd() and getcwd() functions conform to IEEE Std 1003.1-1990 (POSIX.1). The IEEE Std 1003.1-2004 (POSIX.1) revision marked getwd() as legacy and recommended the use of getcwd() instead. The IEEE Std 1003.1-2008 (``POSIX.1'') revision removed getwd() from the specification. The ability to specify a NULL pointer and have getcwd() allocate memory as necessary is an extension. The getwd() function appeared in 4.0BSD. Reviewers: emaste, tfiala, clayborg Subscribers: lldb-commits, joerg Differential Revision: http://reviews.llvm.org/D15260 llvm-svn: 254944
* [PGO] Stop leaking libc function to buffer API implXinliang David Li2015-12-074-4/+10
| | | | llvm-svn: 254943
* [PPC64] Convert bool literals to i32Kit Barton2015-12-075-0/+464
| | | | | | | Convert i1 values to i32 values if they should be allocated in GPRs instead of CRs. Phabricator: http://reviews.llvm.org/D14064 llvm-svn: 254942
* Allow variable names to be quoted with -var-list-childrenChuck Ries2015-12-072-1/+4
| | | | | | | | Allow both '-var-list-children var0' and '-var-list-children "var0"' to be used with the -var-list-children command. GDB MI allows for this and it is necessary if the variable name contains spaces, such as var5.std::_Vector_base<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<cahr> > > >. Differential Revision: http://reviews.llvm.org/D15168 llvm-svn: 254941
* Remove target specifier from new testsTeresa Johnson2015-12-072-7/+7
| | | | | | | | | Hopefully fix the remaining bot failure from r254927. Remove target specification since it shouldn't be needed, and this causes an error when trying to check the pass execution structure in test/CodeGen/thinlto_backend.c on non-x86 arches. llvm-svn: 254940
* Fix line endingsSimon Pilgrim2015-12-071-2/+2
| | | | llvm-svn: 254939
* Adjust test to fix bot error from r254927.Teresa Johnson2015-12-071-1/+1
| | | | | | Remove the part of the error message that may vary across systems. llvm-svn: 254938
* [TSan] Slightly improve check_analyze script.Alexey Samsonov2015-12-073-8/+28
| | | | | | | | | De-hardcode path to TSan-ified executable: pass it as an input to the scripts. Fix them so that they don't write to the current directory. Remove their invocation from Makefile.old: they are broken there anyway, as check_analyze.sh now matches trunk Clang. llvm-svn: 254936
* AST: defer to TypeLoc::copy in TypeLoc::initializeFullCopyJustin Bogner2015-12-071-5/+4
| | | | | | | | | | | | | | | | If we're initializing a TypeLoc from one that's been allocated with different alignment, memcpy will get the padding wrong. The `copy` method already checks and handles this case, so we should just defer to it. This also drops the `const` off of the `initializeFullCopy` declarations, since it isn't even remotely true (and the compiler notices when we try to call copy() instead of tricking it with memcpy). Fixes llvm.org/pr23516. llvm-svn: 254935
* Fix function return type in declaration (bot errors from r254926).Teresa Johnson2015-12-071-1/+1
| | | | | | | Try to fix bot build errors from r254926 by correcting the function return type. llvm-svn: 254934
* clang-format: Make wrapping after "./->" cheaper, even if the elementDaniel Jasper2015-12-072-8/+28
| | | | | | | | | | | | | | | | | | | before it is not a closing parenthesis. Otherwise, this frequently leads to "hanging" indents that users perceive as "weird". Before: return !soooooooooooooome_map.insert( aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa) .second; After: return !soooooooooooooome_map .insert(aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa) .second; llvm-svn: 254933
* [TSan] Delete legacy test_output.sh script.Alexey Samsonov2015-12-074-77/+0
| | | | | | | | This script is superseded by lit test suite integrated into CMake for quite a while now. It doesn't support many tests, and require custom hacks for a few other. llvm-svn: 254932
* Fix watchpoint check to use watchpoint rangesTed Woodward2015-12-071-1/+6
| | | | | | | | | | | | Summary: Watchpoints, unlike breakpoints, have an address range. This patch changes WatchpointList::FindByAddress() to match on any address in the watchpoint range, instead of only matching on the watchpoint's base address. Reviewers: clayborg Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D14932 llvm-svn: 254931
* don't repeat function names in comments; NFCSanjay Patel2015-12-071-30/+23
| | | | llvm-svn: 254930
* fix 'the the '; NFCSanjay Patel2015-12-076-6/+6
| | | | llvm-svn: 254928
* [ThinLTO] Option to invoke ThinLTO backend passes and importingTeresa Johnson2015-12-0712-57/+171
| | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: Adds new option -fthinlto-index=<file> to invoke the LTO pipeline along with function importing via clang using the supplied function summary index file. This supports invoking the parallel ThinLTO backend processes in a distributed build environment via clang. Additionally, this causes the module linker to be invoked on the bitcode file being compiled to perform any necessary promotion and renaming of locals that are exported via the function summary index file. Add a couple tests that confirm we get expected errors when we try to use the new option on a file that isn't bitcode, or specify an invalid index file. The tests also confirm that we trigger the expected function import pass. Depends on D15024 Reviewers: joker.eph, dexonsmith Subscribers: joker.eph, davidxl, cfe-commits Differential Revision: http://reviews.llvm.org/D15025 llvm-svn: 254927
* [ThinLTO] Support for specifying function index from pass managerTeresa Johnson2015-12-075-11/+44
| | | | | | | | | | | | | | | | Summary: Add a field on the PassManagerBuilder that clang or gold can use to pass down a pointer to the function index in memory to use for importing when the ThinLTO backend is triggered. Add support to supply this to the function import pass. Reviewers: joker.eph, dexonsmith Subscribers: davidxl, llvm-commits, joker.eph Differential Revision: http://reviews.llvm.org/D15024 llvm-svn: 254926
* remove redundant check: optForSize() includes a check for the minsize ↵Sanjay Patel2015-12-071-3/+1
| | | | | | attribute; NFCI llvm-svn: 254925
* test commit.Chuck Ries2015-12-071-1/+1
| | | | llvm-svn: 254924
* [Hexagon] Adding v60 test, vasr in particular.Ron Lieberman2015-12-071-0/+247
| | | | llvm-svn: 254923
* [llvm-dwp] Restructure inputs for test case so they're all grouped togetherDavid Blaikie2015-12-075-2/+2
| | | | llvm-svn: 254922
* ScopInfo: Add MemoryAccess::isScalar()Tobias Grosser2015-12-072-1/+4
| | | | | Suggested-by: Michael Kruse <llvm@meinersbur.de> llvm-svn: 254921
* Tighten checks so we can see existing codegen Sanjay Patel2015-12-071-8/+106
| | | | | | | | The 2-element vector case shows a surprising bug: we failed to eliminate ops on undefs, so there are 4 fmax calls even though there can only be 2 valid elements in the inputs. llvm-svn: 254920
* [Orc] Removing traces of takeOwnershipOfBuffers left after r251560.Lang Hames2015-12-073-47/+0
| | | | | | Patch by Joshua Gerrard. Thanks Joshua! llvm-svn: 254919
* [ELF] - fixed mistype in comment, NFC.George Rimar2015-12-071-1/+1
| | | | llvm-svn: 254918
* Link declaration lazily.Rafael Espindola2015-12-0714-6/+64
| | | | | | | We already linked available_externally and linkonce lazily, this just adds declarations to the list. llvm-svn: 254917
* Simplify test.Rafael Espindola2015-12-071-3/+1
| | | | llvm-svn: 254916
* Silence all C4592 warnings with MSVC 2015 Update 1. This warning produces ↵Aaron Ballman2015-12-071-0/+3
| | | | | | | | false positives that Microsoft says will be fixed in Update 2. Until this produces reliable diagnostics, it is safe to disable the diagnostic -- the compiler is not doing anything different than it previously did aside from issuing the diagnostic. (Note, this silences at least one false positive in LLVM with FeatureBitset uses.) llvm-svn: 254915
* [ThinLTO] Support cloning of temporary DILocation metadataTeresa Johnson2015-12-072-2/+12
| | | | | | | | | | This is needed to support linking of module-level metadata as a postpass after function importing, where we will be leaving temporary metadata on imported instructions until the postpass metadata import. Also added unittest. Split from D14838. llvm-svn: 254914
* VX-512: Fixed a bug in FP logic operation loweringElena Demikhovsky2015-12-076-21/+111
| | | | | | | | | | | | | | FP logic instructions are supported in DQ extension on AVX-512 target. I use integer operations instead. Added tests. I also enabled FABS in this patch in order to check ANDPS. The operations are FOR, FXOR, FAND, FANDN. The instructions, that supported for 512-bit vector under DQ are: VORPS/PD, VXORPS/PD, VANDPS/PD, FANDNPS/PD. Differential Revision: http://reviews.llvm.org/D15110 llvm-svn: 254913
* [ARM] Generate ABI_optimization_goals build attribute, as described in the ↵Artyom Skrobov2015-12-079-15/+157
| | | | | | | | | | | | | | ARM ARM. Summary: This reverts r254234, and adds a simple fix for the annoying case of use-after-free. Reviewers: rengolin Subscribers: aemerson, llvm-commits, rengolin Differential Revision: http://reviews.llvm.org/D15236 llvm-svn: 254912
* [mips][ias] Removed DSP/DSPr2 instructions from base architecture ↵Daniel Sanders2015-12-078-765/+255
| | | | | | | | | | | | | | | | | valid-xfail.s's. Summary: valid-xfail.s is for instructions that should be valid in the given ISA but incorrectly fail. DSP/DSPr2 instructions are correct to fail since DSP/DSPr2 is not enabled. Reviewers: vkalintiris Subscribers: dsanders, llvm-commits Differential Revision: http://reviews.llvm.org/D15072 llvm-svn: 254911
* [RenderScript] Mips64 allocations workaroundEwan Crawford2015-12-072-90/+180
| | | | | | | | | Workaround for Mips64 compiler bug by using function pointers to call functions for expression evaluation. This avoids the emission of the JAL instruction, which can only jump within a particular range of the PC. Author: Dean De Leo, dean@codeplay.com llvm-svn: 254910
* AVX-512: Fixed masked load / store instruction selection for KNL.Elena Demikhovsky2015-12-074-32/+151
| | | | | | | | | | | | | | | Patterns were missing for KNL target for <8 x i32>, <8 x float> masked load/store. This intrinsic comes with all legal types: <8 x float> @llvm.masked.load.v8f32(<8 x float>* %addr, i32 align, <8 x i1> %mask, <8 x float> %passThru), but still requires lowering, because VMASKMOVPS, VMASKMOVDQU32 work with 512-bit vectors only. All data operands should be widened to 512-bit vector. The mask operand should be widened to v16i1 with zeroes. Differential Revision: http://reviews.llvm.org/D15265 llvm-svn: 254909
* AVX-512: implement kunpck intrinsics.Igor Breger2015-12-076-74/+194
| | | | | | Differential Revision: http://reviews.llvm.org/D14821 llvm-svn: 254908
* Change how the linker handles the old llvm.global_ctors.Rafael Espindola2015-12-072-92/+42
| | | | | | | | | | | | | | | | | Now instead of changing it to the new format and then linking, it just handles the old format while copying it over. The main differences are: * There is no rauw in the source module. * An old format input is always upgraded. The first item helps with having a sane API that passes in a GV list to the linker. The second one is a small step in deprecating the old format. llvm-svn: 254907
* [avx512] rename gcc intrinsics to be align with gcc formatAsaf Badouh2015-12-072-72/+72
| | | | | | | | rename the gcc intrinsics suffix : _mask ->_round Differential Revision: http://reviews.llvm.org/D15284 llvm-svn: 254906
* [avx512] rename gcc intrinsics to be align with gcc formatAsaf Badouh2015-12-071-12/+12
| | | | | | | | rename the gcc intrinsics suffix : _mask ->_round Differential Revision: http://reviews.llvm.org/D15285 llvm-svn: 254905
* [X86] Adding support for FWORD type for MS inline asmMarina Yatsina2015-12-072-0/+4
| | | | | | | | Adding support for FWORD type for MS inline asm. Differential Revision: http://reviews.llvm.org/D15268 llvm-svn: 254904
* [OPENMP 4.5] parsing/sema support for 'grainsize' clause.Alexey Bataev2015-12-0718-10/+342
| | | | | | OpenMP 4.5 adds 'taksloop' and 'taskloop simd' directives, which have 'grainsize' clause. Patch adds parsing/sema analysis of this clause. llvm-svn: 254903
* Recommit "Fix race during process interruption"Pavel Labath2015-12-074-128/+120
| | | | | | | | This is a resubmit of r254403, see that commit's message for context. This fixes an issue in the original commit, where we would incorrectly interrupt the process if the interrupt request came just as we were about to send the stopped event to the public. llvm-svn: 254902
* Make TestThreadStates more stablePavel Labath2015-12-071-25/+11
| | | | | | | | | | | | | | | | | | | | | Summary: Because of the large number of XFAILs TestThreadStates has decayed quite a bit. This commit does the following: - removes the "breakpoint list" expectations. Most tests have been failing on this, because the command output changed quite a while back. I remove it, because run_break_set_by_file_and_line already does a decent amount of checking - fixup test_state_after_expression: this was calling the wrong function by mistake. As now the function actually tests something (which we know is broken), I needed to XFAIL it as well. - replaces the sleep() with a proper wait-for-event functionality in parts which use async mode, to stabilize the one function that actually tests something. Reviewers: clayborg Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D15233 llvm-svn: 254901
* [ARM] Flag vcvt{t,b} with an f16 type specifier as part of the FP16 extensionBradley Smith2015-12-074-5/+28
| | | | | | Additionally correct the Cortex-R7 definition to allow the FP16 feature. llvm-svn: 254900
* [OPENMP 4.5] parsing/sema support for 'nogroup' clause.Alexey Bataev2015-12-0718-9/+100
| | | | | | OpenMP 4.5 adds 'taskloop' and 'taskloop simd' directives. These directives have new 'nogroup' clause. Patch adds basic parsing/sema support for this clause. llvm-svn: 254899
* [X86][AVX] Added tests to load+broadcast non-zero'th vector elementsSimon Pilgrim2015-12-072-3/+375
| | | | | | Baseline for an upcoming patch for PR23022 llvm-svn: 254898
* [mips][microMIPS] Implement LH, LHE, LHU and LHUE instructionsZlatko Buljan2015-12-0711-10/+113
| | | | | | Differential Revision: http://reviews.llvm.org/D9824 llvm-svn: 254897
OpenPOWER on IntegriCloud