- Aug 26, 2022
-
-
Roy Jacobson authored
This patch implements P0848 in Clang. During the instantiation of a C++ class, in `Sema::ActOnFields`, we evaluate constraints for all the SMFs and compare the constraints to compute the eligibility. We defer the computation of the type's [copy-]trivial bits from addedMember to the eligibility computation, like we did for destructors in D126194. `canPassInRegisters` is modified as well to better respect the ineligibility of functions. Note: Because of the non-implementation of DR1734 and DR1496, I treat deleted member functions as 'eligible' for the purpose of [copy-]triviallity. This is unfortunate, but I couldn't think of a way to make this make sense otherwise. Reviewed By: #clang-language-wg, cor3ntin, aaron.ballman Differential Revision: https://reviews.llvm.org/D128619
-
Greg Clayton authored
When fission is enabled, we were indexing the skeleton CU _and_ the .dwo CU. Issues arise when users enable compiler options that add extra data to the skeleton CU (like -fsplit-dwarf-inlining) and there can end up being types in the skeleton CU due to template parameters. We never want to index this information since the .dwo file has the real definition, and we really don't want function prototypes from this info since all parameters are removed. The index doesn't work correctly if it does index the skeleton CU as the DIE offset will assume it is from the .dwo file, so even if we do index the skeleton CU, the index entries will try and grab information from the .dwo file using the wrong DIE offset which can cause errors to be displayed or even worse, if the DIE offsets is valid in the .dwo CU, the wrong DIE will be used. We also fix DWO ID detection to use llvm::Optional<uint64_t> to make sure we can load a .dwo file with a DWO ID of zero. Differential Revision: https://reviews.llvm.org/D131437
-
Louis Dionne authored
This patch adds support for passing basic Lit features to the ADDITIONAL_COMPILE_FLAGS keyword by enclosing them in parentheses. This is done to support https://llvm.org/D131836. In the future, we should instead add proper support for conditional keywords in Lit, so that we can evaluate arbitrary Lit boolean expressions such as `ADDITIONAL_COMPILE_FLAGS(x && !y): -flag`. Note that I can see this being exceptionally useful when combined with RUN commands, which would allow using different commands on different systems. For example: RUN(!buildhost=windows): something RUN(buildhost=windows): something-else Differential Revision: https://reviews.llvm.org/D132575
-
Peter Klausler authored
The result of MINVAL over an empty default character array should (per the standard) have a 127 in every character position, not just the first. Differential Revision: https://reviews.llvm.org/D132677
-
Philip Reames authored
When we have a dependency with a dependence distance which can only be hit on an iteration beyond the actual trip count of the loop, we can ignore that dependency when analyzing said loop. We already had this code, but had restricted it solely to unknown dependence distances. This change applies it to all dependence distances. Without this code, we relied on the vectorizer reducing VF such that our infeasible dependence was respected. This usually worked out to about the same result, but not always. For fixed length vectorization, this could mean a smaller VF than optimal being chosen or additional runtime checks. For scalable vectorization - where the bounds on access implied by VF are broader - we could often not find a feasible VF at all. Differential Revision: https://reviews.llvm.org/D131924
-
Adhemerval Zanella authored
Similar to D107861. Some tools required the GNU ABI mark to output the symbol is a IFUNC type correctly (for instance binutils readelf). Reviewed By: MaskRay Differential Revision: https://reviews.llvm.org/D131162
-
Jeff Niu authored
`oneToOneRewrite` segfaulted for zero result-ops because a null type was being passed to the op builders. Reviewed By: rriddle Differential Revision: https://reviews.llvm.org/D132702
-
Jakub Kuderski authored
This is so that future conversions do not have to figure out how to create matching boolean types for the second result. Reviewed By: Mogball Differential Revision: https://reviews.llvm.org/D132630
-
Jakub Kuderski authored
This is so that we do not have to spell out long structure types every time we create these ops. Reviewed By: antiagainst Differential Revision: https://reviews.llvm.org/D132629
-
Sanjay Patel authored
This is a long-standing FIXME with a non-FMF test that exposes the bug as shown in issue #57357. It's possible that there's still a way to miscompile by mis-identifying/mis-folding FP min/max patterns, but this patch only exposes a couple of seemingly minor regressions while preventing the broken transform.
-
Rajas Vanjape authored
Removing the TODO related to asserting that original `pm` is for ModuleOp. The TODO is removed for following reasons: 1. There is no easy way to do this. We currently don't have this information stored in OpPassManager object. 2. There are currently no consumers of this information and storing this information with OpPassManager for a simple assert will be an overkill. Reviewed By: aartbik Differential Revision: https://reviews.llvm.org/D132699
-
Nikolas Klauser authored
-
Florian Hahn authored
Preparation for follow-up patches will introduce additional uses of SE.
-
Akira Hatanaka authored
security-related compiler flags The changes broke Fuchsia builders.
-
Nikolas Klauser authored
We don't use `clang::warn_unused_result` anymore, so let's remove the mentions of it from the tests Reviewed By: Mordante, #libc Spies: libcxx-commits Differential Revision: https://reviews.llvm.org/D132339
-
Nikolas Klauser authored
Reviewed By: ldionne, #libc Spies: libcxx-commits Differential Revision: https://reviews.llvm.org/D129054
-
Florian Hahn authored
Also converts the test to use opaque pointers while I am here.
-
Akira Hatanaka authored
them to the compiler command line This is another attempt to fix the broken window bot.
-
Craig Topper authored
Saves a heap allocation and avoids an explicit call to the BitVector constructor. Reviewed By: reames, myhsu Differential Revision: https://reviews.llvm.org/D132674
-
Sanjay Patel authored
issue #57357
-
Daniil Dudkin authored
This pass allows to convert operations which use functions with abstract results to ones that do not. Depends on D130087 Reviewed By: jeanPerier Differential Revision: https://reviews.llvm.org/D130088
-
Nikolas Klauser authored
Reviewed By: Mordante, #libc Spies: aheejin, libcxx-commits, smeenai Differential Revision: https://reviews.llvm.org/D124714
-
Siva Chandra Reddy authored
Reviewed By: michaelrj Differential Revision: https://reviews.llvm.org/D132619
-
Akira Hatanaka authored
adding it to the compiler command line This is an attempt to fix the window bot broken by e1dcd4ba
-
Mahesh Ravishankar authored
Previous change (a7bfdc23) added support for fusion of `linalg.generic` op with `tensor.expand_shape` op when the former had multiple results. Fix a bug related to this that resulted in a segfault. Reviewed By: hanchung Differential Revision: https://reviews.llvm.org/D132631
-
Craig Topper authored
SimplifyDemandedBits tries to agressively turn xor immediates into -1 to match a 'not' instruction. In this case, because X is a boolean, the upper bits of (xor X, 1) are known to be 0. Because this is an AND instruction, that means those bits aren't demanded from the other operand, and thus SimplifyDemandedBits can turn (xor Y, 1) to (not Y). We need to detect that this has happened to enable the DeMorgan optimization. To do this we allow one of the xors to use -1 when the outer operation is And. Reviewed By: reames Differential Revision: https://reviews.llvm.org/D132671
-
Markus Böck authored
If the LLVM build used was compiled with `LLVM_ENABLE_ABI_BREAKING_CHECKS` but the header was included with `NDEBUG` defined, a compilation error would occur as there is a pack expansion operator (`...`), but no variadic arguments existed. This was due to the assert being preprocessed to an empty expression. This commit moves the pack expansion within the `assert` to also be removed with the `assert`.
-
Nicolai Hähnle authored
This reverts commit 51d82502. There is a regression in the flang-aarch64-dylib buildbot which is most likely caused by this change. Reverting until I can investigate.
-
Maryam Moghadas authored
This reverts commit f7294ac8.
-
Nicolai Hähnle authored
It was observed in D129117 that the subtle dependency between statistic and timer code is not entirely robust: the global destructor ~StatisticInfo indirectly calls CreateInfoOutputFile, which requires the LibSupportInfoOutputFilename to not have been destructed. By constructing LibSupportInfoOutputFilename before the StatisticInfo object, the order of destruction is guaranteed. Differential Revision: https://reviews.llvm.org/D131059
-
Nicolai Hähnle authored
Follow the pattern used in MLIR for the cl::opt instances. v2: - make DebugCounter::isCountingEnabled public so that the DebugCounterOwner doesn't have to be a nested class. This simplifies later changes Differential Revision: https://reviews.llvm.org/D129116
-
Markus Böck authored
When using multiple variadic results of differing sizes, using `AttrSizedResultSegments` is currently a requirement. Unlike `AttrSizedOperandSegments` however, it is not created within the default builders created by tablegen. Instead, one has to explicitly add `DenseI32ArrayAttr:$result_segments_sizes` as argument and then also explicitly specify all the sizes when using the builder from C++. This patch fixes that redundancy, by making the builder generate the attribute in similar fashion as it already does for `AttrSizedOperandSegments`. The sizes required are simply gathered from the result type arguments of the builder. Differential Revision: https://reviews.llvm.org/D132656
-
Stephen Long authored
Previously, we were generating zeroes when generating code alignments for AArch64, but now we should omit the value and let the assembler choose to generate nops or zeroes. Reviewed By: efriedma, MaskRay Differential Revision: https://reviews.llvm.org/D132508
-
Peiming Liu authored
The operations to fill zero into newly allocated sparse tensor are redundant, plus it failed to lowering the test cases provided in the patch as well. Reviewed By: aartbik Differential Revision: https://reviews.llvm.org/D132500
-
Philip Reames authored
All of these are lowered to a single instruction for all legal vector types.
-
Chris Bieneman authored
Semantic parameters aren't passed as actual parameters, instead they are populated from intrinsics which are generally lowered to reads from dedicated hardware registers. This change modifies clang CodeGen to emit the intrinsic calls and populate the parameter's LValue with the result of the intrinsic call for SV_GroupIndex. The result of this is to make the actual passed argument ignored, which will make it easy to clean up later in an IR pass. Reviewed By: aaron.ballman Differential Revision: https://reviews.llvm.org/D131203
-
Gabriel Ravier authored
I went over the output of the following mess of a command: `(ulimit -m 2000000; ulimit -v 2000000; git ls-files -z | parallel --xargs -0 cat | aspell list --mode=none --ignore-case | grep -E '^[A-Za-z][a-z]*$' | sort | uniq -c | sort -n | grep -vE '.{25}' | aspell pipe -W3 | grep : | cut -d' ' -f2 | less)` and proceeded to spend a few days looking at it to find probable typos and fixed a few hundred of them in all of the llvm project (note, the ones I found are not anywhere near all of them, but it seems like a good start). Reviewed By: awarzynski, clementval Differential Revision: https://reviews.llvm.org/D130844 -
Philip Reames authored
The fact that we silently accept unrecognized intrinsic names is sometimes a bit annoying.
-
- Aug 25, 2022
-
-
Philip Reames authored
-
Craig Topper authored
This optimizes xors that appear due to legalizing setge/setle which require an xor with 1. This reduces the number of xors and may allow the xor to fold with a beqz or bnez. Differential Revision: https://reviews.llvm.org/D132614
-