- Nov 15, 2017
-
-
Igor Laevsky authored
llvm-svn: 318293
-
Benjamin Kramer authored
Fixes PR33745. Patch by Nikolai Kosjar! Differential Revision: https://reviews.llvm.org/D40027 llvm-svn: 318292
-
Momchil Velikov authored
This is a refactoring/cleanup of Arm `addrmode2` operand class. The patch removes it completely. Differential Revision: https://reviews.llvm.org/D39832 llvm-svn: 318291
-
Alexey Bader authored
Summary: Constant samplers are handled as static variables and clang's code generation library, which leads to llvm::unreachable. We bypass emitting sampler variable as static since it's translated to a function call later. Reviewers: yaxunl, Anastasia Reviewed By: yaxunl, Anastasia Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D34342 llvm-svn: 318290
-
Jonas Devlieghere authored
In constructAbstractSubprogramScopeDIE there can be a potential mismatch between `this` and the CU of ContextDIE when a scope is shared between two DISubprograms belonging to a different CU. In that case, `this` is the CU that was specified in the IR, but the CU of ContextDIE is that of the first subprogram that was emitted. This patch fixes the mismatch by looking up the CU of ContextDIE, and switching to use that. This fixes PR35212 (https://bugs.llvm.org/show_bug.cgi?id=35212) Patch by Philip Craig! Differential revision: https://reviews.llvm.org/D39981 llvm-svn: 318289
-
Ilya Biryukov authored
By disabling the introduced optimization. llvm-svn: 318288
-
Sam McCall authored
Summary: All results are scored, we only process CodeCompletionStrings for the winners. We now return CompletionList rather than CompletionItem[] (both are valid). sortText is now based on CodeCompletionResult::orderedName (mostly the same). This is the first clangd-only completion option, so plumbing changed. It requires a small clangd patch (exposing CodeCompletionResult::orderedName). (This can't usefully be enabled yet: we don't support server-side filtering) Reviewers: ilya-biryukov Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D39852 llvm-svn: 318287
-
Sam McCall authored
llvm-svn: 318286
-
Martin Storsjö authored
LLD already writes a build id if debug info is enabled. Some projects set --pie-executable to avoid GNU ld bugs about stripping base relocations from an executable when they actually are used. Since -fixed:no is the default (and we don't support setting the -fixed option via the MinGW frontend), we don't need to handle this. --disable-auto-image-base is ignored just like --enable-auto-image-base (as we ignore from before). Differential Revision: https://reviews.llvm.org/D40031 llvm-svn: 318285
-
Martin Storsjö authored
Even if we don't actually write any string table contents, the 4 byte size for the string table will always be written. Make sure we accommodate for this in the file size. Since this size is aligned up, this would seldom be an issue in practice. Differential Revision: https://reviews.llvm.org/D39891 llvm-svn: 318284
-
Martin Storsjö authored
GNU ld doesn't seem to support --icf at all, but this was suggested in D39885, and GNU gold seems to support it. Differential Revision: https://reviews.llvm.org/D40019 llvm-svn: 318283
-
Martin Storsjö authored
Differential Revision: https://reviews.llvm.org/D40018 llvm-svn: 318282
-
Martin Storsjö authored
All of these are disabled by default in GNU ld, but enabled by default in lld. Disable dynamicbase by default since it potentially could cause compatibility issues, but just ignore the others since the lld default should be fine for most concievable cases. Differential Revision: https://reviews.llvm.org/D40017 llvm-svn: 318281
-
Martin Storsjö authored
In GNU ld, this option is only available on i386, not on x86_64 (where it's enabled by default with no option to disable it either). Differential Revision: https://reviews.llvm.org/D40015 llvm-svn: 318280
-
Mikael Holmen authored
Summary: This fixes PR35241. When using byval, the data is effectively copied as part of the call anyway, so the pointer returned by the alloca will not be leaked to the callee and thus there is no reason to issue a warning. Reviewers: rnk Reviewed By: rnk Subscribers: Ka-Ka, llvm-commits Differential Revision: https://reviews.llvm.org/D40009 llvm-svn: 318279
-
Craig Topper authored
[X86] Redefine the 128-bit version of VPGATHERQD and VGATHERQPS to use a VK2 mask instead of a VK4 mask. This allows us to remove extra extend creation during lowering and more accurately reflects the semantics of the instruction. While there add an extra output VT to X86 masked gather node to better match the isel pattern predicate. Currently we're exploiting the fact that the isel table doesn't count how many output results a node actually has if the result type of any can be inferred from the first result and the type constraints defined in tablegen. I think we might ultimately want to lower all MGATHER/MSCATTER to an X86ISD node with the extra mask result and stop relying on this hole in the isel checking. llvm-svn: 318278
-
-
-
NAKAMURA Takumi authored
llvm-svn: 318275
-
NAKAMURA Takumi authored
llvm-svn: 318274
-
NAKAMURA Takumi authored
llvm-svn: 318273
-
Fangrui Song authored
Differential Revision: https://reviews.llvm.org/D40005 llvm-svn: 318272
-
Craig Topper authored
llvm-svn: 318271
-
Craig Topper authored
This adds an explicit model number check and fallback path to the unknown family 6 detection. llvm-svn: 318270
-
Marshall Clow authored
First part of P0600 - '[[nodiscard] in the standard library'. Mark the 'empty()' methods of all the containers as nodiscard. If you're calling empty() w/o looking at the result, you probably meanto to call 'clear()'. c++2a only llvm-svn: 318269
-
Marshall Clow authored
llvm-svn: 318268
-
Craig Topper authored
[InstCombine] Simplify binops that are only used by a select and are fed by a select with the same condition. Summary: This patch optimizes a binop sandwiched between 2 selects with the same condition. Since we know its only used by the select we can propagate the appropriate input value from the earlier select. As I'm writing this I realize I may need to avoid doing this for division in case the select was protecting a divide by zero? Reviewers: spatel, majnemer Reviewed By: majnemer Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D39999 llvm-svn: 318267
-
Hiroshi Inoue authored
This patch fixes a potential problem in my previous commit (https://reviews.llvm.org/rL312514) by introducing an additional check. llvm-svn: 318266
-
Jan Vesely authored
Reviewer: Aaron Watry Signed-off-by:
Jan Vesely <jan.vesely@rutgers.edu> llvm-svn: 318265
-
Jan Vesely authored
Reviewer: Aaron Watry Signed-off-by:
Jan Vesely <jan.vesely@rutgers.edu> llvm-svn: 318264
-
Rafael Espindola authored
llvm-svn: 318263
-
Jason Molenda authored
break. The alignas(__uint128_t) is not recognized with MSVC it looks like. Zachary, is there a similar type on windows? I suppose I can go with alignas(16) here but I'd prefer to specify the type alignment that I want & let the ABI dictate how much padding is required. llvm-svn: 318262
-
Dean Michael Berris authored
Summary: This change fixes the XRay trampolines aside from the __xray_CustomEvent trampoline to align the stack to 16-byte boundaries before calling the handler. Before this change we've not been explicitly aligning the stack to 16-byte boundaries, which makes it dangerous when calling handlers that leave the stack in a state that isn't strictly 16-byte aligned after calling the handlers. We add a test that makes sure we can handle these cases appropriately after the changes, and prevents us from regressing the state moving forward. Fixes http://llvm.org/PR35294. Reviewers: pelikan, pcc Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D40004 llvm-svn: 318261
-
Jason Molenda authored
a Mach-O file load command correctly, patch by Ryan Mansfield. <rdar://problem/35468499> llvm-svn: 318260
-
Marshall Clow authored
llvm-svn: 318259
-
Richard Smith authored
llvm-svn: 318258
-
Vedant Kumar authored
llvm-svn: 318257
-
Marshall Clow authored
llvm-svn: 318256
-
Eric Fiselier authored
llvm-svn: 318247
-
Matt Arsenault authored
llvm-svn: 318246
-