- Nov 21, 2022
-
-
Benjamin Maxwell authored
-
Louis Dionne authored
Libc++ tried accomodating systems that need to be able to define various __need_FOO macros before including C library headers, however it does not appear to be needed anymore in most cases. Indeed, glibc used to use that system to conditionally provide definitions, however almost all instances of these macros have been removed from glibc years ago. I think the next step would be to also fix Clang's own builtin headers to stop needing these macros. Differential Revision: https://reviews.llvm.org/D131425
-
Aliia Khasanova authored
resolve conflicts Differential Revision: https://reviews.llvm.org/D138282
-
Shengchen Kan authored
Before this patch, the code enumerated `getCondFromBranch`, `getCondFromSETCC` and `getCondFromFromCMov` to get the condition code of a `MachineInstr`, and assigned the result to variable `OldCC` when `MI || IsSwapped || ImmDelta != 0` was satisfiled. After this patch, the `if-else` structure is eliminated by using `getCondFromMI`. Since `OldCC` is only used when `MI || IsSwapped || ImmDelta != 0` is true, it is initialized with `getCondFromMI` directly outside the scope of `if` now. Reviewed By: pengfei Differential Revision: https://reviews.llvm.org/D138349
-
Max Kazantsev authored
-
Pavel Labath authored
-
Björn Schäpers authored
-
Björn Schäpers authored
Shift is 0 for all non comments, maybe even for comments. Don't add the 0 up to three times. Differential Revision: https://reviews.llvm.org/D138357
-
Björn Schäpers authored
This sort of amends cdbe2968 Differential Revision: https://reviews.llvm.org/D138356
-
Björn Schäpers authored
Done by clang-format itself. Differential Revision: https://reviews.llvm.org/D138354
-
Oleg Shyshkov authored
Original [RFC](discourse.llvm.org/t/rfc-primitive-ops-add-broadcastop-to-linalg/66313) defined `dimensions` as a map from input to init, but a discussion in reviews.llvm.org/D138291 concluded that it's more natural for `dimensions` to represent added dims. Also this way is more consistent with `linalg.reduce`. Differential Revision: https://reviews.llvm.org/D138408
-
Benjamin Kramer authored
-
Anton Sidorenko authored
We generate erroneous trace for a basic block if it does not have at least one predecessor when MinInstr strategy is used. Currently only this strategy is implemented, so we always have a wrong trace for any entry block. This results in wrong instructions heights calculation and also leads to wrong critical path. The described behavior is demonstrated on a simple test. It shows that early if-conv pass makes wrong decisions due to incorrectly calculated critical path lenght. Differential Revision: https://reviews.llvm.org/D138272
-
Anton Sidorenko authored
-
Guillaume Chatelet authored
-
Alex Zinenko authored
-
Max Kazantsev authored
The transform doesn't work if argument isn't immediately a Phi.
-
Jean Perier authored
Differential Revision: https://reviews.llvm.org/D138198
-
Valentin Clement authored
-
Fangrui Song authored
We may try a custom allocator in the future.
-
Valentin Clement authored
Convert fir.select_type operation to an if-then-else ladder. The type guards are sorted before the conversion so it follows the execution of SELECT TYPE construct as mentioned in 11.1.11.2 point 4 of the Fortran standard. Depends on D138279 Reviewed By: jeanPerier Differential Revision: https://reviews.llvm.org/D138280
-
wanglei authored
The `li.[wd]` pseudo instructions are used to load an immediate value into a GPR. These expand directly during asm parsing. As the result, only real MC instructions are emitted to the MCStreamer. The actual expansion to real instructions is similar to the expansion performed by the GAS. Note: The `li.w` always treats the imm operand as a 32-bit signed value. Reviewed By: SixWeining Differential Revision: https://reviews.llvm.org/D138086
-
Mel Chen authored
Reviewed By: david-arm Differential Revision: https://reviews.llvm.org/D137940
-
Kazu Hirata authored
Since std::optional does not offer getPointer(), this patch replaces X.getPointer()->foo with X->foo to make the migration from llvm::Optional to std::optional easier. 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
-
Max Kazantsev authored
-
Andrzej Warzynski authored
Make sure that the number of repetitions is correctly incorporated when calculating the number of floating point operations. Reviewed By: bondhugula Differential Revision: https://reviews.llvm.org/D138382
-
Amy Wang authored
Create the directory and file structures to support transform ops for the affine dialect in the future. Enable affine.unroll and affine.get_parent_for transform operations in this first batch of check in. Reviewed By: ftynse Differential Revision: https://reviews.llvm.org/D137997
-
wanglei authored
This patch makes `IAS` compatible with `GAS`. It accepts `la*` pseudo instructions, and expands `la{,.local,.global}` into different instructions according to different features. ``` Default: la = la.global = la.got la.local = la.pcrel With feature "+la-global-with-pcrel": la = la.global = la.pcrel With feature "+la-global-with-abs": la = la.global = la.abs With feature "+la-local-with-abs": la.local = la.abs With features "+la-global-with-pcrel,+la-global-with-abs"(disorder): la = la.global = la.pcrel ``` Note: To keep consistent with `GAS` behavior, the "la" can only have one register operand. Reviewed By: SixWeining Differential Revision: https://reviews.llvm.org/D138021 -
Max Kazantsev authored
-
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
-
Paul Scoropan authored
Continuation of https://reviews.llvm.org/D132146 (direct assembly path support, needs to merge first). Adds support to the integrated assembler path for emitting XCOFF exception sections. Both features need https://reviews.llvm.org/D133030 to merge first Reviewed By: shchenz, DiggerLin Differential Revision: https://reviews.llvm.org/D134195
-
Fangrui Song authored
-
Christopher Di Bella authored
This reverts commit 196edb9f.
-
Christopher Di Bella authored
This reverts commit eb3f7880.
-
Fangrui Song authored
[ELF] Add InputSectionBase::{addRelocs,relocs} and GotSection::addConstant to add/access relocations to prepare for changing `relocations` from a SmallVector to a pointer. Also change the `isec` parameter in `addAddendOnlyRelocIfNonPreemptible` to `GotSection &`. -
Mehdi Amini authored
-
Mehdi Amini authored
-
Christopher Di Bella authored
The [Improving Clang's Diagnostics RFC][1] identifies eight broad fields for Clang to surface, two of which are text-based. Since the current diagnostics more closely map to the diagnostic summary (or headline), we should rename them to ensure that there's no confusion when Diagnostic.Reason is introduced in the near future. [1]: https://discourse.llvm.org/t/rfc-improving-clang-s-diagnostics/62584 Reviewed By: aaron.ballman, erichkeane Differential Revision: https://reviews.llvm.org/D135820
-
gonglingqin authored
-
Zi Xuan Wu (Zeson) authored
When there is not GRS or MOVIH/ORI instruction, we can not get the address of ConstantPool entry directly. So we need put the address into ConstantPool to leverage CSKY::LRW instruction.
-