- Jun 30, 2020
-
-
George Mitenkov authored
This patch introduces new conversion patterns for bit and logical negation op: `spv.Not` and `spv.LogicalNot`. They are implemented by applying xor on the operand and mask with all bits set. Differential Revision: https://reviews.llvm.org/D82637
-
Joel E. Denny authored
`FILECHECK_OPTS` was implemented so that a test runner, such as CI, can specify FileCheck debugging options, such as `-v` and `-vv`. However, if a test suite has a FileCheck call that already specifies `-v` or `-vv`, then that call will fail if `FILECHECK_OPTS` also specifies it. For `-vv`, this problem already exists: `clang/test/CodeGen/aarch64-v8.2a-fp16-intrinsics-constrained.c` It's not yet clear if the `-vv` in that test was intentional, but this usage shouldn't fail anyway. It's already true that FileCheck permits `-vv` and `-v` together even though `-vv` implies `-v`. Compare D70784, which fixed the same problem for `-dump-input`. Reviewed By: jhenderson, thopre Differential Revision: https://reviews.llvm.org/D82601
-
Joel E. Denny authored
Reviewed By: jhenderson, thopre Differential Revision: https://reviews.llvm.org/D82658
-
James Y Knight authored
specified at Command creation, rather than as part of the Tool. This resolves the hack I just added to allow Darwin toolchain to vary its level of support based on `-mlinker-version=`. The change preserves the _current_ settings for response-file support. Some tools look likely to be declaring that they don't support response files in error, however I kept them as-is in order for this change to be a simple refactoring. Differential Revision: https://reviews.llvm.org/D82782
-
James Y Knight authored
In XCode 12, ld64 got support for @files, in addition to the old -filelist mechanism. Response files allow passing all command-line arguments to the linker via a file, rather than just filenames, and is therefore preferred. Because of the way response-file support is currently implemented as part of the Tool class in Clang, this change requires an ugly backdoor function to access Args. A follow-up commit fixes this, but I've ordered this change first, for easier backportability. I've added no tests here, because unfortunately, there don't appear to be _any_ response-file emission automated tests, and I don't see an obvious way to add them. I've tested that this change works as expected locally. Differential Revision: https://reviews.llvm.org/D82777
-
Christopher Tetreault authored
Reviewers: efriedma, pcc, gchatelet, kmclaughlin, sdesmalen Reviewed By: sdesmalen Subscribers: tschuett, hiraditya, rkruppe, psnobl, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D82241
-
Petr Hosek authored
The `-fuse-ld=lld` check might succeed because there's a system lld, but that lld may be out-of-date which would cause any tests that attempt to use for LTO fail. This was observed on some of the bots. Differential Revision: https://reviews.llvm.org/D81629
-
Rahul Joshi authored
- Also adopt variadic llvm::isa<> in more places. - Fixes https://bugs.llvm.org/show_bug.cgi?id=46445 Differential Revision: https://reviews.llvm.org/D82769
-
Christopher Tetreault authored
Summary: add_unittest was checking that the result of get_target_property was not "NOTFOUND", but despite what the documentation says, get_target_property returns <the var>-NOTFOUND on failure. Reviewers: efriedma, thakis, serge-sans-paille, chandlerc Reviewed By: serge-sans-paille Subscribers: mgorny, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D81762
-
Richard Smith authored
instead of postfix-expressions, and improve error recovery for postfix operators after unary-expressions. This covers nullptr, __null, and some calls to type traits with special parsing rules. We would previously not parse a postfix-expression suffix for these expressions, so would reject expressions such as __is_trivial(int)["foo"]. For the case where a postfix-expression suffix is *not* permitted after a unary-expression (for example, after a new-expression or sizeof expression), produce a diagnostic if one appears there anyway. That's always ill-formed, but previously produced very bad diagnostics.
-
Adam D Straw authored
Current Affine comparison builders, which use operator overload, default to signed comparison. This creates the possibility of misuse of these builders and potential correctness issues when dealing with unsigned integers. This change makes the distinction between signed and unsigned comparison builders and forces the caller to make a choice between the two. Differential Revision: https://reviews.llvm.org/D82323
-
Eric Schweitz authored
Differential review: https://reviews.llvm.org/D82790
-
Lei Huang authored
-
Simon Pilgrim authored
-
Sam McCall authored
-
Jason Molenda authored
-
aartbik authored
Reviewed By: reidtatge Differential Revision: https://reviews.llvm.org/D82674
-
Sam McCall authored
Or at least get a clearer error message: http://lab.llvm.org:8011/builders/mlir-windows/builds/3958/steps/build-unified-tree/logs/stdio
-
Leonard Chan authored
After c7bcd431, this test started failing when running with the new pass manager. One of the CHECKs in this file checks how the vtable is loaded for a void cast, which involves taking 2 bitcasts from the pointer to the original object. The order of these bitcasts changes under the new PM. The order doesn't matter, so this relaxes the CHECKs. Differential Revision: https://reviews.llvm.org/D82802
-
Nick Desaulniers authored
This reverts commit 33d63f02ce408d181e13089ee5a667fb2e1cdc78. Differential Revision: https://reviews.llvm.org/D80681
-
Nick Desaulniers authored
This reverts commit dffc1420. Missed a hunk (D82690).
-
Sam McCall authored
This reverts commit a3684dfc.
-
Sam McCall authored
This reverts commit 9963d93b. Fails on mac/win: http://45.33.8.238/win/18704/step_9.txt http://45.33.8.238/mac/16341/step_9.txt
-
Sam McCall authored
This reverts commit 09b6dffb. Now compiles with GCC!
-
Davide Italiano authored
The define was wrong. I could've fixed it, but given this is unused I decided to drop the function altogether.
-
peter klausler authored
Expression analysis was being invoked on the bodies of statement functions as they were being encountered during name resolution. This led to failures on some FCVS tests in cases where those expressions contained implicitly typed objects. Defer the analysis of statemet function bodies to the end of the specification part, at which time the symbols of the enclosing scope will have been typed. Reviewed By: tskeith Differential Revision: https://reviews.llvm.org/D82796
-
Mircea Trofin authored
Reviewers: thakis Subscribers: mgorny, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D82776
-
Reid Kleckner authored
Updates gn files for 918948db
-
Alex Lorenz authored
This change ensures that the Darwin driver doesn't add unsupported libraries to the link invocation when linking the Apple Silicon macOS slice. rdar://61011136 Differential Revision: https://reviews.llvm.org/D82696
-
Matt Arsenault authored
-
Matt Arsenault authored
-
Matt Arsenault authored
This was producing reg = xor undef reg, undef reg. This looks similar to a use of a value to define itself, and I want to disallow undef uses for SSA virtual registers. If this were to use implicit_def, there's no guarantee the two operands end up using the same register (I think no guarantee exists even if the two operands start out as the same register, but this was violated when I switched this to use an explicit implicit_def). The MOV32r0 pseudo evidently exists to handle this case, so use it instead. This was more work than I expected for the 64-bit case, but I didn't see any helper for materializing a 64-bit 0.
-
Reid Kleckner authored
-
LLVM GN Syncbot authored
-
Martijn Vels authored
Summary: This change optimizes the assign() methods for string where either the contents or lengths are compile time known constants. For small strings (< min_cap) we can execute the assignment entirely inline. For strings up to 128 bytes we allow the compiler to efficiently inline the copy operation after we call the offline __resize<>() method. Short / long branches are taken at the call site for better branch prediction and allowing FDO optimizations. Benchmarks (unstable / google perflab): ``` name old time/op new time/op delta BM_StringAssignAsciiz_Empty_Opaque 5.69ns ± 7% 5.97ns ± 7% ~ (p=0.056 n=5+5) BM_StringAssignAsciiz_Empty_Transparent 5.39ns ± 7% 0.79ns ± 8% -85.36% (p=0.008 n=5+5) BM_StringAssignAsciiz_Small_Opaque 11.2ns ± 5% 11.0ns ± 6% ~ (p=0.548 n=5+5) BM_StringAssignAsciiz_Small_Transparent 10.1ns ± 7% 1.0ns ± 8% -89.76% (p=0.008 n=5+5) BM_StringAssignAsciiz_Large_Opaque 23.5ns ± 7% 23.8ns ± 7% ~ (p=0.841 n=5+5) BM_StringAssignAsciiz_Large_Transparent 21.4ns ± 7% 12.7ns ± 7% -40.83% (p=0.008 n=5+5) BM_StringAssignAsciiz_Huge_Opaque 336ns ± 4% 327ns ± 7% ~ (p=0.421 n=5+5) BM_StringAssignAsciiz_Huge_Transparent 331ns ± 5% 324ns ± 7% ~ (p=0.548 n=5+5) BM_StringAssignAsciizMix_Opaque 13.6ns ±10% 13.7ns ± 9% ~ (p=0.690 n=5+5) BM_StringAssignAsciizMix_Transparent 12.9ns ± 8% 3.6ns ± 8% -71.82% (p=0.008 n=5+5) ``` Reviewers: EricWF, #libc! Subscribers: jfb, libcxx-commits Tags: #libc Differential Revision: https://reviews.llvm.org/D82221
-
Nikita Popov authored
-
Nikita Popov authored
This reverts commit 01bf8cdf. Breaks the build: llvm/include/llvm/ADT/FunctionExtras.h:223:7: error: explicit template argument list not allowed 223 | Callbacks<CallableT, CalledAs, EnableIfTrivial<CallableT>>;
-
Sam McCall authored
Summary: This introduces the "semantic form" of config exposed to features, contrasted with the "syntactic form" exposed to users in e9fb1506. The two are not connected, CompiledFragment and Provider will bridge that gap. Nor is configuration actually set: that needs changes to ClangdServer, TUScheduler, and BackgroundQueue. Reviewers: hokein, kadircet Subscribers: mgorny, ilya-biryukov, MaskRay, jkorous, arphaman, usaxena95, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D82606
-
Alexey Bataev authored
-
Sam McCall authored
Summary: This technique should extend to rvalue-qualified etc, but I didn't add any. I removed "volatile" from the future plans, which seems... speculative at best. While here I moved the callbacks object out of the constructor into a variable template, which I believe addresses the fixme there about unused objects. (I'm not a template guru, so it's always possible the old version was designed for compile-time performance in a way I'm missing) Reviewers: kadircet Subscribers: dexonsmith, llvm-commits, chandlerc Tags: #llvm Differential Revision: https://reviews.llvm.org/D82581
-