- Feb 18, 2023
-
-
Mark de Wever authored
LWG3810 CTAD for std::basic_format_args Reviewed By: #libc, philnik Differential Revision: https://reviews.llvm.org/D144275
-
Pavel Kopyl authored
Also get rid of explicitly specified '-march' values for old architectures. This simplifies %ptxas-verify statements. After the change, we can potentially miss cases where a new functionality is added to the architecture without appropriate checks in the backend. On the other hand, this is mostly true for old architectures that have been thoroughly tested. Differential Revision: https://reviews.llvm.org/D141736
-
Konstantin Varlamov authored
-
Michael Jones authored
The goal is to fuzz the entirety of printf, but the plan is to do it in pieces for simplicity. This test fuzzes just the parser, while later tests will fuzz the converters. This also adds a mock version of the arg_list class. Reviewed By: sivachandra Differential Revision: https://reviews.llvm.org/D143784
-
Michael Jones authored
For testing purposes we need to be able to mock out the ArgList class. This patch adds a mock version of that class as well as a flag to enable it. Reviewed By: sivachandra Differential Revision: https://reviews.llvm.org/D144145
-
Hanhan Wang authored
Do not create an Affine ops for expanded size because the affine op is too complicated which would hit an assertion in affine ops simplification. Reviewed By: mravishankar Differential Revision: https://reviews.llvm.org/D144151
-
Craig Topper authored
Internally we store constants in int64_t after parsing, but this is kind of an implementation detail. If we only supported rv32, we might have chosen int32_t. For rv32, I think it makes sense to accept the constants that we would accept if int32_t was the internal type. In fact we already do this for the `li` alias. This patch extends this to sign extended constants for other instructions. This matches the GNU assembler. The difference between LLVM and gcc was previously noted here. https://github.com/riscv-non-isa/riscv-asm-manual/pull/71 Reviewed By: reames Differential Revision: https://reviews.llvm.org/D144166
-
Philipp Tomsich authored
This reverts commit 20cc23c7.
-
Philipp Tomsich authored
This reverts commit d2918544.
-
Manolis Tsamis authored
The instructions in the XTHeadMac extension (multiply accumulate instructions) were marked as commutative but because the destination register was also an input (accumulate) register and was connected to the destination register with a register allocator constraint, all three operands (instead of two) were incorrectly considered commutative. To fix that an appropriate fixCommutedOpIndices call was added for these instructions in findCommutedOpIndices New test functions have been added to test the correct behaviour in xtheadmac.ll. Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D144278
-
Philipp Tomsich authored
The RISC-V backend thus far does not provide strength-reduction, which causes a long (but not complete) list of 3-instruction patterns listed to utilize the shift-and-add instruction from Zba and XTHeadBa in strength-reduction. This adds the logic to perform strength-reduction through the DAG combine for ISD::MUL. Initially, we wire this up for XTheadBa only, until this has had some time to settle and get real-world test exposure. The following strength-reductions strategies are currently supported: - XTheadBa - C = (n + 1) // th.addsl - C = (n + 1)k // th.addsl, slli - C = (n + 1)(m + 1) // th.addsl, th.addsl - C = (n + 1)(m + 1)k // th.addsl, th.addsl, slli - C = ((n + 1)m + 1) // th.addsl, th.addsl - C = ((n + 1)m + 1)k // th.addslm th.addsl, slli - base ISA - C being 2 set-bits // slli, slli, add (possibly slli, th.addsl) Even though the slli+slli+add sequence would we supported without XTheadBa, this currently is gated to avoid having to update a large number of test cases (i.e., anything that has a multiplication with a constant where only 2 bits are set) in this commit. With the strength reduction now being performed in performMUL combine, we drop the (now redundant) patterns from RISCVInstrInfoXTHead.td. Depends on D143029 Differential Revision: https://reviews.llvm.org/D143394 -
Manolis Tsamis authored
The vendor-defined XTHeadMemPair (no comparable standard extension exists at the time of writing) extension adds two-GPR load/store pair instructions. It is supported by the C9xx cores (e.g., found in the wild in the Allwinner D1) by Alibaba T-Head. The current (as of this commit) public documentation for this extension is available at: https://github.com/T-head-Semi/thead-extension-spec/releases/download/2.2.2/xthead-2023-01-30-2.2.2.pdf Support for these instructions has already landed in GNU Binutils: https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=6e17ae625570ff8f3c12c8765b8d45d4db8694bd Depends on D143847 Differential Revision: https://reviews.llvm.org/D144002
-
Nikolas Klauser authored
-
Jun Sha (Joshua) authored
Recommit by preames with commit message, various style cleanups, and unaddressed review comments corrected. This patch implements experimental codegen support for the RISCV Zfa extension as specified here: https://github.com/riscv/riscv-isa-manual/releases/download/draft-20221119-5234c63/riscv-spec.pdf, Ch. 25. This extension has not been ratified. This change does not include support for FLI (upcoming in a follow up change) or FCVTMOD (not relevant for C/C++). Differential Revision: https://reviews.llvm.org/D143982
-
Kazu Hirata authored
This patch fixes: llvm/lib/IR/Instruction.cpp:141:20: warning: unused variable ‘CB’ [-Wunused-variable]
-
Jeff Niu authored
This patch reintroduces an API to create operations with a pre-existing DictionaryAttr. This API does not populate the attributes with any default attributes the operation may have, like the API that takes a NamedAttrList does. NamedAttrList is effective at not re-hashing the attributes if no default attributes were added, but this new API speeds up clone-heavy workloads slightly (~5%). Reviewed By: rriddle Differential Revision: https://reviews.llvm.org/D144204
-
Ryan Guo authored
These methods won't assert for release build.
-
Craig Topper authored
[RISCV] Improve isInterleaveShuffle to handle interleaving the high half and low half of the same source. This is needed to support the new interleave intrinsics from D141924 for fixed vectors. I've reworked the core loop to operate in terms of half of a source. Making 4 possible half sources. The first element of the half is used to indicate which source using the same numbering as the shuffle where the second source elements are numbered after the first source. I've added restrictions to only match the first half of two vectors or the first and second half of a single vector. This was done to prevent regressions on the cases we have coverage for. I saw cases where generic DAG combine split a single interleave into 2 smaller interleaves a concat. We can revisit in the future. Reviewed By: reames Differential Revision: https://reviews.llvm.org/D144143
-
Moshe Berman authored
The gABI prohibits multiple SH_SYMTAB sections. As a result, llvm-objcopy was crashing in SymbolTableSection::removeSymbols(). This patch fixes the issue by emitting an error if multiple SH_SYMTAB sections are encountered when building an ELF object. Fixes: https://github.com/llvm/llvm-project/issues/60448 Differential Revision: https://reviews.llvm.org/D143508
-
Arthur Eubanks authored
Differential Revision: https://reviews.llvm.org/D143545
-
Arthur Eubanks authored
This reverts commit d73eb92c. Breaks win/mac, e.g. http://45.33.8.238/win/75236/step_4.txt
-
Mark de Wever authored
Reviewed By: #libc, ldionne Differential Revision: https://reviews.llvm.org/D143393
-
Jun Sha (Joshua) authored
(Opening comment by preames - submitter, not patch author) Try 1 was reverted because it had been landed in pieces, none of which had a meaningful commit message. Try 2 was reverted because of a buildbot failure. It turns out this was a spurious revert on my (preames) part. The buildbots were failing, and it was from one of my changes in this sequence, but not the recommit. I had reverted both of the try 1 commits in a single git push, but in separate *commits*. Some of the builders decided to build the broken state between the original try 1 commit, and I'd not noticed that. I'd assumed the breakage was because of the try2 re-commit. So the revert of the try 2 recommit was spurious. Original commit message: This implements experimental support for the RISCV Zfa extension as specified here: https://github.com/riscv/riscv-isa-manual/releases/download/draft-20221119-5234c63/riscv-spec.pdf, Ch. 25. This extension has not been ratified. Once ratified, it'll move out of experimental status. This change adds assembly support for all instructions except load-immediate instructions (fli.s/fli.d/fli.h). Assembly support for that instruction and codegen support will follow in separate patches. Differential Revision: https://reviews.llvm.org/D141984
-
Arthur Eubanks authored
Differential Revision: https://reviews.llvm.org/D143545
-
Nick Desaulniers authored
I added a new pass, callbrprepare, to the pass pipelines in commit a3a84c9e ("[llvm] add CallBrPrepare pass to pipelines") but did not test experimental backends.
-
Mark de Wever authored
While investigating the flaky tests on the mac backdeployment targets it seems the tests are different than suggested in the LWG issue. That tests "does work", grabs the mutex, marks the task as done, and finally calls the notifier. Our test emulated "does work" after the notification, effectively sleeping with a lock held. This has been fixed. A second improvement is that the test fails when, due to OS scheduling, the condition variable is not used in the main thread. During discussing the approach of the patch with @ldionne, he noticed the real reason why the test is flaky; the Apple backdeployment targets use a dylib, which does not contain the fix. So the test can't be tested on that platform; it only proves the LWG issue was correct and the Standard contained a bug. Reviewed By: ldionne, #libc Differential Revision: https://reviews.llvm.org/D143816
-
Arthur Eubanks authored
Reviewed By: hans Differential Revision: https://reviews.llvm.org/D143598
-
Jan Dupej authored
This patch ports the PlaceSafepoints pass to the new pass manager as it is used by .NET/Mono. Compatibility with the legacy pass manager is maintained by adding PlaceSafepointsLegacyPass. This pass also depends on PlaceBackedgeSafepointsLegacyPass, which has been kept in the legacy-only variant, since it is apparently used only from PlaceSafepointsPass. It has been renamed, though, to indicate its legacy interface. Reviewed By: aeubanks Differential Revision: https://reviews.llvm.org/D136163
-
Peter Klausler authored
When a formatted I/O READ statement processes a DT edit descriptor to call a user-defined I/O subroutine to read a derived type data item, all of the characters that that subroutine reads via child I/O count as charecters read by an edit descriptor and should accumulate in the result returned by a SIZE= item in the original READ statement's control list. Differential Revision: https://reviews.llvm.org/D144234
-
Mark de Wever authored
Uses an absolute path to the selected binary. Updates the formatting of two files to match clang-format-16 style. Depends on D144126 Reviewed By: #libc, philnik Differential Revision: https://reviews.llvm.org/D144132
-
Mark de Wever authored
Several improvements - Only add files that we actually want to format. - Sort according to a fixed locale. Some drive-by fixes - Rename a text file, this avoids a filter exception. - Adds a some missing source files extensions. - Removes unused extensions hh, hxx, cc, and cxx from clang-format. Reviewed By: philnik, #libc Differential Revision: https://reviews.llvm.org/D144126
-
Craig Topper authored
These seem like properties we will want to adjust based on -mtune. Move them to subtarget like is done on ARM and AArch64. Don't add any overrides yet. Note there's a slight change here. We are now passing Align(1) for preferred function alignment where we previously passed the minimum alignment. As far as I could tell, it will be maxed with min when it used so this should be ok. Reviewed By: reames Differential Revision: https://reviews.llvm.org/D144048
-
Nikolas Klauser authored
Other macros that disable parts of the library are named `_LIBCPP_HAS_NO_WHATEVER`. Reviewed By: ldionne, Mordante, #libc Spies: libcxx-commits, smeenai Differential Revision: https://reviews.llvm.org/D143163
-
Ryan Guo authored
This patch makes it easier for users when they want to use validated lookup on DenseMap/StringMap as a composable C++ expression. For instance: ``` // instead of if (auto val = map.lookup(key)) return val; assert("..."); // we can write return map.at(key); ``` Differential Revision: https://reviews.llvm.org/D143976 -
Donát Nagy authored
This simple commit inserts "body" into the message "repeated branch _body_ in conditional chain". This is motivated by feedback from a user who (at first glance) thought that clang-tidy complained about a repeated branch _condition_. Differential Revision: https://reviews.llvm.org/D143917
-
Tue Ly authored
-
Mark de Wever authored
These macros are intended to replace the macros in rapid-cxx-test.h. Reviewed By: #libc, ldionne Differential Revision: https://reviews.llvm.org/D142808
-
- Feb 17, 2023
-
-
LLVM GN Syncbot authored
-
Thomas Raoux authored
Allow user to apply multi-buffering transformation for cases where proving that there is no loop carried dependency is not trivial. In this case user needs to ensure that the data are written and read in the same iteration otherwise the result is incorrect. Differential Revision: https://reviews.llvm.org/D144227
-
Sanjay Patel authored
This is a cleanup/modernization patch requested in D144045 to make loop analysis a proper optional parameter to the pass rather than a semi-arbitrary value inherited via the pass pipeline. It's a bit more complicated than the recent patch I started copying from (D143980) because InstCombine already has an option for MaxIterations (added with D71145). I debated just deleting that option, but it was used by a pair of existing tests, so I put it into a struct (code largely copied from SimplifyCFG's implementation) to make the code more flexible for future options enhancements. I didn't alter the pass manager invocations of InstCombine in this patch because the patch was already getting big, but that will be a small follow-up as noted with the TODO comment. Differential Revision: https://reviews.llvm.org/D144199
-