- Apr 07, 2021
-
-
Christopher Di Bella authored
LWG3175 identifies that the `common_reference` requirement for `swappable_with` is over-constraining and doesn't need to concern itself with cv- or reference qualifiers. Differential Revision: https://reviews.llvm.org/D99817
-
Petr Hosek authored
This reverts commit 31d219d2 which causes an infinite loop when compiling the XRay runtime.
-
Jacques Pienaar authored
When both arguments are the same for these ops, propagate this argument.
-
Jonas Devlieghere authored
Stop emulating dsymutil-classic which only cached the last used CIE for reuse.
-
Jonas Devlieghere authored
Don't keep the old abbreviations around. This code existed for compatibility with dsymutil-classic.
-
Jonas Devlieghere authored
Consider the .debug_pubnames and .debug_pubtypes their own kind of accelerator and stop emitting them together with the Apple-style accelerator tables. The only reason we were still emitting both was for (byte-for-byte) compatibility with dsymutil-classic. - This patch adds a new accelerator table kind "Pub" which can be specified with --accelerator=Pub. - This patch removes the ability to emit both pubnames/types and apple style accelerator tables. I don't think anyone is relying on that but it's worth pointing out. - This patch removes the --minimize option and makes this behavior the default. Specifying the flag will result in a warning but won't abort the program. Differential revision: https://reviews.llvm.org/D99907
-
Alex Orlov authored
-
Yevgeny Rouban authored
-
Weverything authored
-
Jacques Pienaar authored
These are element-wise operations that operates on shapes with equal ranks. Also add missing printer/parser for join operator. Differential Revision: https://reviews.llvm.org/D99986
-
Yaxun (Sam) Liu authored
Changed the order of checking of v2 and v3. Change-Id: Ifea8197b398afdfb0aa1bd40140cda30f00f0c17
-
Yaxun (Sam) Liu authored
Change to code object v4 by default to match ROCm 4.1. Reviewed by: Artem Belevich Differential Revision: https://reviews.llvm.org/D99235
-
Craig Topper authored
[RISCV] Add an assertion to the ReplaceNodeResults handling of bitcasts to make sure the VT is always a scalar integer.
-
Nicolás Alvarez authored
Looking at the Doxygen-generated documentation for the llvm namespace currently shows all sorts of random comments from different parts of the codebase. These are mostly caused by: - File doc comments that aren't marked with \file, so they're attached to the next declaration, which is usually "namespace llvm {". - Class doc comments placed before the namespace rather than before the class. - Code comments before the namespace that (in my opinion) shouldn't be extracted by doxygen at all. This commit fixes these comments. The generated doxygen documentation now has proper docs for several classes and files, and the docs for the llvm and llvm::detail namespaces are now empty. Reviewed By: thakis, mizvekov Differential Revision: https://reviews.llvm.org/D96736 -
Peter Steinfeld authored
We were not folding type parameter inquiries for the form 'var%typeParam' where 'typeParam' was a KIND or LEN type parameter of a derived type and 'var' was a designator of the derived type. I fixed this by adding code to the function 'FoldOperation()' for 'TypeParamInquiry's to handle this case. I also cleaned up the code for the case where there is no designator. In order to make the error messages correctly refer to both the points of declaration and instantiation, I needed to add an argument to the function 'InstantiateIntrinsicType()' for the location of the instantiation. I also changed the formatting of 'TypeParamInquiry' to correctly format this case. I also added tests for both KIND and LEN type parameter inquiries in resolve104.f90. Making these changes revealed an error in resolve89.f90 and caused one of the error messages in assign04.f90 to be different. Reviewed By: klausler Differential Revision: https://reviews.llvm.org/D99892
-
Craig Topper authored
[RISCV] Don't custom type legalize fixed vector to scalar integer bitcasts if the fixed vector type isn't legal. We encountered a hang in our internal code base. I'm having trouble creating a test case because the test that hit it was testing some code that is not upstream.
-
Hansang Bae authored
omp_is_initial_device() is marked as a built-in function in the current compiler, and user code guarded by this call may be optimized away, resulting in undesired behavior in some cases. This patch provides a possible fix for such cases by defining the routine as a variant function and removing it from builtin list. Differential Revision: https://reviews.llvm.org/D99447
-
Jez Ng authored
D98837 migrated a bunch of `value`s to uint64_t, but missed these.
-
Craig Topper authored
[MachineValueTypes] Add blank lines between floating point vectors with different element types. NFC
-
John Demme authored
Add the `getCapsule()` and `createFromCapsule()` methods to the PyOperation class. Reviewed By: stellaraccident Differential Revision: https://reviews.llvm.org/D99927
-
Sidharth Baveja authored
Summary: The function SplitCriticalEdge (called by SplitEdge) can return a nullptr in cases where the edge is a critical. SplitEdge uses SplitCriticalEdge assuming it can always split all critical edges, which is an incorrect assumption. The three cases where the function SplitCriticalEdge will return a nullptr is: 1. DestBB is an exception block 2. Options.IgnoreUnreachableDests is set to true and isa(DestBB->getFirstNonPHIOrDbgOrLifetime()) is not equal to a nullptr 3. LoopSimplify form must be preserved (Options.PreserveLoopSimplify is true) and it cannot be maintained for a loop due to indirect branches For each of these situations they are handled in the following way: 1. Modified the function ehAwareSplitEdge originally from llvm/lib/Transforms/Coroutines/CoroFrame.cpp to handle the cases when the DestBB is an exception block. This function is called directly in SplitEdge. SplitEdge does not call SplitCriticalEdge in this case 2. Options.IgnoreUnreachableDests is set to false by default, so this situation does not apply. 3. Return a nullptr in this situation since the SplitCriticalEdge also returned nullptr. Nothing we can do in this case. Reviewed By: asbirlea Differential Revision:https://reviews.llvm.org/D94619
-
Vince Bridgers authored
The default setting for CheckImplicitCasts was changed in https://reviews.llvm.org/D32164 but the documentation was not updated. This simple change just syncs the documentation with the behavior of that checker. Reviewed By: aaron.ballman Differential Revision: https://reviews.llvm.org/D99991
-
Rob Suderman authored
Table op lowering to linalg.generic for both i8 (behaves like a gather) and a pair of gathers with a quantized interpolation. Differential Revision: https://reviews.llvm.org/D99756
-
Aaron Puchert authored
We already did so for scoped locks acquired in the constructor, this change extends the treatment to deferred locks and scoped unlocking, so locks acquired outside of the constructor. Obviously this makes things more consistent. Originally I thought this was a bad idea, because obviously it introduces false negatives when it comes to double locking, but these are typically easily found in tests, and the primary goal of the Thread safety analysis is not to find double locks but race conditions. Since the scoped lock will release the mutex anyway when the scope ends, the inconsistent state is just temporary and probably fine. Reviewed By: delesley Differential Revision: https://reviews.llvm.org/D98747
-
Philip Reames authored
There is no IntrinsicInst::Create. These are binding to the method in the super type. Be explicitly about which method is being called.
-
Philip Reames authored
Follow up to a6d2a8d6. These were found by simply grepping for "::assume", and are the subset of that result which looked cleaner to me using the isa/dyn_cast patterns.
-
Louis Dionne authored
The test didn't handle arm64 correctly.
-
Thomas Preud'homme authored
LLVM test CodeGen/AArch64/speculation-hardening.ll tries to check for the absence of a sequence of instructions with several CHECK-NOT with one of those directives using a variable defined in another. However CHECK-NOT are checked independently so that is using a variable defined in a pattern that should not occur in the input. This commit removes the dependency between those CHECK-NOT by replacing single occurence of the undefined variable by a regex match, and multiple occurences by a definition followed by a use. Reviewed By: aemerson Differential Revision: https://reviews.llvm.org/D99866
-
Artem Belevich authored
This allows us to skip the copy in few more cases. Differential Revision: https://reviews.llvm.org/D99979
-
Philip Reames authored
Follow up to a6d2a8d6. This covers all the public interfaces of the bundle related code. I tried to cleanup the internals where the changes were obvious, but there's definitely more room for improvement.
-
Jacques Pienaar authored
Enables performing the same filtering in the op doc definition as in the op definition generator. Differential Revision: https://reviews.llvm.org/D99793
-
Luís Marques authored
This would fail in test environments with < 3 hardware threads. Differential Revision: https://reviews.llvm.org/D99858
-
Luís Marques authored
Fixes the ASan RISC-V memory mapping (originally introduced by D87580 and D87581). This should be an improvement both in terms of first principles soundness and observed test failures --- test failures would occur non-deterministically depending on the ASLR random offset. On RISC-V Linux (64-bit), `TASK_UNMAPPED_BASE` is currently defined as `PAGE_ALIGN(TASK_SIZE / 3)`. The non-power-of-two divisor makes the result be the not very round number 0x1555556000. That address had to be further rounded to ensure page alignment after the shadow scale shifting is applied. Still, that value explains why the mapping table may look less regular than expected. Further cleanups: - Moved the mapping table comment, to ensure that the two Linux/AArch64 tables stayed together; - Removed mention of Sv48. Neither the original mapping nor this one are compatible with an actual Linux Sv48 address space (mainline Linux still operates Sv48 in Sv39 mode). A future patch can improve this; - Removed the additional comments, for consistency. Differential Revision: https://reviews.llvm.org/D97646
-
Yaxun (Sam) Liu authored
Recently atomicrmw started to support fadd/fsub: https://reviews.llvm.org/D53965 However clang atomic builtins fetch add/sub still does not support emitting atomicrmw fadd/fsub. This patch adds that. Reviewed by: John McCall, Artem Belevich, Matt Arsenault, JF Bastien, James Y Knight, Louis Dionne, Olivier Giroux Differential Revision: https://reviews.llvm.org/D71726
-
Felix Berger authored
[clang-tidy] performance-* checks: Match AllowedTypes against qualified type names when they contain "::". This allows users to be more precise and exclude a type in a specific namespace from triggering the check instead of excluding all types with the same unqualified name. This change should not interfere with correctly configured clang-tidy setups since an AllowedType with "::" would never match. Differential Revision: https://reviews.llvm.org/D98738 Reviewed-by: ymandel, hokein
-
Alexandre Ganea authored
Validate that we're properly generating a single line ending on Windows when using -frewrite-includes. Otherwise we're breaking split-line macros. The test fails before 23929af3. See discussion in https://reviews.llvm.org/D96363#2650460 and D99426 Differential Revision: https://reviews.llvm.org/D99973
-
Arthur O'Dwyer authored
As mandated by the Standard's various synopses, e.g. [iterator.synopsis]. Searching the TeX source for '#include' is a good way to find all of these mandates. The new tests are all autogenerated by utils/generate_header_inclusion_tests.py. I was SHOCKED by how many mandates there are, and how many of them libc++ wasn't conforming with. Differential Revision: https://reviews.llvm.org/D99309
-
Arthur O'Dwyer authored
The "user-defined conversion by implicit constructor" codepath is already handled by `B(int)`; we don't need to test `A(const A&)` a second time via `DA` (nor the isomorphic case with `DB`). We don't need `&` anywhere in this test. Generally, `operator()` should be const; this test needn't be special. (No functional change in test coverage.)
-
Christian Sigg authored
Reviewed By: rriddle Differential Revision: https://reviews.llvm.org/D99954
-
Jez Ng authored
I noticed two problems with the previous implementation: * N_ALT_ENTRY symbols weren't being handled correctly -- they should determine the size of the previous symbol, even though they don't cause a new section to be created * The last symbol in a section had its size calculated wrongly; the first subsection's size was used instead of the last one I decided to take the opportunity to refactor things as well, mainly to realize my observation [here](https://reviews.llvm.org/D98837#inline-931511) that we could avoid doing a binary search to match symbols with subsections. I think the resulting code is a bit simpler too. N Min Max Median Avg Stddev x 20 4.31 4.43 4.37 4.3775 0.034162922 + 20 4.32 4.43 4.38 4.3755 0.02799906 No difference proven at 95.0% confidence Reviewed By: #lld-macho, alexshap Differential Revision: https://reviews.llvm.org/D99972
-