- Jan 23, 2023
-
-
Simon Pilgrim authored
-
Simon Pilgrim authored
[DAG] visitINSERT_VECTOR_ELT - use mergeEltWithShuffle to merge inserted vector element chain into base shuffle node This allows us to merge insert_elt(insert_elt(shuffle(x,y),extract_elt(x,c1),c2),extract_elt(y,c3),c4) style insertion chains into a new shuffle node. I had hoped to remove mergeInsertEltWithShuffle entirely, but that case doesn't have the one use limits so we would regress in a few other cases. Fixes the vector-shuffle-combining.ll regressions in D127115
-
Shivam Gupta authored
found by PVS-Studio.
-
- Jan 22, 2023
-
-
Roman Lebedev authored
-
Shivam Gupta authored
-
Mark de Wever authored
This part should be guarded, but there are no proper guards yet. Therefore disable the offending part. This was reported post commit in D140653.
-
Sanjay Patel authored
https://alive2.llvm.org/ce/z/oT_tEh This is the conjugate/sibling pattern suggested in post-commit feedback for: 9444252a issue #60167
-
Sanjay Patel authored
-
Mark de Wever authored
-
Simon Pilgrim authored
We try to use X32 for tests on gnux32 triples
-
Markus Böck authored
[mlir][ods] Simplify signature of `custom` printers and parsers of Attributes and Types in presence of default constructible parameters The vast majority of parameters of C++ types used as parameters for Attributes and Types are likely to be default constructible. Nevertheless, TableGen conservatively generates code for the custom directive, expecting signatures using FailureOr<T> for all parameter types T to accomodate them possibly not being default constructible. This however reduces the ergonomics of the likely case of default constructible parameters. This patch fixes that issue, while barely changing the generated TableGen code, by using a helper function that is used to pass any parameters into custom parser methods. If the type is default constructible, as deemed by the C++ compiler, a default constructible instance is created and passed into the parser method by reference. In all other cases it is a Noop and a FailureOr is passed as before. Documentation was also updated to document the new behaviour. Fixes https://github.com/llvm/llvm-project/issues/60178 Differential Revision: https://reviews.llvm.org/D142301
-
Simon Pilgrim authored
We try to use X32 for tests on gnux32 triples
-
Simon Pilgrim authored
We try to use X32 for tests on gnux32 triples
-
Roman Lebedev authored
Currently, for all invocations, it's equivalent, since that is literally how `SCEVMinMaxExpr::getType()` is defined. But for e.g. `select`, we'll want to ask about the hand type, and not the type of the operand that happens to be first.
-
Roman Lebedev authored
-
Roman Lebedev authored
-
Roman Lebedev authored
-
Roman Lebedev authored
-
Roman Lebedev authored
Casts and udiv get the exactly the same handling as n-ary, there is no point in special-handling anything.
-
Matt Arsenault authored
This is essentially a modernized copy of select-fabs-fneg-extract.ll. Stop using kernels with loads and stores, don't use fsub for fneg, and port the examples to half.
-
Matt Arsenault authored
-
Simon Pilgrim authored
This will allow us to reuse the code to merge an extracted scalar into an updated shuffle in a future patch. Another step towards fixing some shuffle regressions in D127115.
-
Roman Lebedev authored
-
Roman Lebedev authored
-
Shivam Gupta authored
-
Paul Walker authored
The intent is to lower the clang X form SVE builtins to these intrinsics. The suffix _x is already in use to signify unpredicated SVE intrinsics hence my choice to use _u to signify those intrinsics where the result for inactive lanes is undefined. Differential Revision: https://reviews.llvm.org/D141937
-
Jay Foad authored
Differential Revision: https://reviews.llvm.org/D141503
-
Owen Pan authored
And reformat ClangFormat.cpp in the directory.
-
Owen Pan authored
To prevent \r\n line endings from getting into the source files. Differential Revision: https://reviews.llvm.org/D141098
-
WANG Xuerui authored
Currently, gcc-13 will generate such assembly when `-mcmodel=medium`, which is ostensibly a dirty hack to allow bigger offsets for extern function calls without having to add more reloc types. This is not the best way to accomplish the original goal, but such usages will appear soon and we have to support it anyway. Example: ```c extern int foo(int); int bar(int x) { return foo(x + 123); } ``` will produce the following (simplified) assembly when compiled with `-O2 -mcmodel=medium`: ``` .globl bar .type bar, @function bar: .cfi_startproc addi.w $r4,$r4,123 pcalau12i $r12,%pc_hi20(foo) jirl $r0,$r12,%pc_lo12(foo) .cfi_endproc ``` Reviewed By: SixWeining, wangleiat, MaskRay, xry111 Differential Revision: https://reviews.llvm.org/D142278 -
Iain Sandoe authored
We have been incorrectly disallowing imports of named modules in the global and private module fragments. This addresses: https://github.com/llvm/llvm-project/issues/59688 Differential Revision: https://reviews.llvm.org/D140927
-
Benjamin Kramer authored
-
Johannes Doerfert authored
-
Johannes Doerfert authored
A `ConstantExpr` ICmp is pretty much the same thing as an ICmpInst when we want to simplify it. We just need to be less restrictive wrt. the type and use the static helper functions directly. Fixes: https://github.com/llvm/llvm-project/issues/59767
-
Timm Bäder authored
-
Timm Bäder authored
We don't need the full header file here.
-
Timm Bäder authored
-
Noah Goldstein authored
This makes folding to 0/1 later on easier and regardless `icmp ne` is 'probably' faster on most targets (especially for vectors). Reviewed By: nikic Differential Revision: https://reviews.llvm.org/D142253
-
Noah Goldstein authored
Reviewed By: nikic Differential Revision: https://reviews.llvm.org/D142252
-
Nikolas Klauser authored
This makes it easier to specialize traits classes, like __segmented_iterator_traits. Reviewed By: var-const, #libc Spies: libcxx-commits Differential Revision: https://reviews.llvm.org/D142276
-