- Jun 10, 2022
-
-
Haojian Wu authored
-
Sanjay Patel authored
https://alive2.llvm.org/ce/z/hRy3rE As shown in D123408, we can produce this pattern when moving cast around, and we already have a related fold for a binop with a constant operand.
-
Sanjay Patel authored
-
David Green authored
-
Benjamin Kramer authored
-
Simon Pilgrim authored
The code is inside a if(VT.is256BitVector() || VT.is512BitVector()) condition
-
Maksim Panchenko authored
The linker can convert instructions with GOTPCRELX relocations into a form that uses an absolute addressing with an immediate. BOLT needs to recognize such conversions and symbolize the immediates. Reviewed By: rafauler Differential Revision: https://reviews.llvm.org/D126747
-
Jay Foad authored
Changes for GFX11: - Clauses may not mix instructions of different types, and there are more types. For example image instructions with and without a sampler are now different types. - The max size of a clause is explicitly documented as 63 instructions. Previously it was implicitly assumed to be 64. This is such a tiny difference that it does not seem worth making it conditional on the subtarget. - It can be beneficial to clause stores as well as loads. Differential Revision: https://reviews.llvm.org/D127391
-
Matthias Springer authored
It is sometimes better to make a copy of the OpResult instead of making a copy of the OpOperand. E.g., when bufferizing tensor.extract_slice. This implementation will eventually make parts of extract_slice's `bufferize` implementation obsolete (and simplify it). It will only need to handle in-place OpOperands. Differential Revision: https://reviews.llvm.org/D126819
-
Simon Pilgrim authored
-
Matthias Springer authored
The TensorCopyInsertion pass resolves out-of-place bufferization decisions by inserting explicit `bufferization.alloc_tensor` ops. This change moves that functionality into a new BufferizableOpInterface method, so that it can be overridden by op implementations. Some op bufferizations must insert additional `alloc_tensor` ops to make sure that certain aliasing invariants are not violated (e.g., scf::ForOp). This will be addressed in a subsequent change. Differential Revision: https://reviews.llvm.org/D126817
-
Christopher Bate authored
Fixed issue with vector.contract default unroll permutation. Adds support for vector unroll transformations to unroll in different orders. For example, the vector.contract can be unrolled into a smaller set of contractions. There is a choice of how to unroll the decomposition based on the traversal order of (dim0, dim1, dim2). The choice of traversal order can now be specified by a callback which given by the caller of the transform. For now, only the vector.contract, vector.transfer_read/transfer_write operations support the callback. Differential Revision: https://reviews.llvm.org/D127004
-
Pengxuan Zheng authored
Some object files produced by Mirosoft tools contain sections whose name field is not fully null-padded at the end. Microsoft's dumpbin is able to print the section name correctly, but this causes parsing errors with LLVM tools. So far, this issue only seems to happen when the section name is longer than 8 bytes. In this case, the section name field contains a slash (/) followed by the offset into the string table, but the name field is not fully null-padded at the end. Reviewed By: mstorsjo Differential Revision: https://reviews.llvm.org/D127369
-
Mark de Wever authored
Reviewed By: #libc, philnik Differential Revision: https://reviews.llvm.org/D127419
-
Matthias Springer authored
This pass runs the One-Shot Analysis to find out which tensor OpOperands must bufferize out-of-place. It then rewrites those tensor OpOperands to explicit allocations with a copy in the form of `bufferization.alloc_tensor`. The resulting IR can then be bufferized without having to care about read-after-write conflicts. This change makes it possible to connect One-Shot Analysis to other bufferizations such as the sparse compiler. Differential Revision: https://reviews.llvm.org/D126573
-
Mariusz Borsa authored
There are differences in handling of stat64/statfs64 calls by sanitizers between Linux and macOS. Versions of macOS starting with 10.6 drop the stat64/statfs64 APIs completely, relying on the linker to redirect stat/statfs to the appropriate 64 bit versions. Emitting variables needed by sanitizers is thus controlled by convoluted sets of conditions, involving Linux, IOS, macOS and Android, sprinkled around files. This change adresses it, allowing to specify presence/absence of stat64/statfs64 for each platform, in a single location. Also, it adresses the Android case which handles stat64, but not statfs64. Adding Vitaly as a reviewer since he seems to be actively working on sanitizers, perhaps can comment on the Android bit Differential Revision: https://reviews.llvm.org/D127343
-
Louis Dionne authored
-
Joe Nash authored
Supports encoding existing instrutions on gfx11 and MC support for the new VOPC dpp instructions. Patch 19/N for upstreaming of AMDGPU gfx11 architecture Depends on D126978 Reviewed By: rampitec, #amdgpu Differential Revision: https://reviews.llvm.org/D126989
-
Alvin Wong authored
PE/COFF can use either MSVC or GNU (MinGW) ABI for C++ code, however LLDB had defaulted to MSVC implicitly with no way to override it. This causes issues when debugging modules built with the GNU ABI, sometimes even crashes. This changes the PE/COFF plugin to set the module triple according to the default target triple used to build LLDB. If the default target triple is Windows and a valid environment is specified, then this environment will be used for the module spec. This not only works for MSVC and GNU, but also other environments. A new setting, `plugin.object-file.pe-coff.abi`, has been added to allow overriding this default ABI. * Fixes https://github.com/llvm/llvm-project/issues/50775 * Fixes https://github.com/mstorsjo/llvm-mingw/issues/226 * Fixes https://github.com/mstorsjo/llvm-mingw/issues/282 Reviewed By: omjavaid Differential Revision: https://reviews.llvm.org/D127048
-
Matthias Springer authored
If `copy` is specified, the newly allocated buffer is initialized with the given contents. Also add an optional `escape` attribute to indicate whether the buffer of the tensor may be returned from the parent block (aka. "escape") after bufferization. This change is in preparation of connecting One-Shot Bufferize to the sparse compiler. Differential Revision: https://reviews.llvm.org/D126570
-
Martin Storsjö authored
This silences the following warning: ../tools/lld/ELF/SyntheticSections.cpp:1596:48: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] 1596 | assert((index != 0 || type != target->gotRel && type != target->pltRel || Differential Revision: https://reviews.llvm.org/D127395
-
Martin Storsjö authored
This allows distributors to simplify how libc++ is built in MinGW configurations. Differential Revision: https://reviews.llvm.org/D127151
-
Tim Northover authored
UNIX03 conformance requires utilities to flush stdout before exiting and raise an error if writing fails. Flushing already happens on a call to exit and thus automatically on a return from main. Write failure is then detected by LLVM's default SIGPIPE handler. The handler already exits with a non-zero code, but conformance additionally requires an error message. First reapply attempt I hadn't noticed the test had changed, hopefully this goes better.
-
LLVM GN Syncbot authored
-
Nikolas Klauser authored
Reviewed By: ldionne, #libc Spies: libcxx-commits, mgorny Differential Revision: https://reviews.llvm.org/D127156
-
Stanislav Mekhanoshin authored
Nic Curtis done the experiments to prove it is faster than a separate mul and add. Fixes: SWDEV-332806 Differential Revision: https://reviews.llvm.org/D127253
-
Aart Bik authored
Using "default:" in the switch statemements that handle all our merger ops has become a bit cumbersome since it is easy to overlook parts of the code that need to handle ops specifically. By enforcing full switch statements without "default:", we get a compiler warning when cases are overlooked. Reviewed By: wrengr Differential Revision: https://reviews.llvm.org/D127263
-
Tim Northover authored
It broke PPC bots.
-
Alexander Yermolovich authored
I put it into wrong directory. As the result it is failing for aarch64. Moving the test under X86. Orignial diff D126999. Differential Revision: https://reviews.llvm.org/D127417
-
Kai Nacke authored
Root cause for the failure is that the visibility of symbols is different on z/OS. To fix the failure, the symbols need to be exported. Reviewed By: abhina.sreeskantharajan Differential Revision: https://reviews.llvm.org/D127416
-
Stanislav Mekhanoshin authored
- VOP3 and SDWA forms of V_CMPX were not handled - Hazard only exists if the compare defines EXEC (i.e. V_CMPX) forwarded to the permlane. Differential Revision: https://reviews.llvm.org/D127344
-
Ahmed Bougacha authored
This was assuming the vector types were MVTs, but they don't have to be. Note that the concrete output of the test isn't very useful, since it's dominated by nonsensical calling convention lowering for the weird types. Differential Revision: https://reviews.llvm.org/D126505
-
Michael Jones authored
This patch adds support for d, i, and u conversions in printf, as well as comprehensive unit tests. Reviewed By: sivachandra Differential Revision: https://reviews.llvm.org/D125929
-
Siva Chandra Reddy authored
The compile options now match that of thrd_create. Two compile options are of importance: 1. -O3 - This is required so that stack is not used between the clone syscall and the start function in the child thread. 2. -fno-omit-frame-pointer - This is required so that we can sniff out the thread start args from the child thread's stack memory. Without these two options, pthread_create will exhibit flaky behavior. Reviewed By: lntue, michaelrj Differential Revision: https://reviews.llvm.org/D127381
-
Michael Jones authored
previously the printf converter tests reused the same string_writer, which meant that each test depended on the tests before it to succeed. This makes a new string_writer for each test to simplify and clarify the tests. Reviewed By: sivachandra Differential Revision: https://reviews.llvm.org/D127341
-
Alex Brachet authored
CLANG_MODULE_CACHE_PATH can be used to change where clang should put the module cache, or can be set to "" to disable caching entirely. Differential revision: https://reviews.llvm.org/D126678
-
Matthias Springer authored
This simplifies the bufferization itself and is in preparation of connecting with the sparse compiler. Differential Revision: https://reviews.llvm.org/D126814
-
Matthias Springer authored
CallOp result are not equivalent to an OpOperand if the OpOperand bufferizes out-of-place. Differential Revision: https://reviews.llvm.org/D126813
-
Nico Weber authored
Fixes link of many binaries if RISCV is enabled but most other targets aren't.
-
Matthias Springer authored
Users should explicitly run `-buffer-results-to-out-params` instead. The purpose of this change is to remove `finalizeBuffers`, which made it difficult to extend the bufferization to custom buffer types. Differential Revision: https://reviews.llvm.org/D126253
-