- Dec 07, 2022
-
-
Vincent Lee authored
I'll be making changes to the ObjC implementation (bug fix) in a later change, and I noticed that this test isn't being tested at all. Fix that up here separately so further changes are easier to differentiate. Reviewed By: #lld-macho, thakis, int3 Differential Revision: https://reviews.llvm.org/D139396
-
Mahesh Ravishankar authored
This just adds a test. With CSE of single block ops, and other previously landed changes, this works at HEAD. Just adding a test that triggered this line of work that I missed adding. Differential Revision: https://reviews.llvm.org/D139385
-
liqinweng authored
Reviewed By: benshi001 Differential Revision: https://reviews.llvm.org/D134519
-
liqinweng authored
Reviewed By: Mogball Differential Revision: https://reviews.llvm.org/D139399
-
Ryan Prichard authored
Bionic's sys/user.h declares a "struct user". The header tends to be included, and when it is, it conflicts with "namespace user". Rename user to User. Differential Revision: https://reviews.llvm.org/D139380
-
Jakub Kuderski authored
This covers `SDotAccSat`, `SUDotAccSat`, and `UDotAccSat`. Reviewed By: antiagainst Differential Revision: https://reviews.llvm.org/D139243
-
Jakub Kuderski authored
This covers `SDot`, `SUDot`, and `UDot`. The `*AccSat` version will be added in a follow-up revision. Reviewed By: antiagainst Differential Revision: https://reviews.llvm.org/D139242
-
Michael Maitland authored
Since changes to account for LMUL in scheduler model existed over patches, we had to keep both LMUL specific and all LMUL classes around. Now that only the LMUL specific classes are used, we can remove the old ones.
-
Michael Maitland authored
It is likley that subtargets act differently for a vector load store instructions based on the LMUL. This patch creates seperate SchedRead, SchedWrite, WriteRes, ReadAdvance for each relevant LMUL. Differential Revision: https://reviews.llvm.org/D137429
-
Michael Maitland authored
It is likley that subtargets act differently for vector fixed-point arithmetic instructions based on the LMUL. This patch creates seperate SchedRead, SchedWrite, WriteRes, ReadAdvance for each relevant LMUL. Differential Revision: https://reviews.llvm.org/D137428
-
Roman Lebedev authored
-
Gregory Alfonso authored
Reviewed By: MaskRay Differential Revision: https://reviews.llvm.org/D139451
-
Fangrui Song authored
This reverts commit f4519578. The change is wrong. segname may not be NUL-terminated if it has 16 bytes.
-
Gregory Alfonso authored
Reviewed By: MaskRay Differential Revision: https://reviews.llvm.org/D139449
-
Florian Hahn authored
Update the sort order to make sure that comesBefore is never used from conditional facts, which are instructions but may use DFS numbers from different blocks. This fixes a crash in the added test on some platforms.
-
Craig Topper authored
We need a scratch GPR to increment the base pointer for each subsequent register. We currently reuse the input GPR for the base pointer without declaring it as a Def of the pseudo. We can't add it as a Def of the pseudo at creation time because it doesn't get register allocated. This was tried in D109405. Seems the only choice we have is to scavenge the GPR. This patch moves the expansion to eliminateFrameIndex where we can create virtual registers that will be scavenged. This also eliminates the extra operand for passing vlenb from frame lowering to expand pseudos. I need to do more testing on real world code, but wanted to get this up for early review. I hope this will fix the issue reported in D123394, but I haven't checked yet. Reviewed By: reames Differential Revision: https://reviews.llvm.org/D139169
-
Aart Bik authored
Reviewed By: Peiming Differential Revision: https://reviews.llvm.org/D139473
-
Gregory Alfonso authored
Make the types consistent with each other, and return size_t instead of a long int. Reviewed By: MaskRay Differential Revision: https://reviews.llvm.org/D126121
-
Paul Robinson authored
Although it should base the check on host, not target, if possible. Part of the project to eliminate special handling for triples in lit expressions.
-
Paul Robinson authored
Part of the project to eliminate special handling for triples in lit expressions.
-
Hanhan Wang authored
It introduces a pattern that swaps `linalg.generic + tensor.pack` to `tensor.pack + linalg.generic`. It requires all the iteration types being parallel; the indexing map of output operand is identiy. They can all be relaxed in the future. The user can decide whether the propagation should be applied or not by passing a control function. Reviewed By: mravishankar Differential Revision: https://reviews.llvm.org/D138882
-
Craig Topper authored
We know the input is not zero so we can simplify the generated code.
-
Craig Topper authored
We should be able to rely on RVO here.
-
David Blaikie authored
Some buildbots are failing in Clang and LLDB tests. (I guess the LLDB failure is due to the explicit C language tests in DwarfUnit.cpp that need to be updated - not sure what the Clang failures are about, they seem to be still emitting C99 when we're expecting C11 and I checked those tests pass... maybe systems with a different C language version default?) This reverts commit 3c312e48.
-
Amir Ayupov authored
Reviewed By: maksfb, #bolt Differential Revision: https://reviews.llvm.org/D139260
-
Amir Ayupov authored
LLVM started switching from `llvm::Optional` to `std::optional`: https://discourse.llvm.org/t/deprecating-llvm-optional-x-hasvalue-getvalue-getvalueor/63716/11 Reviewed By: #bolt, maksfb Differential Revision: https://reviews.llvm.org/D139259
-
Shilei Tian authored
This patch uses refactors CMake files related to `PluginInterface` in `plugins-nextgen` to handle LLVM dependences in a better way. Reviewed By: jhuber6 Differential Revision: https://reviews.llvm.org/D139371
-
Aart Bik authored
Reviewed By: Peiming Differential Revision: https://reviews.llvm.org/D139456
-
Owen Pan authored
This assertion failure was introduced in 9ed2e68c and is manifested when both RemoveBracesLLVM and MacroBlockBegin are set. Fixes #59335. Differential Revision: https://reviews.llvm.org/D139281
-
Jordan Rupprecht authored
Note: this header already has a dep on MC headers via MCContext.
-
serge-sans-paille authored
This is a recommit of 8ae18303, with a few cleanups. This avoids implicit conversion to StringRef at several points, which in turns avoid redundant calls to strlen. As a side effect, this greatly simplifies the implementation of StrCmpOptionNameIgnoreCase. It also eventually gives a consistent, humble speedup in compilation time (timing updated since original commit). https://llvm-compile-time-tracker.com/compare.php?from=de4b6a1bc64db33643f001ad45fae7b92b4a4688&to=c23a93d1292052b4be2fbe8c586fa31143d0c7ed&stat=instructions:u Differential Revision: https://reviews.llvm.org/D139274
-
Mitch Phillips authored
The 3-parameter std::equal used in this code access FileBuffer from [0, OutputBuffer->getBufferEnd() - OutputBuffer->getBufferStart()). If the size of FileBuffer is shorter than OutputBuffer, this ends up overflowing. This wasn't found on the sanitizer buildbots as they use an instrumented libcxx, and libcxx implements std::equal using a loop. libstdc++ on my local macine finds the bug, as it implements std::equal using bcmp(), which ASan intercepts and does a range check. The existing test doesn't technically do a buffer-overflow, but the code definitely can. If OutputBuffer was "AAABBB" and FileBuffer was "AAA", then the code would overflow. Reviewed By: abrachet Differential Revision: https://reviews.llvm.org/D139457
-
Jez Ng authored
This reverts commit e2c868fb. The buildbot failure from the earlier land has been fixed by 7c7e39db. Differential Revision: https://reviews.llvm.org/D137370
-
Jez Ng authored
This reverts commit ac3096e1. The buildbot failure from the earlier patch set has been fixed by 7c7e39db. Differential Revision: https://reviews.llvm.org/D137369
-
Paul Robinson authored
Part of the project to eliminate special handling for triples in lit expressions.
-
Nico Weber authored
Differential Revision: https://reviews.llvm.org/D139256
-
David Blaikie authored
This may be a breaking change for consumers if they're trying to detect if code is C or C++, since it'll start using new codes that they may not be ready to recognize, in which case they may fall back to non-C handling. Differential Revision: https://reviews.llvm.org/D138597
-
Félix Cloutier authored
The [initial implementation][1] of __attribute__((format)) on non-variadic functions accidentally only accepted one data argument. This worked: ```c __attribute__((format(printf, 1, 2))) void f(const char *, int); ``` but this didn't: ```c __attribute__((format(printf, 1, 2))) void f(const char *, int, int); ``` This is due to an oversight in changing the way diagnostics are emitted for `attribute((format))`, and to a coincidence in the handling of the variadic case. Test cases only covered the case that worked by coincidence. Before the previous change, using `__attribute__((format))` on a non-variadic function at all was an error and clang bailed out. After that change, it only generates a GCC compatibility warning. However, as execution falls through, it hits a second diagnostic when the first data argument is neither 0 nor the last parameter of the function. This change updates that check to allow any parameter after the format string to be the first data argument when the function is non-variadic. When the function is variadic, it still needs to be the index of the `...` "parameter". Attribute documentation is updated to reflect the change and new tests are added to verify that it works with _two_ data parameters. [1]: https://reviews.llvm.org/D112579 Radar-Id: rdar://102069446 Reviewed By: aaron.ballman Differential Revision: https://reviews.llvm.org/D137603
-
Valentin Clement authored
Support fir.class in genScalarUserDefinedAssignmentCall so emboxing is done correctly. Reviewed By: jeanPerier, PeteSteinfeld Differential Revision: https://reviews.llvm.org/D139435
-
Krzysztof Parzyszek authored
-