| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
|
|
|
| |
We didn't consider the inbounds flag on GEPs leading to downstream users
introducing UB.
This fixes PR28562.
llvm-svn: 275532
|
|
|
|
| |
llvm-svn: 275531
|
|
|
|
| |
llvm-svn: 275530
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
llvm-svn: 275528
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
Differential Revision: https://reviews.llvm.org/D22396
llvm-svn: 275526
|
|
|
|
|
|
|
| |
We should write to ErrorOS instead. Normaly, *ErrorOS == errs(),
but they can be different if LLD is embedded.
llvm-svn: 275525
|
|
|
|
| |
llvm-svn: 275524
|
|
|
|
| |
llvm-svn: 275523
|
|
|
|
|
|
|
|
| |
Attempt to address this bot failure:
http://bb.pgr.jp/builders/ninja-clang-i686-msc19-R/builds/4967
llvm-svn: 275522
|
|
|
|
|
|
| |
This patch corresponds to r275511 for COFF.
llvm-svn: 275521
|
|
|
|
|
|
|
| |
While we're at it, extend an existing test to make sure that error
messages look reasonable.
llvm-svn: 275520
|
|
|
|
| |
llvm-svn: 275519
|
|
|
|
| |
llvm-svn: 275518
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
llvm-svn: 275514
|
|
|
|
| |
llvm-svn: 275513
|
|
|
|
| |
llvm-svn: 275512
|
|
|
|
|
|
|
| |
Previously, one of two check functions didn't return a value.
It was confusing. This patch makes both functions return values.
llvm-svn: 275511
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
Found while reducing bug 28550
llvm-svn: 275509
|
|
|
|
| |
llvm-svn: 275508
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
This change makes the control flow more explicit.
llvm-svn: 275504
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
llvm-svn: 275501
|
|
|
|
|
|
| |
This new name is also consistent with ELF.
llvm-svn: 275500
|
|
|
|
|
|
| |
The new name is consistent with ELF.
llvm-svn: 275499
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
llvm-svn: 275495
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
Add a few missing tests for related C++ diagnostics.
Differential Revision: http://reviews.llvm.org/D22113
llvm-svn: 275493
|
|
|
|
| |
llvm-svn: 275492
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
llvm-svn: 275490
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
| |
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
|