summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* [IR] andIRFlags and copyIRFlags needs to handle GEPDavid Majnemer2016-07-152-0/+17
| | | | | | | | | We didn't consider the inbounds flag on GEPs leading to downstream users introducing UB. This fixes PR28562. llvm-svn: 275532
* Inline traceUndefined function.Rui Ueyama2016-07-152-11/+5
| | | | llvm-svn: 275531
* Update comments.Rui Ueyama2016-07-151-3/+5
| | | | llvm-svn: 275530
* [OpenMP] add check for both simdlen and safelen clauses specifiedKelvin Li2016-07-154-85/+263
| | | | | | | | This patch adds the check for specifying both simdlen and safelen clauses on the 'distribute simd' or 'distribute parallel for simd' constructs. Differential Revision: https://reviews.llvm.org/D22384 llvm-svn: 275529
* Remove redundant `return`.Rui Ueyama2016-07-151-1/+0
| | | | llvm-svn: 275528
* Merge SymbolAssignmentKind and ExprKind.Rui Ueyama2016-07-152-16/+16
| | | | | | | | | In a linker script, `.` is a special symbol indicating a counter. Previously, we had two expression types, ExprKind and SymbolAssignmentKind for `.` and all the other symbol names, respectively. But we could merge them because the former is a special case of the latter. llvm-svn: 275527
* ELF: Remove member variables that are used only in one function.Rui Ueyama2016-07-152-5/+3
| | | | | | Differential Revision: https://reviews.llvm.org/D22396 llvm-svn: 275526
* Avoid writing to errs().Rui Ueyama2016-07-151-2/+2
| | | | | | | We should write to ErrorOS instead. Normaly, *ErrorOS == errs(), but they can be different if LLD is embedded. llvm-svn: 275525
* Inline a vairable that is used only once. NFC.Rui Ueyama2016-07-151-6/+4
| | | | llvm-svn: 275524
* ELF: Simplify path constructions for -save-temps. NFC.Rui Ueyama2016-07-151-14/+16
| | | | llvm-svn: 275523
* [llvm-cov] Relax a test for WindowsVedant Kumar2016-07-151-1/+1
| | | | | | | | Attempt to address this bot failure: http://bb.pgr.jp/builders/ninja-clang-i686-msc19-R/builds/4967 llvm-svn: 275522
* ELF: Make check() always return a value.Rui Ueyama2016-07-155-32/+32
| | | | | | This patch corresponds to r275511 for COFF. llvm-svn: 275521
* [llvm-cov] Improve error messagesVedant Kumar2016-07-152-4/+9
| | | | | | | While we're at it, extend an existing test to make sure that error messages look reasonable. llvm-svn: 275520
* Remember to add the testcase I wrote for r274822.Jim Ingham2016-07-153-0/+102
| | | | llvm-svn: 275519
* [Kaleidoscope][BuildingAJIT] Start filling in text for chapter 3.Lang Hames2016-07-154-20/+144
| | | | llvm-svn: 275518
* ELF: Make error() to always set HasError.Rui Ueyama2016-07-153-7/+7
| | | | | | | | Previously, it checked for the EC parameter and set HasError only when there was an error. But in most places we called error only when error had occurred, so this behavior was confusing. llvm-svn: 275517
* [llvm-cov] Fix a use-after-freeVedant Kumar2016-07-151-1/+1
| | | | | | | | | | | Taking a lock before appending to a vector does no good unless threads reading from the vector also take the lock, because the vector could be re-sized. I don't have a good isolated test for this. I found the issue with ASan while testing a large project. I'm working on a bot that does this. llvm-svn: 275516
* [llvm-cov] Clean up an awkward capture-by-reference (NFC)Vedant Kumar2016-07-151-2/+2
| | | | | | | | Writing `for (StringRef &SourceFile : ...)` is strange to begin with. Subsequently capturing "SourceFile" by reference is even stranger. Just copy the StringRef, since that's cheap to do. llvm-svn: 275515
* [Coverage] Mark a few more methods const (NFC)Vedant Kumar2016-07-153-18/+19
| | | | llvm-svn: 275514
* COFF: Update error messages so that they start with lowercase letters.Rui Ueyama2016-07-158-27/+27
| | | | llvm-svn: 275513
* Remove unnecessary explicit call of Twine ctor.Rui Ueyama2016-07-153-8/+8
| | | | llvm-svn: 275512
* Make check() always return a value.Rui Ueyama2016-07-155-50/+27
| | | | | | | Previously, one of two check functions didn't return a value. It was confusing. This patch makes both functions return values. llvm-svn: 275511
* AMDGPU: Fix not expanding control flow after some kill blocksMatt Arsenault2016-07-152-7/+51
| | | | | | | | | | | | | Also stop trying to insert skip blocks at end_cf. This was inserting them at the end of the block which doesn't make sense. The skip should be inserted at the beginning of the block right after the end cf. Just remove this for now since no tests seem to stress this and I think this can be handled more generally later. Fixes bug 28550 llvm-svn: 275510
* AMDGPU: Fix trying to skip from a block with no successorsMatt Arsenault2016-07-152-2/+41
| | | | | | Found while reducing bug 28550 llvm-svn: 275509
* AMDGPU: Fix splitting kill blocks with defs before killMatt Arsenault2016-07-152-13/+51
| | | | llvm-svn: 275508
* Frontend: Simplify ownership model for clang's output streams.Peter Collingbourne2016-07-1520-252/+236
| | | | | | | | | | | | | | This changes the CompilerInstance::createOutputFile function to return a std::unique_ptr<llvm::raw_ostream>, rather than an llvm::raw_ostream implicitly owned by the CompilerInstance. This in most cases required that I move ownership of the output stream to the relevant ASTConsumer. The motivation for this change is to allow BackendConsumer to be a client of interfaces such as D20268 which take ownership of the output stream. Differential Revision: http://reviews.llvm.org/D21537 llvm-svn: 275507
* adjust one of the NSLog output tests to only run on macOS 10.12+Todd Fiala2016-07-151-0/+7
| | | | | | | | The LLDB NSLog handling when Xcode intends to suppress NSLog output only works on Fall 2016 OS releases. Skip it on earlier OSes. llvm-svn: 275506
* libc++abi: add a top level option for using CompilerRTSaleem Abdulrasool2016-07-152-1/+7
| | | | | | | | | | Add an option to opt into compiler-rt instead of libgcc. This option defaults to OFF to avoid a behaviour change. It is not possible to mix and match different runtime libraries. Disabling this requires that libc++ is built accordingly. This knob is particularly useful for targets that are GCC by default (i.e. Linux). llvm-svn: 275505
* COFF: Remove `void error()` functions and use fatal instead.Rui Ueyama2016-07-158-50/+64
| | | | | | This change makes the control flow more explicit. llvm-svn: 275504
* [AArch64] Set COPY ZR isAsCheapAsAMove when needed.Haicheng Wu2016-07-151-2/+6
| | | | | | | | | If a subtarget has both ZCZeroing and CustomCheapAsMoveHandling features (now only Kryo has both), set COPY (W|X)ZR isAsCheapAsAMove. Differential Revision: http://reviews.llvm.org/D22360 llvm-svn: 275503
* [codeview] Shrink inlined call site line info tablesReid Kleckner2016-07-145-23/+189
| | | | | | | | | | | For a fully inlined call chain like a -> b -> c -> d, we were emitting line info for 'd' 3 separate times: once for d's actual InlineSite line table, and twice for 'b' and 'c'. This is particularly inefficient when all these functions are in different headers, because now we need to encode the file change. Windbg was coping with our suboptimal output, so this should not be noticeable from the debugger. llvm-svn: 275502
* COFF: Remove unnecessary explicit calls of Twine ctor.Rui Ueyama2016-07-145-41/+41
| | | | llvm-svn: 275501
* COFF: Rename noreturn error -> fatal.Rui Ueyama2016-07-1411-66/+66
| | | | | | This new name is also consistent with ELF. llvm-svn: 275500
* COFF: Rename non-noreturn error -> check.Rui Ueyama2016-07-148-33/+32
| | | | | | The new name is consistent with ELF. llvm-svn: 275499
* llvm-objdump: extend __mh_execute_header handling to other special symsTim Northover2016-07-143-5/+14
| | | | | | | | | | We don't need to print any of the special __mh_*_header symbols when disassembling. Since they point at the beginning of the segment (not where the actual code is) they're pretty misleading. Should also fix lld bots. llvm-svn: 275498
* [X86][AVX2] Allow VPERMPD/VPERMQ shuffles to call combineShuffle (reapplied)Simon Pilgrim2016-07-146-18/+19
| | | | | | | | This improves the situation discussed in D19228 where we were forcing VPERMPD/VPERMQ where VPERM2F128/VPERM2I128 would have been better. This was incorrectly reverted in rL275421 during triage of PR28552. llvm-svn: 275497
* Remove the new module cache from the index-module testBen Langmuir2016-07-141-1/+1
| | | | | | | Forgot to add the new cache to the `rm -rf` line. This broke some bots when trying to load a module built with an older compiler. llvm-svn: 275496
* [LoopDist] Fix typo in diagnosticAdam Nemet2016-07-142-3/+3
| | | | llvm-svn: 275495
* [asan] Avoid hooking memchr() on Windows64Etienne Bergeron2016-07-142-2/+4
| | | | | | | | | | | | | | | There is not enough padding in front of memchr(), and, the first 6 bytes contains a branch instruction. Basically the current interception will not work on memchr(). It was disabled before, but was missing the part to disable it for INTERCEPT_LIBRARY_FUNCTION. Patch by Wei Wang Differential Revision: https://reviews.llvm.org/D22371 llvm-svn: 275494
* C does not have inline variables.Paul Robinson2016-07-143-2/+18
| | | | | | | | Add a few missing tests for related C++ diagnostics. Differential Revision: http://reviews.llvm.org/D22113 llvm-svn: 275493
* address comments in: https://reviews.llvm.org/D22363Etienne Bergeron2016-07-141-5/+0
| | | | llvm-svn: 275492
* [compiler-rt] Fix missing argument in asan unittestEtienne Bergeron2016-07-141-2/+2
| | | | | | | | | | | | | | | | Summary: Both test have the same command-line. The second test is missing the /GS-. Keep in mind that /GS is on by default. Reviewers: rnk Subscribers: llvm-commits, wang0109, kubabrecka, chrisha Differential Revision: https://reviews.llvm.org/D22339 llvm-svn: 275491
* Add test inputs missed by r275481.Richard Smith2016-07-145-0/+8
| | | | llvm-svn: 275490
* [compiler-rt] Add more assembly patterns for interceptionEtienne Bergeron2016-07-141-1/+7
| | | | | | | | | | | | | | | | Summary: These patterns are encounter when using instrumented DLL. Without this patch, asan lit test are crashing when trying to hook on RaiseException function. Reviewers: rnk Subscribers: llvm-commits, wang0109, chrisha Differential Revision: https://reviews.llvm.org/D22340 llvm-svn: 275489
* [compiler-rt] Add internal wcslen to avoid crashing on windows 64-bitsEtienne Bergeron2016-07-143-0/+12
| | | | | | | | | | | | | | | | | | Summary: The function wcslen is incorrectly hooked on windows 64-bits. The interception library is not able to hook without breaking the code. The function is too small and the interception must be done with trampoline-hooking which turned out to be incorrect on a small loop (first few instructions have a backedge). Reviewers: rnk Subscribers: wang0109, chrisha, llvm-commits, kubabrecka Differential Revision: https://reviews.llvm.org/D22363 llvm-svn: 275488
* llvm-objdump: handle stubbed and malformed dylibs betterTim Northover2016-07-145-2/+24
| | | | | | | | We were quite happy to read past the end of the valid section data when disassembling. Instead we entirely skip stub dylibs, and tell the user what's happened if their section only has partial data. llvm-svn: 275487
* [compiler-rt] Fix missing frame with stackwalking on windows 64-bitsEtienne Bergeron2016-07-141-1/+1
| | | | | | | | | | | | Summary: Fix missing frame with stackwalking on windows 64-bits Reviewers: rnk Subscribers: llvm-commits, wang0109, kubabrecka, chrisha Differential Revision: https://reviews.llvm.org/D22358 llvm-svn: 275486
* LLDB help content has accumulated over time without a recent attempt toKate Stone2016-07-1441-931/+687
| | | | | | | | | review it for consistency, accuracy, and clarity. These changes attempt to address all of the above while keeping the text relatively terse. <rdar://problem/24868841> llvm-svn: 275485
* Add runtime support for __cpu_model (__builtin_cpu_supports)Alina Sbirlea2016-07-143-1/+818
| | | | | | | | | | | | | | | | | | | | | Summary: This aims to add support for __cpu_model and address Bug 25510. It uses the code from lib/Support/Host.cpp for cpu detection, and creates __cpu_model with that info. Tested on OSX and built on Linux as well (though libgcc is the default). The use of "asm" required -std=gnu99, hence the cmake change. Corrections on better addressing this are welcome. Previously reverted, up for review again to iron out outstanding issues. Reviewers: llvm-commits, joerg, echristo, mehdi_amini Subscribers: mehdi_amini Differential Revision: http://reviews.llvm.org/D22181 llvm-svn: 275484
* [GVN] Fold constant expression in GVN.Ekaterina Romanova2016-07-142-22/+132
| | | | | | | | | | | Fix for PR 28418. opt never finishes compiling a test when -gvn option is passed. The problem is caused by the fact that GVN fails to fold a constant expression. Differential Revision: https://reviews.llvm.org/D22185 llvm-svn: 275483
OpenPOWER on IntegriCloud