summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Mark these tests on FreeBSD and Linux as non-flakey. We don't know that they areEnrico Granata2016-01-131-2/+0
| | | | llvm-svn: 257656
* [WebAssembly] MCFixupKindInfo's TargetSize is in bits rather than bytes.Dan Gohman2016-01-132-2/+16
| | | | llvm-svn: 257655
* Fixed a problem where the Xcode build put lldb's __init__.py in the wrong place.Sean Callanan2016-01-131-1/+1
| | | | | | | | | Most of the time CONFIGURATION_BUILD_DIR and BUILT_PRODUCTS_DIR are the same, but they are different in 'xcodebuild install' situations. The file needs to be put into BUILT_PRODUCTS_DIR or lldb's Python interface doesn't work when lldb is built using 'xcodebuild install'. llvm-svn: 257653
* Update cxx_dr_status.html after the 3.8 branchHans Wennborg2016-01-131-1/+1
| | | | llvm-svn: 257652
* don't repeat function names in comments; NFCSanjay Patel2016-01-131-62/+51
| | | | llvm-svn: 257649
* Fix struct/class mismatch for MachineSchedContextHans Wennborg2016-01-131-1/+1
| | | | llvm-svn: 257648
* Demangle symbols when including them in error messages.Rui Ueyama2016-01-137-1/+50
| | | | llvm-svn: 257647
* rangify; NFCISanjay Patel2016-01-131-4/+4
| | | | llvm-svn: 257646
* Avoid undefined behavior in LinkAllPasses.hDimitry Andric2016-01-131-6/+8
| | | | | | | | | | | | | | | | | | | | | | | | The LinkAllPasses.h file is included in several main programs, to force a large number of passes to be linked in. However, the ForcePassLinking constructor uses undefined behavior, since it calls member functions on `nullptr`, e.g.: ((llvm::Function*)nullptr)->viewCFGOnly(); llvm::RGPassManager RGM; ((llvm::RegionPass*)nullptr)->runOnRegion((llvm::Region*)nullptr, RGM); When the optimization level is -O2 or higher, the code below the first nullptr dereference is optimized away, and replaced by `ud2` (on x86). Therefore, the calls after that first dereference are never emitted. In my case, I noticed there was no call to `llvm::sys::RunningOnValgrind()`! Replace instances of dereferencing `nullptr` with either objects on the stack, or regular function calls. Differential Revision: http://reviews.llvm.org/D15996 llvm-svn: 257645
* Fix an issue where scripted commands would not actually print any of their ↵Enrico Granata2016-01-137-1/+82
| | | | | | | | output if an immediate output file was set in the result object via a Python file object Fixes rdar://24130303 llvm-svn: 257644
* don't repeat names in comments ; NFCSanjay Patel2016-01-131-5/+5
| | | | llvm-svn: 257643
* Teach clang-tidy how to upgrade warnings into errors.Jonathan Roelofs2016-01-1310-19/+106
| | | | | | | | | Similar in format to the `-checks=` argument, this new `-warnings-as-errors=` argument upgrades any warnings emitted by the former to errors. http://reviews.llvm.org/D15528 llvm-svn: 257642
* Update version to 3.9Hans Wennborg2016-01-131-1/+1
| | | | llvm-svn: 257629
* Update version to 3.9Hans Wennborg2016-01-132-47/+7
| | | | llvm-svn: 257628
* Update version to 3.9.Hans Wennborg2016-01-136-60/+26
| | | | llvm-svn: 257627
* fix typoSanjay Patel2016-01-131-1/+1
| | | | llvm-svn: 257626
* AMDGPU/SI: Fix a GPU hang with POS_W_FLOAT enabledMarek Olsak2016-01-132-1/+25
| | | | | | | | | | Reviewers: tstellarAMD, arsenm Subscribers: arsenm Differential Revision: http://reviews.llvm.org/D16037 llvm-svn: 257625
* AMDGPU/SI: Add tests for non-void functions and InitialPSInputAddrMarek Olsak2016-01-131-0/+228
| | | | | | | | Reviewers: tstellarAMD, arsenm Differential Revision: http://reviews.llvm.org/D16036 llvm-svn: 257624
* AMDGPU/SI: Remove ending s_endpgm from non-void functionsMarek Olsak2016-01-131-0/+8
| | | | | | | | | | Reviewers: tstellarAMD, arsenm Subscribers: arsenm Differential Revision: http://reviews.llvm.org/D16035 llvm-svn: 257623
* AMDGPU/SI: Add s_waitcnt at the end of non-void functionsMarek Olsak2016-01-134-1/+19
| | | | | | | | | | | | | | Summary: v2: Make ReturnsVoid private, so that I can another 8 lines of code and look more productive. Reviewers: tstellarAMD, arsenm Subscribers: arsenm Differential Revision: http://reviews.llvm.org/D16034 llvm-svn: 257622
* AMDGPU/SI: Add support for non-void functionsMarek Olsak2016-01-136-1/+136
| | | | | | | | | | | | | | | | | | | Summary: Return values can be stored in SGPRs (i32) and VGPRs (f32). This will be used by functions which expect some bytecode or other binary to be appended at the end. It allows defining in which registers the return values will be stored. v2: don't do this for compute shaders Reviewers: tstellarAMD, arsenm Subscribers: arsenm Differential Revision: http://reviews.llvm.org/D16033 llvm-svn: 257621
* [WebAssemly] Invalidate liveness in CFG stackifierDerek Schuff2016-01-131-0/+3
| | | | | | | WebAssemblyCFGStackify does not track liveness for EXPR_STACK, causing verifier failure if liveness has not already been invalidated. llvm-svn: 257620
* [WebAssembly] Enable the builtins library for WebAssembly.Dan Gohman2016-01-132-1/+16
| | | | llvm-svn: 257619
* [WebAssembly] clang supports int128_t on wasm32 in addition to wasm64.Dan Gohman2016-01-131-1/+2
| | | | llvm-svn: 257618
* fix typoSanjay Patel2016-01-131-1/+1
| | | | llvm-svn: 257617
* [lit] Fix handling of per test timeout when the installed psutil versionDan Liew2016-01-131-1/+8
| | | | | | | | | | is < ``2.0``. Older versions of psutil (e.g. ``1.2.1`` which is the version shipped with Ubuntu 14.04) use a different API for retrieving the child processes. To handle this try the new API first and if that fails try the old API. llvm-svn: 257616
* clang-format: [ObjC+JS] Allow bin-packing of array literals.Daniel Jasper2016-01-133-17/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | After reading the style guides again, they don't actually say how to pack or not pack array literals. Based on some user reports, array initializers can unnecessarily get quite long if they contain many small elements. Array literals with trailing commas are still formatted one per line so that users have a way to opt out of the packing. Before: var array = [ aaaaaa, aaaaaa, aaaaaa, aaaaaa, aaaaaa, aaaaaa, aaaaaa, aaaaaa, aaaaaa, aaaaaa ]; After: var array = [ aaaaaa, aaaaaa, aaaaaa, aaaaaa, aaaaaa, aaaaaa, aaaaaa, aaaaaa, aaaaaa, aaaaaa, aaaaaa ]; llvm-svn: 257615
* [WebAssembly] Accomodate wasm's 128-bit long double.Dan Gohman2016-01-131-1/+2
| | | | llvm-svn: 257614
* fix typoSanjay Patel2016-01-131-1/+1
| | | | llvm-svn: 257613
* [WebAssembly] Set std::numeric_limits's traps field for WebAssembly.Dan Gohman2016-01-132-2/+4
| | | | | | | WebAssembly's integer division instruction traps on division by zero; set the traps field of integral std::numeric_limits to true. llvm-svn: 257612
* fix typoSanjay Patel2016-01-131-1/+1
| | | | llvm-svn: 257611
* Revert r257602 because it breaks integrated-as.s on mips hosts.Scott Egerton2016-01-132-115/+1
| | | | llvm-svn: 257610
* AMDGPU/SI: Add SI Machine SchedulerNicolai Haehnle2016-01-1310-3/+2558
| | | | | | | | | | | | | | | | Summary: It is off by default, but can be used with --misched=si Patch by: Axel Davy Reviewers: arsenm, tstellarAMD, nhaehnle Subscribers: nhaehnle, solenskiner, arsenm, llvm-commits Differential Revision: http://reviews.llvm.org/D11885 llvm-svn: 257609
* Revert "[analyzer] Provide .def-files and visitors for SVal/SymExpr/MemRegion."Artem Dergachev2016-01-1311-806/+100
| | | | | | | | | This reverts commit r257605. The test fails on architectures that use unsigned int as size_t. SymbolManager.h fails with compile errors on some platforms. llvm-svn: 257608
* Fixing warning by adding the X86ISD::VROTRI case. Michael Zuckerman2016-01-131-0/+1
| | | | | | Differential Revision: http://reviews.llvm.org/D16052 llvm-svn: 257607
* [Hexagon] Do not insert non-phis before phis in bit simplificationKrzysztof Parzyszek2016-01-132-7/+77
| | | | llvm-svn: 257606
* [analyzer] Provide .def-files and visitors for SVal/SymExpr/MemRegion.Artem Dergachev2016-01-1311-100/+806
| | | | | | | | | | | | | Provide separate visitor templates for the three hierarchies, and also the `FullSValVisitor' class, which is a union of all three visitors. Additionally, add a particular example visitor, `SValExplainer', in order to test the visitor templates. This visitor is capable of explaining the SVal, SymExpr, or MemRegion in a natural language. Differential Revision: http://reviews.llvm.org/D15448 llvm-svn: 257605
* [AVX512] Adding PMOVSXBD/W/Q , PMOVZSDQ and PMOVZSWD/Q Intrinsics .Michael Zuckerman2016-01-136-0/+469
| | | | | | Differential Revision: http://reviews.llvm.org/D16111 llvm-svn: 257604
* Silence an incorrect dwarf parsing warningTamas Berghammer2016-01-131-1/+1
| | | | | | | | | | | | We have a check what warns if the offset of a class member is greater then or equal to the size of the class. The warning is valid in most case but it is invalid when the last data member is a 0 size array because in this case the member offset can be equal to the class size (subject to alignment limitations). This CL fixis LLDB to not print out a warning in this special case. llvm-svn: 257603
* [mips] Added support for -Wa,-mips32 and similar.Scott Egerton2016-01-132-1/+115
| | | | | | | | | | Reviewers: vkalintiris, dsanders Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D15070 llvm-svn: 257602
* [AVX512] Adding PMOVZXBD/W/Q , PMOVZXDQ and PMOVZXWD/Q Intrinsics Michael Zuckerman2016-01-136-1/+470
| | | | | | Differential Revision:http://reviews.llvm.org/D16071 llvm-svn: 257601
* [clang-tidy] Slightly clarified comments.Alexander Kornienko2016-01-131-2/+2
| | | | llvm-svn: 257600
* Support virtual-near-miss check.Alexander Kornienko2016-01-137-0/+418
| | | | | | | | | | | | | | Summary: Virtual function override near miss detection. Function complete. Test complete. Do not conduct Fix for now. Reviewers: alexfh Subscribers: cfe-commits Patch by Cong Liu! Differential Revision: http://reviews.llvm.org/D15823 llvm-svn: 257599
* [analyzer] Fix SVal/SymExpr/MemRegion class and enum names for consistency.Artem Dergachev2016-01-1312-182/+203
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The purpose of these changes is to simplify introduction of definition files for the three hierarchies. 1. For every sub-class C of these classes, its kind in the relevant enumeration is changed to "CKind" (or C##Kind in preprocessor-ish terms), eg: MemRegionKind -> MemRegionValKind RegionValueKind -> SymbolRegionValueKind CastSymbolKind -> SymbolCastKind SymIntKind -> SymIntExprKind 2. MemSpaceRegion used to be inconsistently used as both an abstract base and a particular region. This region class is now an abstract base and no longer occupies GenericMemSpaceRegionKind. Instead, a new class, CodeSpaceRegion, is introduced for handling the unique use case for MemSpaceRegion as "the generic memory space" (when it represents a memory space that holds all executable code). 3. BEG_ prefixes in memory region kind ranges are renamed to BEGIN_ for consisitency with symbol kind ranges. 4. FunctionTextRegion and BlockTextRegion are renamed to FunctionCodeRegion and BlockCodeRegion, respectively. The term 'code' is less jargony than 'text' and we already refer to BlockTextRegion as a 'code region' in BlockDataRegion. Differential Revision: http://reviews.llvm.org/D16062 llvm-svn: 257598
* [PowerPC] Fix large code model with the ELFv2 ABIUlrich Weigand2016-01-135-34/+138
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The global entry point prologue currently assumes that the TOC associated with a function is less than 2GB away from the function entry point. This is always true when using the medium or small code model, but may not be the case when using the large code model. This patch adds a new variant of the ELFv2 global entry point prologue that lifts the 2GB restriction when building with -mcmodel=large. This works by emitting a quadword containing the distance from the function entry point to its associated TOC immediately before the entry point, and then using a prologue like: ld r2,-8(r12) add r2,r2,r12 Since creation of the entry point prologue is now split across two separate routines (PPCLinuxAsmPrinter::EmitFunctionEntryLabel emits the data word, PPCLinuxAsmPrinter::EmitFunctionBodyStart the prolog code), I've switched to using named labels instead of just temporaries to indicate the locations of the global and local entry points and the new TOC offset data word. These names are provided by new routines in PPCFunctionInfo modeled after the existing PPCFunctionInfo::getPICOffsetSymbol. Note that a corresponding change was committed to GCC here: https://gcc.gnu.org/ml/gcc-patches/2015-12/msg00355.html Reviewers: hfinkel Differential Revision: http://reviews.llvm.org/D15500 llvm-svn: 257597
* Reapply r257588George Rimar2016-01-133-3/+96
| | | | | | | | | | | | | | Fix: Added missed input file. Initial commit message: [ELF/AArch64] - Implemented R_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21 and R_AARCH64_TLSIE_LD64_GOTTPREL_LO12_NC relocations * R_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21 is calculated as Page(G(GTPREL(S+A))) – Page(P), set an ADRP immediate field to bits [32:12] of X; check –2^32 ≤ X < 2^32; * R_AARCH64_TLSIE_LD64_GOTTPREL_LO12_NC is calculated as G(GTPREL(S+A)), set an LD offset field to bits [11:3] of X. No overflow check; check that X&7 = 0. Differential revision: http://reviews.llvm.org/D16117 llvm-svn: 257596
* Revert r257588 as it broke buildbotGeorge Rimar2016-01-132-77/+3
| | | | | | http://lab.llvm.org:8011/builders/lld-x86_64-darwin13/builds/18715/steps/test_lld/logs/stdio llvm-svn: 257595
* [AVX512] adding PRORQ , PRORD , PRORLVQ and PRORLVD Intrinsics Michael Zuckerman2016-01-136-3/+220
| | | | | | Differential Revision: http://reviews.llvm.org/D16052 llvm-svn: 257594
* AMDGPU/SI: Allow more shader inputsMarek Olsak2016-01-131-6/+30
| | | | | | | | | | Reviewers: tstellarAMD, arsenm Subscribers: arsenm Differential Revision: http://reviews.llvm.org/D16032 llvm-svn: 257593
* AMDGPU/SI: Allow any number of PS inputsMarek Olsak2016-01-131-3/+1
| | | | | | | | | | | | | | Summary: With the ability to concatenate shader binaries, the limit of 15 no longer applies. Reviewers: tstellarAMD, arsenm Subscribers: arsenm Differential Revision: http://reviews.llvm.org/D16031 llvm-svn: 257592
OpenPOWER on IntegriCloud