- Feb 07, 2023
-
-
Mark de Wever authored
The constexpr validation parsed parts of the format string that didn't belong to the specific replacement field. Fixes https://llvm.org/PR60536 Reviewed By: #libc, ldionne Differential Revision: https://reviews.llvm.org/D143402
-
Jean Perier authored
Captured variables inside internal procedure do not go though Fortran::lower::instantiateVar because the specification expressions should no be lowered again, and instead, all the information must be taken from the host link argument. There is nothing very special to do for HLFIR, but the hlfir.declare should be emitted for the instantiated captured variable and mapped to the symbol. Differential Revision: https://reviews.llvm.org/D143481
-
Jean Perier authored
Lower extents and lower bounds inquiries with a compile time constant DIM that cannot be folded by the front-end. Differential Revision: https://reviews.llvm.org/D143476
-
David Green authored
We have a pass for MVE to perform lane interleaving to make use of top/bottom instructions, that adds shuffles before extends and after truncates. This extends it to also start from add reductions, where the order of lanes does not matter so the shuffle is not needed. We need to be careful about not breaking the form of existing reductions, but otherwise can save some instructions and awkward extends. Differential Revision: https://reviews.llvm.org/D143396
-
Guillaume Chatelet authored
-
Haojian Wu authored
We encounter a few internal reports that we're dereference a nullptr. Unfortunately, no small reproduce testcase for this crash yet, but it makes the clangd more robost on broken code. Differential Revision: https://reviews.llvm.org/D143486
-
Viktoriia Bakalova authored
Merge the zoombie names into the StdSymbols as well. Differential Revision: https://reviews.llvm.org/D143054
-
Ingo Müller authored
The overload of WhileOp::build with arguments for builder functions for the regions of the op was broken: It did not compute correctly the types (and locations) of the region arguments, which lead to failed assertions when the result types were different from the operand types. Specifically, it used the result types (and operand locations) for *both* regions, instead of the operand types (and locations) for the 'before' region and the result types (and loecations) for the 'after' region. Reviewed By: Mogball, mehdi_amini Differential Revision: https://reviews.llvm.org/D142952
-
Haojian Wu authored
Reviewed By: kadircet Differential Revision: https://reviews.llvm.org/D143280
-
Haojian Wu authored
Unittest will be added in https://reviews.llvm.org/D143280 Patch by Viktoriia Bakalova. Differential Revision: https://reviews.llvm.org/D142092
-
Guillaume Chatelet authored
-
Guillaume Chatelet authored
-
Guillaume Chatelet authored
-
Archibald Elliott authored
I also ran `git clang-format` to get the headers in the right order for the new location, which has changed the order of other headers in two files.
-
Jeremy Morse authored
As discussed on D140404, calling GetValueInMiddleOfBlock can force PHI nodes to be created, but the patch was only supposed to fetch a Value if it wasn't going to generate any PHIs. Fix this by using GetValueAtEndOfBlock instead of the Middle variant, which was the original intention given the check of HasValueForBlock. We don't need to consider the "middle of block" scenario as we're only dealing with blocks where there are no value definitions.
-
Jay Foad authored
Differential Revision: https://reviews.llvm.org/D143252
-
Jay Foad authored
This is a helper function to very slightly simplify many calls to MachineInstruction::getOperandNo. Differential Revision: https://reviews.llvm.org/D143250
-
Ivan Kosarev authored
Reviewed By: foad Differential Revision: https://reviews.llvm.org/D142193
-
Sander de Smalen authored
This is specifically relevant for loops that vectorize using a scalable VF, where the code results in: %vscale = call i32 llvm.vscale.i32() %vf.part1 = mul i32 %vscale, 4 %gep = getelementptr ..., i32 %vf.part1 Which InstCombine then changes into: %vscale = call i32 llvm.vscale.i32() %vf.part1 = mul i32 %vscale, 4 %vf.part1.zext = sext i32 %vf.part1 to i64 %gep = getelementptr ..., i32 %vf.part1.zext D143016 tried to remove these extends, but that only works when the call to llvm.vscale.i32() has a single use. After doing any kind of CSE on these calls the combine no longer kicks in. It seems more sensible to ask DataLayout what type to use, rather than relying on InstCombine to insert the extend and hoping it can fold it away. I've only changed this for indices that are not constant, because I vaguely remember there was a reason for sticking with i32. It would also mean patching up loads more tests. Reviewed By: paulwalker-arm Differential Revision: https://reviews.llvm.org/D143267
-
Sockke authored
https://godbolt.org/z/n4cK4fo3o The checker missed a check for invalid vardecl and this could cause a false positive. Reviewed By: carlosgalvezp Differential Revision: https://reviews.llvm.org/D138655
-
Kerry McLaughlin authored
Adds x2 and x4 vector intrinsics for the following instructions: - frinta - frintm - frintn - frintp NOTE: These intrinsics are still in development and are subject to future changes. Reviewed By: david-arm Differential Revision: https://reviews.llvm.org/D143058
-
David Green authored
-
Guillaume Chatelet authored
-
Guillaume Chatelet authored
-
Kerry McLaughlin authored
Adds IR intrinsics for the following SME2 instructions: - fmaxnm/fminnm (single, 2 & 4 vector) - fmaxnm/fminnm (multi, 2 & 4 vector) NOTE: These intrinsics are still in development and are subject to future changes. Reviewed By: david-arm Differential Revision: https://reviews.llvm.org/D142732
-
Archibald Elliott authored
-
Archibald Elliott authored
-
Archibald Elliott authored
-
Archibald Elliott authored
-
Archibald Elliott authored
-
Archibald Elliott authored
-
Archibald Elliott authored
-
Samuel Parker authored
Currently, in TargetLowering, if the target does not support fminnum, we lower to fminimum if neither operand could be a NaN. But this isn't quite correct because fminnum and fminimum treat +/-0 differently; so, we need to prove that one of the operands isn't a zero, or we don't have signed zeros. Differential Revision: https://reviews.llvm.org/D143256
-
Samuel Parker authored
ARM and WebAssembly tests.
-
David Green authored
This looks for vaddv(shuffle) or vmlav(shuffle, shuffle), with a shuffle where all the lanes are used once. Due to the reduction being commutative the shuffle can be removed. Differential Revision: https://reviews.llvm.org/D143382
-
Guillaume Chatelet authored
-
Maya Amrami authored
This change is needed in order to set the flag when running the pass not via the command line. It also allows simplifying the signature of some functions. Reviewed By: springerm Differential Revision: https://reviews.llvm.org/D143416
-
Samuel Parker authored
This reverts commit bbdf2435.
-
Guillaume Chatelet authored
-
Tom Eccles authored
The implementation of -fstack-arrays was added in https://reviews.llvm.org/D140415 The new macro BoolOptionWithoutMarshalling in Options.td avoids generating code to store the flags in clang data structures. For example, writing something like defm stack_arrays : BoolOption<"f", "stack-arrays", CodeGenOpts<"StackArrays">, [...] Would generate code referring to `clang::CodeGenOpts::StackArrays`, which does not exist. Differential Revision: https://reviews.llvm.org/D140972
-