- Jun 04, 2020
-
-
Louis Dionne authored
-
Richard Smith authored
The absence of a space here caused this codeblock to be missing from the rendered output.
-
Jonas Devlieghere authored
The different tools constructing dotest invocations (lit and lldb-dotest) already print the command invocation so there's no need to print it again in the dotest output. My motivation for removing it is that it doesn't include the Python interpreter and every time I accidentally copy it, the command fails with an `ImportError`. Differential revision: https://reviews.llvm.org/D81032
-
Frederik Gossen authored
Add a new pass to lower operations from the `shape` to the `std` dialect. The conversion applies only to the `size_to_index` and `index_to_size` operations and affected types. Other patterns will be added as needed. Differential Revision: https://reviews.llvm.org/D81091
-
Louis Dionne authored
Libc++ provides support for <thread> in C++03 as an extension. Furthermore, it does not support any compiler that doesn't have rvalue references. It is hence possible to provide the move constructor and move assignment operator in C++03.
-
Paul Pelzl authored
The checker currently supports only a whitelist of block-enumeration methods which are known to internally clear an autorelease pool. Extend this checker to detect writes within the scope of explicit @autoreleasepool statements. rdar://25301111 Differential Revision: https://reviews.llvm.org/D81072
-
Paul Pelzl authored
Idiomatic objc using ARC will generate this expression regularly due to NSError out-param passing. Providing an implementation for this expression allows the analyzer to explore many more codepaths in ARC projects. The current implementation is not perfect but the differences are hopefully subtle enough to not cause much problems. rdar://63918914 Differential Revision: https://reviews.llvm.org/D81071
-
- Jun 03, 2020
-
-
Victor Huang authored
In the function "Analysis.cpp:isInTailCallPosition", it only checks whether a call is in a tail call position if the call has side effects, access memory or it is not safe to speculative execute. Therefore, a speculatable function will not go through tail call position check and improperly tail called when it is not in a tail-call position. This patch enables tail call position check for speculatable functions. Differential Revision: https://reviews.llvm.org/D80661
-
Saleem Abdulrasool authored
ld64 provides the `-search_path_firsts` which will search each path in the library search path order for both `lib[name].dylib`, `lib[name].a` before moving on (searching all paths for the dylib and then falling back to the static library if a shared library was not found). This option has been the default for a long time, but the command line flag still exists. Ignore it for compatibility.
-
David Zarzycki authored
-
Kang Zhang authored
Summary: In the patch D73152, it adds a new function LiveVariables::addNewBlock. This new function will add the reg which PHI used to the MBB which reg is from. But the new function may cause LiveVariable Verification failed when the Src reg in PHI is undef. Reviewed By: bjope Differential Revision: https://reviews.llvm.org/D80077
-
Henry Kao authored
Summary: Replaced getVectorNumElements() with getVectorElementCount(). Added operator overloads for class ElementCount. Fixes warning in several AArch64 unit tests. Reviewers: sdesmalen, kmclaughlin, dancgr, efriedma, each, andwar, rengolin Reviewed By: efriedma Subscribers: tschuett, kristof.beyls, hiraditya, rkruppe, psnobl, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D80826
-
Yonghong Song authored
Commit 13f6c81c ("[BPF] simplify zero extension with MOV_32_64") tried to use MOV_32_64 instructions instead of lshift/rshift instructions for zero extension. This has the benefit to remove the number of instructions and may help verifier too. But the same commit also removed the old MOV_32_64 pruning as it deems unsafe as MOV_32_64 does have the side effect, zeroing out the top 32bit in the register. This caused the following failure in kernel selftest test_cls_redirect.o. In linux kernel, we have struct __sk_buff { __u32 data; __u32 data_end; }; The compiler will generate 32bit load for __sk_buff->data and __sk_buff->data_end. But kernel verifier will actually loads an address (64bit address on 64bit kernel) to the result register. In this particular example, the explicit zext was not optimized away and destroyed top 32bit address and the verifier rejected the program : w2 = *(u32 *)(r1 + 76) ... r2 = w2 /* MOV_32_64: this will clear top 32bit */ Currently, if the load and the zext are next to each other, the instruction pattern match can actually capture this to avoid MOV_32_64, e.g., in BPFInstrInfo.td, we have def : Pat<(i64 (zextloadi32 ADDRri:$src)), (SUBREG_TO_REG (i64 0), (LDW32 ADDRri:$src), sub_32)>; However, if they are not next to each other, LDW32 and MOV_32_64 are generated, which may cause the above mentioned problem. BPF Backend already tried to optimize away pattern mov_32_64 + lshift + rshift Commit 13f6c81c may generate mov_32_64 not followed by shifts. This patch added optimization for only mov_32_64 too. Differential Revision: https://reviews.llvm.org/D81048
-
Simon Pilgrim authored
gcc doesn't recognise @llvm.experimental.guard as a code snippet
-
Simon Pilgrim authored
If we're only demanding the (shifted) sign bits of the shift source value, then we can use the value directly. This handles SimplifyDemandedBits/SimplifyMultipleUseDemandedBits for both ISD::SHL and X86ISD::VSHLI. Differential Revision: https://reviews.llvm.org/D80869
-
Yaxun (Sam) Liu authored
Differential Revision: https://reviews.llvm.org/D76795
-
Fangrui Song authored
--no-allow-shlib-undefined (enabled by default when linking an executable) rejects unresolved references in shared objects. Users may be confused by the common diagnostics of unresolved symbols in object files (LLD: "undefined symbol: foo"; GNU ld/gold: "undefined reference to") Learn from GCC/clang " [-Wfoo]": append the option name to the diagnostics. Users can find relevant information by searching "--no-allow-shlib-undefined". It should also be obvious to them that the positive form --allow-shlib-undefined can suppress the error. Also downgrade the error to a warning if --noinhibit-exec is used (compatible with GNU ld and gold). Reviewed By: grimar, psmith Differential Revision: https://reviews.llvm.org/D81028
-
David Tenty authored
Summary: The standard data emission directives (e.g. .short, .long) in the AIX assembler have the unintended consequence of aligning their output to the natural byte boundary. This cause problems because we aren't expecting behavior from the Data*bitsDirectives, so the final alignment of data isn't correct in some cases on AIX. This patch updated the Data*bitsDirectives to use .vbyte pseudo-ops instead to emit the data, since we will emit the .align directives as needed. We update the existing testcases and add a test for emission of struct data. Reviewers: hubert.reinterpretcast, Xiangling_L, jasonliu Reviewed By: hubert.reinterpretcast, jasonliu Subscribers: wuzish, nemanjai, hiraditya, kbarton, arphaman, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D80934
-
Francesco Petrogalli authored
Reviewers: sdesmalen, efriedma Subscribers: tschuett, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D80740
-
Matt Arsenault authored
This had multiple functions and only one vague check. Reduce it.
-
David Zarzycki authored
On slow/busy machines, timing cannot be guaranteed.
-
Simon Pilgrim authored
We were bailing on subvector shuffle inputs that were smaller than the subvector type instead of larger than it. Fixes PR46178
-
Nathan James authored
-
Matt Arsenault authored
This is was a very frustrating test to update manually.
-
Louis Dionne authored
The problem mentioned in the XFAILs has been resolved in macosx10.15, so the test is now XPASSing on that platform. rdar://63640184
-
Francesco Petrogalli authored
Reviewers: sdesmalen, efriedma Subscribers: tschuett, hiraditya, rkruppe, psnobl, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D80738
-
Eduardo Caldas authored
Reviewers: gribozavr2 Reviewed By: gribozavr2 Subscribers: cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D81092
-
Andrew Wock authored
[PowerPC] Replace subtract-from-zero float in version with fneg in PowerPC special fma compiler builtins This is a re-revert with a corrected test. This patch adds a test for the PowerPC fma compiler builtins, some variations of which negate inputs and outputs. The code to generate IR for these builtins was untested before this patch. Originally, the code used the outdated method of subtracting floating point values from -0.0 as floating point negation. This patch remedies that. Patch by: Drew Wock <drew.wock@sas.com> Differential Revision: https://reviews.llvm.org/D76949
-
Martin Boehme authored
This has been causing build errors in Swift CI. Differential Revision: https://reviews.llvm.org/D81079
-
Louis Dionne authored
C++98 and C++03 are effectively aliases as far as Clang is concerned. As such, allowing both std=c++98 and std=c++03 as Lit parameters is just slightly confusing, but provides no value. It's similar to allowing both std=c++17 and std=c++1z, which we don't do. This was discovered because we had an internal bot that ran the test suite under both c++98 AND c++03 -- one of which is redundant. Differential Revision: https://reviews.llvm.org/D80926
-
Alex Zinenko authored
The original design of TypeConverter expected specific converters to derive the class and override virtual functions for conversions and materializations. This did not scale well to multi-dialect conversions, so the design was changed to register a list of converter and materializer functions, removing the need for virtual functions. The only remaining virtual function, `convertSignatureArg` is never overridden in-tree. Make it non-virtual, drop the virtual destructor and thus remove vtable from TypeConverter. If there exist TypeConverter users that need custom `convertSignatureArg` behavior, it should be implemented using the callback registration mechanism similar to that of conversions and materializations. Differential Revision: https://reviews.llvm.org/D80993
-
Alexey Bataev authored
Summary: If the data member is mapped as an array section, need to emit the pointer to the last element of this array section and use this pointer as the highest element in partial struct data. Reviewers: jdoerfert Subscribers: yaxunl, guansong, sstefan1, cfe-commits, caomhin Tags: #clang Differential Revision: https://reviews.llvm.org/D81037
-
Dmitri Gribenko authored
Reviewers: hlopko, aaron.ballman Reviewed By: aaron.ballman Subscribers: wuzish, aaron.ballman, nemanjai, kbarton, jkorous, arphaman, kadircet, usaxena95, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D81087
-
David Zarzycki authored
This test is arguably fatally flawed, at least as long as C++ condition variables are just trivial wrappers around POSIX. I've added some notes to the test for future authors to consider.
-
Sanjay Patel authored
-
Kazushi (Jam) Marukawa authored
Summary: Add a basic disassember and regression tests of LEA/LD/ST instructions. This patch also removes DecoderMethod declarations for branch and call since those are not implemented in this patch. They will be added again later. This patch also corrects DecoderMethod for LD/ST instructions for one byte or two. Differential Revision: https://reviews.llvm.org/D80912
-
Simon Pilgrim authored
-
Simon Pilgrim authored
cast<> will assert on failure anyhow. This lets us fold the cast<> with the getAPIntValue() that uses it.
-
Bruno Ricci authored
In C++17 the postfix-expression of a call expression is sequenced before each expression in the expression-list and any default argument. Differential Revision: https://reviews.llvm.org/D58579 Reviewed By: rsmith
-
Tom Weaver authored
This reverts commit 81e836a5. Accidentally committed a diff file.
-