- Jan 23, 2023
-
-
Johannes Doerfert authored
-
Johannes Doerfert authored
-
Kazu Hirata authored
-
Kazu Hirata authored
In both of these cases, the arguments to Log2_32_Ceil are known to be nonzero.
-
Kazu Hirata authored
In all these cases, the arguments to Log2_32 are known to be nonzero, so we don't have to worry about "1 << -1".
-
Dimitry Andric authored
Since bfloat16 and float16 support is not available for i386-freebsd, the `truncdfbf2.c` and `truncsfbf2.c` builtin sources should be skipped when targeting that platform, and `COMPILER_RT_HAS_FLOAT16` should not be defined. However, the CMake configuration stage runs its tests with the default target, which normally is amd64-freebsd, so it will detect both bfloat16 and float16 support. Move adding of the `COMPILER_RT_HAS_FLOAT16` define to the `foreach()` loop where all the supported architectures are handled, and do not enable it when targeting i386-freebsd. Also remove the bfloat16 sources from the `i386_SOURCES` list, when targeting i386-freebsd. Differential Revision: https://reviews.llvm.org/D136044
-
Kazu Hirata authored
-
Aaron Puchert authored
In an installation using the all-contained libLLVM.so, individual components are not available as targets, so we have to look them up in LLVM_AVAILABLE_LIBS just like llvm_map_components_to_libnames does it. Here I don't think we need the capitalized names though because we know the right capitalization. But I might be wrong. This is required by dragonffi, who call llvm_map_components_to_libnames on a list containing ${LLVM_NATIVE_ARCH}. Downstream bug report: https://bugzilla.opensuse.org/show_bug.cgi?id=1180748. Differential Revision: https://reviews.llvm.org/D96670 -
Roman Lebedev authored
I'm not really sure the problem can be nicely exposed via a lit test, since we don't give up on range calculation for deeply nested ranges, but if i add an assertion that those opcodes are never encountered, the assertion fails in a number of existing tests. In reality, the iterative approach is still pretty partial: 1. `Seen` should not be there. We want the last instance of expression, not the first one 2. There should be a check that `getRangeRefIter()` does not self-recurse
-
Roman Lebedev authored
And, this shows a bug in the original code: why do we not recurse into casts? If i add an assertion that those opcodes are never encountered, the assertion fails in a number of existing tests.
-
Roman Lebedev authored
`scPtrToInt` recieves same treatment as normal n-ary ops.
-
Roman Lebedev authored
-
Florian Hahn authored
This patch introduces DomTreeNodeTraits for customization. Clients can implement DomTreeNodeTraitsCustom to provide custom ParentPtr, getEntryNode and getParent. There's also a default specialization if DomTreeNodeTraitsCustom is not implemented, that assume a Function-like NodeT. This is what is used for the existing DominatorTree and MachineDominatorTree. The main motivation for this patch is using DominatorTreeBase across all regions of a VPlan, see D140513. Reviewed By: kuhar Differential Revision: https://reviews.llvm.org/D142162
-
Piotr Fusik authored
Reviewed By: #libc, ldionne Differential Revision: https://reviews.llvm.org/D142007
-
Kazu Hirata authored
This patch makes the following replacements: countLeadingZeros -> llvm::countl_zero countTrailingZeros -> llvm::countr_zero countPopulation -> llvm::popcount
-
Simon Pilgrim authored
If the compiler supports __builtin_bit_cast we should try to use it instead of std::memcpy (and avoid including the cstring header). Differential Revision: https://reviews.llvm.org/D142305
-
Kazu Hirata authored
This patch adds C++23-style byteswap to bit.h. The implementation and tests are largely taken from llvm/include/llvm/Support/SwapByteOrder.h and llvm/unittests/Support/SwapByteOrderTest.cpp, respectively. Differential Revision: https://reviews.llvm.org/D142274
-
Sergei Barannikov authored
-
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.
-