- Apr 27, 2022
-
-
Yi Zhang authored
This change borrows the ideas from `computeExpanded/CollapsedLayoutMap` and computes the dynamic strides at runtime for the memref descriptors. Differential Revision: https://reviews.llvm.org/D124001
-
Peter Klausler authored
A recent change assumed that the native C++ "long double" maps to a Fortran data type; but this turns out to not be true for ppc64le, which uses "double-double" for "long double". This is a quick patch to get the ppc64le flang build bot back up. A better fix that either uses HostTypeExists<> or replaces "long double" with "ieee128_t" (or some other solution) is expected to follow soon. Differential Revision: https://reviews.llvm.org/D124423
-
Tanya Lattner authored
-
- Apr 26, 2022
-
-
Shao-Ce SUN authored
Based on D123467. Reviewed By: reames Differential Revision: https://reviews.llvm.org/D123653
-
Mark de Wever authored
The tests are adapted to the output produced on Linux. Reviewed By: #libc, philnik, ldionne Differential Revision: https://reviews.llvm.org/D124331
-
Nikita Popov authored
-
Jay Foad authored
-
Chris Bieneman authored
This removes an unused local variable that was causing a warning to be emitted.
-
Jonas Paulsson authored
A struct like { float a; int :0; } should per the SystemZ ABI be passed in a GPR, but to match a bug in GCC it has been passed in an FPR (see 759449c7). GCC has now corrected the C++ ABI for this case, and this patch for clang follows suit. Reviewed By: Ulrich Weigand Differential Revision: https://reviews.llvm.org/D122388 -
Nikita Popov authored
Test cases with element type mismatch, some of which can still be combined.
-
Chris Bieneman authored
Switch statements that cover all cases should not have a `default` case. When a switch covers all cases and includes a `default` case, clang emits a diagnostic. Omitting the `default` case allows the compiler to instead emit a diagnostic on unhandled enum values. This change removes default cases from all the places that they shouldn't be, and adds a missing enum case for one switch statement that wasn't covering all values.
-
Chris Bieneman authored
Clang issues a warning on class/struct mismatch because the MSVC ABI varries for classes and structs.
-
Joseph Huber authored
Summary: A previous patch updated the path searching in the linker wrapper. I made an error and caused `lld`, which is necessary to link AMDGPU images, to not be found on some systems. This patch fixes this by correctly searching that linker-wrapper's binary path first again.
-
Jeremy Morse authored
This was reverted twice, in 987cd7c3 and 13815e8c. The latter stemed from not accounting for rare register classes in a pre-allocated array, and the former from an array not being completely initialized, leading to asan complaining.
-
Igor Kudrin authored
This reorganizes the code as a preparation for D123865: * Use more descriptive names for variables * Simplify a condition by use an already calculated value for `MaxPeelCount` * Remove a duplicate log entry * Report basic values for loop costs Differential Revision: https://reviews.llvm.org/D124388
-
Igor Kudrin authored
Differential Revision: https://reviews.llvm.org/D123864
-
Yaxun (Sam) Liu authored
Fix the misleading diag msg as the option is ignored for a particular offload arch only. Reviewed by: Artem Belevich Differential Revision: https://reviews.llvm.org/D124396
-
Igor Chebykin authored
Some tests failed for NVPTX target, but it seems that NVPTX will be fixed and the tests will pass. So, just mark the tests as XFAIL Differential Revision: https://reviews.llvm.org/D124125
-
Igor Chebykin authored
Some generic tests are not supported by the nvptx now. Moreover, they are no plans to fix the tested features in nvptx. So, suggest to mark them as UNSUPPORTED Differential Revision: https://reviews.llvm.org/D123928
-
Krystian Kuzniarek authored
Introduced by 23a5090c, this style option marker indicated 'clang-format 9', though its respective option was available in an earlier release. Differential Revision: https://reviews.llvm.org/D123299
-
Paul Robinson authored
Commit 5c90ecae added some analyzer option checking, but a typo meant it was redundantly checking PS4 and not adding checking for PS5. With the test corrected, it identified the necessary driver updates, added in this commit.
-
Ilya Biryukov authored
Add support for concepts and requires expression in the clang index. Genarate USRs for concepts. Also change how `RecursiveASTVisitor` handles return type requirement in requires expressions. The new code unpacks the synthetic template parameter list used for storing the actual expression. This simplifies implementation of the indexing. No code seems to depend on the original traversal anyway and the synthesized template parameter list is easily accessible from inside the requires expression if needed. Add tests in the clangd codebase. Fixes https://github.com/clangd/clangd/issues/1103. Reviewed By: sammccall Differential Revision: https://reviews.llvm.org/D124441
-
Erich Keane authored
See the discussion on D123319. Default calling convention on Windows32 bit is to have 'this-call' for member functions, so add a wildcard to take care of that. Also, one of the FileCheck 'match' flags was incorrect, so fix that too.
-
Florian Hahn authored
Check if the value of a ConstantInt is small enough to be used for solving before calling getSExtValue. Fixes #55085
-
Liqiang Tao authored
Since the size of most of SCC's is 1, the PriorityInlineOrder would not change the inline order in SCC inliner. Reviewed By: kazu Differential Revision: https://reviews.llvm.org/D123608
-
Alex Zinenko authored
Classes derived from TransformState::Extension may need access to the parent state.
-
Florian Hahn authored
At the moment, unfeasible default destinations are not handled properly in removeNonFeasibleEdges. So far, only unfeasible cases are removed, but later code expects unreachable blocks to have no predecessors. This is causing the crash reported in PR49573. If the default destination is unfeasible it won't be executed. Create a new unreachable block on demand and use that as default destination. Note that at the moment this only is relevant for cases where resolvedUndefsIn marks the first case as executable. Regular switch handling has a FIXME/TODO to support determining whether the default case is feasible or not. Fixes #48917. Differential Revision: https://reviews.llvm.org/D113497
-
Nathan Sidwell authored
Every non-testcase use of OutputBuffer contains code to allocate an initial buffer (using either 128 or 1024 as initial guesses). There's now no need to do that, given recent changes to the buffer extension heuristics -- it allocates a 1k(ish) buffer on first need. Just pass in a buffer (if any) to the constructor. Thus the OutputBuffer's ownership of the buffer starts at its own lifetime start. We can reduce the lifetime of this object in several cases. That new constructor takes a 'size_t *' for the size argument, as all uses with a non-null buffer are passing through a malloc'd buffer from their own caller in this manner. The buffer reset member function is never used, and is deleted. The original buffer initialization code would return a failure code if that first malloc failed. Existing code either ignored that, called std::terminate with a FIXME, or returned an error code. But that's not foolproof anyway, as a subsequent buffer extension failure ends up calling std::terminate. I am working on addressing that unfortunate failure mode in a manner more consistent with the C++ ABI design. Reviewed By: dblaikie Differential Revision: https://reviews.llvm.org/D122604
-
Alex Zinenko authored
-
Alexey Lapshin authored
-
Martin Storsjö authored
Apply this in add_compiler_rt_runtime instead of manually adding it to the individual projects. This applies the option on more parts of compiler-rt than before, but should ideally not make any difference assuming the other runtimes that lacked the option also were C11 compatible. Not marking this as required, to match the existing behaviour (where `-std=c11` was added only if supported by the compiler). This was suggested during the review of D110005. Differential Revision: https://reviews.llvm.org/D124343
-
LLVM GN Syncbot authored
-
Dmitry Makogon authored
Don't check whether an input of BDV can be pruned if the input is the BDV itself. BDV is present in the states map, so in case the input is the BDV itself, we'd return false. So explicitly check this case. Differential Revision: https://reviews.llvm.org/D123846
-
Alexey Lapshin authored
llvm-gsymutil has an implementation of AddressRange and AddressRanges classes. That implementation might be reused in other parts of llvm. This patch moves AddressRange and AddressRanges classes into llvm/ADT. Differential Revision: https://reviews.llvm.org/D124350
-
Haojian Wu authored
-
Jun Zhang authored
BitstreamCursors are heavy-weight objects that should not be passed by value. Differential Revision: https://reviews.llvm.org/D123436
-
Xiang1 Zhang authored
Reviewed by RKSimon, LuoYuanke Differential Revision: https://reviews.llvm.org/D123652
-
Haojian Wu authored
Differential Revision: https://reviews.llvm.org/D124384
-
Christudasan Devadasan authored
The vector register spills have no dependency with SILowerSGPRSpills pass anymore. The entire handling has been moved to PrologEpilogInserter with D55301.
-
Siva Chandra authored
-