- Sep 05, 2022
-
-
Florian Hahn authored
Depends on D132585. Reviewed By: Ayal Differential Revision: https://reviews.llvm.org/D132586
-
Nicolas Vasilache authored
Gather/Scatter are examined from first principles in light of our recent progress on tensor-based codegen and in-place bufferization. In the future, lowering of these abstractions to operate **inplace** on buffers will likely require a more powerful buffer representation than strided memref. General context: https://discourse.llvm.org/t/rfc-structured-codegen-beyond-rectangular-arrays/64707 Relevant TL;DR parts of the proposal: - gather: https://discourse.llvm.org/t/rfc-structured-codegen-beyond-rectangular-arrays/64707#proposal-gatherop-and-friends-10 - need for more expressive types: https://discourse.llvm.org/t/rfc-structured-codegen-beyond-rectangular-arrays/64707#proposal-bufferization-copy-view-and-the-need-for-more-expressive-types-12 - jagged buffer discussion: https://discourse.llvm.org/t/rfc-structured-codegen-beyond-rectangular-arrays/64707#proposal-first-class-jagged-buffer-13 Differential Revision: https://reviews.llvm.org/D130348
-
Ying Yi authored
Driver tests: remove `REQUIRES: x86-registered-target` and set `--sysroot=""` to support clang with `DEFAULT_SYSROOT`. When testing clang that has been compiled with -DDEFAULT_SYSROOT set to some path, ps4-ps5-header-search.c would fail. The test needs to be updated. 1. Remove unnecessary REQUIRES: x86-registered-target. 2. Override sysroot to be empty string for the test to succeed when clang is configured with DEFAULT_SYSROOT. -
serge-sans-paille authored
When parsing a format string with less argument than specified, one should check argument access because there may be no such argument. This fixes #57517 Differential Revision: https://reviews.llvm.org/D133197
-
Christian Sigg authored
The `licences` attribute is deprecated, see https://docs.bazel.build/versions/4.0.0/be/common-definitions.html#common-attributes.
-
Samuel Parker authored
-
Nathan Ridge authored
-
Nikita Popov authored
This used a single check to make sure that the object is both writable and thread-local. Separate them out to make the deficiencies in the current code more obvious.
-
Nathan Ridge authored
Differential Revision: https://reviews.llvm.org/D132830
-
Krystian Kuzniarek authored
Introduced by 23a5090c, some style option markers indicated 'clang-format 4', though their respective options were available in earlier releases. Differential Revision: https://reviews.llvm.org/D129934
-
Chuanqi Xu authored
Previously we may call Sema::FindAllocationFunctions directly to lookup allocation functions directly instead of using our wrapped lambda LookupAllocationFunction, which is slightly incosnsistent. It will be helpful to refactor this for further changes. Also previously, when we lookup 'operator new(std::size_t, std::nothrow_t)' in case we found `get_return_object_on_allocation_failure` in the promise_type, the compiler will try to look at the allocation function in promise_type. However, this is not wanted actually. According to [dcl.fct.def.coroutine]p10: > if a global allocation function is selected, the > ::operator new(size_t, nothrow_t) form is used. So we should only lookup for `::operator (size_t, nothrow_t)` for the global allocation function. For the allocation function in the promise_type, the requirement is that it shouldn't throw, which has already been checked. Given users generally include headers from standard libs so it will generally include the <new> header, so this change should be a trivial one and shouldn't affect almost any user.
-
Fangrui Song authored
-
Fangrui Song authored
-
wanglei authored
This patch makes the assembler support all modifiers defined in gnu-as. Also changes some diagnostic information. Differential Revision: https://reviews.llvm.org/D132633
-
Fangrui Song authored
-
Fangrui Song authored
-
Craig Topper authored
The way ComputeNumSignBits was being used was only correct if OuterBitSize is exactly 2x InnerBitSize. Which is always true, but not obviously so. Comparing ComputeMaxSignificantBits to InnerBitSize feels more correct.
-
Fangrui Song authored
-
Fangrui Song authored
-
Craig Topper authored
-
Craig Topper authored
-
Chuanqi Xu authored
-
gonglingqin authored
Differential Revision: https://reviews.llvm.org/D133185
-
Chenbing Zheng authored
-
ZHU Zijia authored
Update `CMake.rst` to follow the upgrade to C++ 17 in LLVM. Reviewed By: thieta, MaskRay Differential Revision: https://reviews.llvm.org/D133272
-
Fangrui Song authored
-
Fangrui Song authored
This simplifies SymbolTableSection<ELFT>::writeTo. Add dsoProtected to be used in canDefineSymbolInExecutable and get the side benefit that the protected DSO preemption diagnostic is clearer.
-
Fangrui Song authored
-
Fangrui Song authored
VER_NDX_LOCAL/VER_NDX_GLOBAL cannot be hidden, so we can compare them with versyms[i] instead of versyms[i] & ~VERSYM_HIDDEN. In the presence of an error, we can suppress addSymbol.
-
Fangrui Song authored
-
Vitaly Buka authored
range-based loop should not be used here, as fixupImmediateBr push_backs into the container. http://lab.llvm.org/buildbot/#/builders/168 http://lab.llvm.org/buildbot/#/builders/74 http://lab.llvm.org/buildbot/#/builders/5 http://lab.llvm.org/buildbot/#/builders/239 http://lab.llvm.org/buildbot/#/builders/237 http://lab.llvm.org/buildbot/#/builders/236 This reverts commit fedc5973.
-
Fangrui Song authored
-
Fangrui Song authored
-
Florian Hahn authored
Users of LCSSA may not expect non-phi uses when checking the uses outside a loop, which may cause crashes. This is due to the fact that we do not update uses in unreachable blocks. To ensure all reachable uses outside the loop are phis, update uses in unreachable blocks to use poison in dead code. Fixes #57508.
-
Florian Hahn authored
Modernize the test to make it easier to extend in a follow-up patch.
-
Florian Hahn authored
Modernize the test to make it easier to extend in a follow-up patch.
-
LLVM GN Syncbot authored
-
isuckatcs authored
This patch introduces a new checker, called NewArraySize checker, which detects if the expression that yields the element count of the array in new[], results in an Undefined value. Differential Revision: https://reviews.llvm.org/D131299
-
Daniel Bertalan authored
-
Simon Pilgrim authored
This was achieved using the 'cost-tables vs llvm-mca' script from D103695 Some of the znver1/znver2 latency/throughput numbers were really weird (some copy+paste afaict) - I've used the numbers from the AMD SoG, which roughly match the 'worst case' range value from Agner
-