- Nov 26, 2022
-
-
Jakub Kuderski authored
This allows us to better canonicalize/clean-up code created by the Wide Integer Emulation pass. Reviewed By: antiagainst Differential Revision: https://reviews.llvm.org/D138606
-
Jakub Kuderski authored
This generalizes the existing fold for `ExtractOp(non-splat constant)` to work with vector results. The vector case is handled by extracting the subrange of attribute array. My main use it to clean up code generated by the Wide Integer Emulation pass. Reviewed By: antiagainst Differential Revision: https://reviews.llvm.org/D138690
-
Kazu Hirata authored
This is part of an effort to migrate from llvm::Optional to std::optional: https://discourse.llvm.org/t/deprecating-llvm-optional-x-hasvalue-getvalue-getvalueor/63716
-
Kazu Hirata authored
This is part of an effort to migrate from llvm::Optional to std::optional: https://discourse.llvm.org/t/deprecating-llvm-optional-x-hasvalue-getvalue-getvalueor/63716
-
Kazu Hirata authored
This is part of an effort to migrate from llvm::Optional to std::optional: https://discourse.llvm.org/t/deprecating-llvm-optional-x-hasvalue-getvalue-getvalueor/63716
-
Kazu Hirata authored
This is part of an effort to migrate from llvm::Optional to std::optional: https://discourse.llvm.org/t/deprecating-llvm-optional-x-hasvalue-getvalue-getvalueor/63716
-
Kazu Hirata authored
This is part of an effort to migrate from llvm::Optional to std::optional: https://discourse.llvm.org/t/deprecating-llvm-optional-x-hasvalue-getvalue-getvalueor/63716
-
Kazu Hirata authored
This is part of an effort to migrate from llvm::Optional to std::optional: https://discourse.llvm.org/t/deprecating-llvm-optional-x-hasvalue-getvalue-getvalueor/63716
-
Kazu Hirata authored
This is part of an effort to migrate from llvm::Optional to std::optional: https://discourse.llvm.org/t/deprecating-llvm-optional-x-hasvalue-getvalue-getvalueor/63716
-
Kazu Hirata authored
This patch fixes: clang-tools-extra/include-cleaner/lib/HTMLReport.cpp:240:51: error: missing field 'Locations' initializer [-Werror,-Wmissing-field-initializers]
-
Craig Topper authored
add can always be compressed to c.add if one of the sources is the same as the destination. The same is not true for c.addw where the registers need to be x8-x15.
-
Louis Dionne authored
Note that we use <stddef.h> instead of <cstddef> because we're using size_t (not std::size_t) and we're outside of namespace std. Differential Revision: https://reviews.llvm.org/D138716
-
Craig Topper authored
Compressed instructions usually require one of the source registers to also be the source register. The register allocator doesn't have that bias on its own. This patch adds register allocation hints to introduce this bias. I've started with ADDI, ADDIW, and SLLI. These all have a 5-bit field for the register. If the source and dest register are the same they are guaranteed to compress as long as the immediate is also 6 bits. This code was inspired by similar code from the SystemZ target. Reviewed By: reames Differential Revision: https://reviews.llvm.org/D138242
-
Nicolas Vasilache authored
This op significantly improves transfor dialect usage when using vector abstractions. It also brings us closer to writing simple end-to-end unit tests that guard against subtle regressions in how patterns combine. Differential Revision: https://reviews.llvm.org/D138723
-
Simon Pilgrim authored
[X86] lowerShuffleAsDecomposedShuffleMerge - try to match unpck(permute(x),permute(y)) for v4i32/v2i64 shuffles We're using lowerShuffleAsPermuteAndUnpack, which can probably be improved to handle 256/512-bit types pretty easily. First step towards trying to address the poor vector-shuffle-sse4a.ll pre-SSSE3 codegen mentioned on D127115
-
Simon Pilgrim authored
Share AVX common prefix with XOP as well as AVX1/AVX2
-
Alexander Kornienko authored
Revert "[clang][modules] NFCI: Pragma diagnostic mappings: write/read FileID instead of SourceLocation" This reverts commit f61c135a. The commit affects some build setups. See https://reviews.llvm.org/D137213#3939959.
-
- Nov 25, 2022
-
-
Louis Dionne authored
Differential Revision: https://reviews.llvm.org/D138687
-
Florian Hahn authored
StoredValues only has entries for members of the interleave group. If there are gaps, then using the index i here will either access a wrong entry or be out-of-bounds. Instead use a dedicated index that only gets incremented for members of the interleave group. Fixes #59090.
-
Louis Dionne authored
-
Dmitry Preobrazhensky authored
Differential Revision: https://reviews.llvm.org/D138594
-
Simon Pilgrim authored
I'm currently investigating using this inside lowerShuffleAsDecomposedShuffleMerge
-
Louis Dionne authored
Per our policy, the latest released AppleClang has been 14 for a while, so libc++ is removing support for AppleClang 13. Our CI bots have been moved to AppleClang 14 a few weeks ago. Differential Revision: https://reviews.llvm.org/D138685
-
Jens Massberg authored
The check has produced false positives when checking the default implementation of the spaceship operator. The default implementation should be skipped by the check. Modified the existing test so that the check runs into the bug without this fix and add another test case. Fixes #53961. Patch by Jens Massberg. Reviewed By: ilya-biryukov Differential Revision: https://reviews.llvm.org/D138701
-
Manuel Klimek authored
Move print functions to start of UnwarppedLineParser so they can be used from everywhere in the file. Pull out function that doesn't hard-code the stream.
-
Louis Dionne authored
When we define the const-correct overloads of <string.h> functions in libc++ itself, use builtins whenever possible. This avoids depending on the presence of these functions in the C library headers. Also, as a fly-by, improve the tests for these functions since we basically didn't check anything but their signature. We could have used the wrong builtin (as long as the signature matched) without ever noticing, which was quite scary. Differential Revision: https://reviews.llvm.org/D138684
-
Florian Hahn authored
This reverts commit 5577207d. This breaks building LLVM on recent macOS. Error messages below: llvm/lib/Support/Threading.cpp:190:3: error: use of undeclared identifier 'sysctlbyname' sysctlbyname("hw.physicalcpu", &count, &len, NULL, 0); ^ llvm/lib/Support/Threading.cpp:193:13: error: use of undeclared identifier 'CTL_HW' nm[0] = CTL_HW; ^ llvm/lib/Support/Threading.cpp:194:13: error: use of undeclared identifier 'HW_AVAILCPU' nm[1] = HW_AVAILCPU; ^ llvm/lib/Support/Threading.cpp:195:5: error: use of undeclared identifier 'sysctl' sysctl(nm, 2, &count, &len, NULL, 0); ^
-
Jamie Schmeiser authored
Summary: Refactor loop peeling code by moving code for calculating phi invariance into a separate class that does the calculation. Redescribe and rework the algorithm in preparation for adding increased functionality. Add test case that does not exhibit peeling that will be subsequently supported. Author: Jamie Schmeiser <schmeise@ca.ibm.com> Reviewed By: mkazantsev (Max Kazantsev) Differential Revision: https://reviews.llvm.org/D138232
-
Manuel Klimek authored
The unused variable fix also remove the test output of the tokens that do not match, making debugging tests harder. Undo the semantic changes of the build fix.
-
Valentin Clement authored
This patch relaxes the verifier for the fir.rebox operation to allow reboxing to unlimited polymoprhic box. Reviewed By: jeanPerier, PeteSteinfeld Differential Revision: https://reviews.llvm.org/D138695
-
LLVM GN Syncbot authored
-
Tiezhu Yang authored
Use the same register layout as Linux kernel, implement the related read and write operations. Reviewed By: SixWeining, xen0n, DavidSpickett Differential Revision: https://reviews.llvm.org/D138407
-
Sam McCall authored
This reverts commit 8bed59c7. Breaks bots e.g. https://lab.llvm.org/buildbot/#/builders/216/builds/13282
-
Nicolas Vasilache authored
Differential Revision: https://reviews.llvm.org/D134722
-
Archibald Elliott authored
This change is focussed on simplifying `Support/Host.h` to only do target detection. In this case, this function is close in usage to existing functions in `Support/Threading.h`, so I moved it into there. The function is also renamed to `llvm::get_physical_cores()` to match the style of threading's functions. Differential Revision: https://reviews.llvm.org/D137836
-
Pavel Labath authored
-
Valentin Clement authored
The dynamic type of an unlimited polymorphic entity has the derived category but does not have derived type spec. This leads to a crash for a nullptr dereference. This patch avoids this crash by checking if that the dynamic type is not unlimited polymorphic before dereferencing the derived type spec. Reviewed By: PeteSteinfeld Differential Revision: https://reviews.llvm.org/D138691
-
LiaoChunyu authored
[RISCV] Branchless lowering for (select (x < 0), TrueConstant, FalseConstant) and (select (x >= 0), TrueConstant, FalseConstant) This patch reduces the number of unpredictable branches (select (x < 0), y, z) -> x >> (XLEN - 1) & (y - z) + z (select (x >= 0), y, z) -> x >> (XLEN - 1) & (z - y) + y Reviewed By: craig.topper, reames Differential Revision: https://reviews.llvm.org/D137949
-
Sam McCall authored
Targets and Refs are 1:1, so merge them. Don't sort Refs array we keep indices into. (Currently we're done using those indices by the time we sort, but this is fragile)
-
Alex Richardson authored
This used to be required, but the difference between asserts/!asserts builds no longer exists for %clang_cc1 (only for %clang), so they pass just fine without this flag.
-