- Oct 30, 2021
-
-
Jonas Devlieghere authored
Forward the LLVM_ENABLE_RUNTIMES cmake variable in the cross compilation invocation. Now that passing libcxx must be specified in LLVM_ENABLE_RUNTIMES instead of LLVM_ENABLE_PROJECTS, the LLDB's sanity check for libcxx trips up (in the cross compilation case) because the runtimes are not forwarded. This patch fixes that. Differential revision: https://reviews.llvm.org/D112855
-
Duncan P. N. Exon Smith authored
-
Joe Loser authored
Some types that inherit from `view_interface` do not meet the preconditions. This came up during discussion in https://reviews.llvm.org/D112631. Currently, the behavior is IFNDR, but the preconditions can be easily checked, so let's do so. In particular, we know each public member function calls the `__derived()` private function, so we can do the check there. We intentionally do it as a `static_assert` instead of a `requires` clause to avoid hard erroring in some cases, such as with incomplete types. An example hard error is: ``` llvm-project/build/include/c++/v1/__ranges/view_interface.h:48:14: note: because 'sizeof(_Tp)' would be invalid: invalid application of 'sizeof' to an incomplete type 'MoveOnlyForwardRange' requires { sizeof(_Tp); } && ^ llvm-project/build/include/c++/v1/__ranges/view_interface.h:73:26: error: no matching member function for call to '__derived' return ranges::begin(__derived()) == ranges::end(__derived()); ^~~~~~~~~ llvm-project/libcxx/test/std/ranges/range.utility/view.interface/view.interface.pass.cpp:187:31: note: in instantiation of function template specialization 'std::ranges::view_interface<MoveOnlyForwardRange>::empty<Mov eOnlyForwardRange>' requested here assert(!std::move(moveOnly).empty()); ``` Reviewed By: Quuxplusone, Mordante, #libc Differential Revision: https://reviews.llvm.org/D112665
-
Jonas Devlieghere authored
The xar file format has been deprecated since macOS 12.0, causing a warning to be printed: warning: 'xar_open' is deprecated: first deprecated in macOS 12.0 - xar is a deprecated file format and should not be used. Disable xar support when the macosx deployment target is greater or equal to 12.0. Differential revision: https://reviews.llvm.org/D112849
-
Alexander Batashev authored
GitHub Actions can be used in external forks, and this workflow breaks all pull-requests for those who use both GitHub Pull Requests and GitHub Actions. Reviewed By: tstellar Differential Revision: https://reviews.llvm.org/D112801
-
Joseph Huber authored
Summary: A previous patch changed the check and mistakenly only did `!expr` when this is a macro expansion and could only apply to the left side of an expression.
-
Stanislav Mekhanoshin authored
With Global ISel getReservedRegs() is called before function is regbank selected for the first time. Defer caching of usesAGPRs() in this case. Differential Revision: https://reviews.llvm.org/D112644
-
Valentin Clement authored
This patch adds the base of the FIR to LLVM IR Dialect conversion pass. It currently can convert the following operations: - fir.global - fir.has_value - fir.address_of - fir.undefined This patch is part of the upstreaming effort from fir-dev branch. It does not cover all FIR operations in order to have small patches. Several patches will follow to convert other operations. Reviewed By: schweitz Differential Revision: https://reviews.llvm.org/D112845
-
Florian Hahn authored
This patch adds support to remove stores that write the same value as earlier memesets. It uses isOverwrite to check that a memset completely overwrites a later store. The candidate store must store the same bytewise value as the byte stored by the memset. Reviewed By: nikic Differential Revision: https://reviews.llvm.org/D112321
-
David Blaikie authored
Hopefully these were also fixed bi r343545 / 7fd45139 Differential Revision: https://reviews.llvm.org/D112165
-
Jacques Pienaar authored
In prefixed accessor on OpAdaptor.
-
Zarko Todorovski authored
Replace variable and functions names, as well as comments that contain whitelist with more inclusive terms. Reviewed By: aaron.ballman, martong Differential Revision: https://reviews.llvm.org/D112642
-
Joseph Huber authored
This patch changes the `assert_assume` function used for internal assumptions in the device runtime to use a more standard formatting for the assumption message. Reviewed By: jdoerfert Differential Revision: https://reviews.llvm.org/D112842
-
Nikita Popov authored
Extract a common method for multiplying a linear expression by a factor.
-
Alex Lorenz authored
This change fixes a crash where a NULL fd was used to emit a diagnostic. Instead of crashing, just avoid printing the declaration name when there's no associated function declaration. Differential Revision: https://reviews.llvm.org/D109402
-
Sam Clegg authored
This reverts commit a66451eb. This caused a failure when integrated with emscripten: https://ci.chromium.org/ui/p/emscripten-releases/builders/try/linux/b8832019855439718609/overview
-
Aart Bik authored
Added a type with different pointer/index bit width. Also added some sanity CHECKs on the stored indices. Reviewed By: wrengr Differential Revision: https://reviews.llvm.org/D112778
-
Nikita Popov authored
The scale multiplication is only guaranteed to be nsw if the GEP is inbounds (or the multiplication is trivial). Previously we were only considering explicit muls in GEP indices.
-
Jacques Pienaar authored
Change these missed during/added after the last update.
-
Sam Clegg authored
Previously relocations were only generated for PIC output, but relocations for TLS GOT entries are always needed when shared memory is enabled, not just in PIC mode. This means that the `__wasm_apply_global_tls_relocs` is now generated even for statically linked (non-PIC) output. Without this the globals that hold the addresses of TLS symbols are not set correctly. Differential Revision: https://reviews.llvm.org/D112833
-
Guillaume Chatelet authored
This reverts commit a72e2499.
-
Richard Smith authored
After rGa9db0a80, we correctly determined the end for pointer types like `id` that are spelled without a `*`, but incorrectly determined the end for pointer types spelled with a `*`.
-
Arthur O'Dwyer authored
The original bug doesn't reproduce on Clang, allegedly because of https://bugs.llvm.org/show_bug.cgi?id=44484 We already test STL's exact test case, in "span.cons/deduct.pass.cpp", which I'm touching just for the heck of it. Differential Revision: https://reviews.llvm.org/D111838
-
Arthur O'Dwyer authored
This was done in D108054.
-
Guillaume Chatelet authored
We may want to restrict the detected platforms to only `x86_64` and `aarch64`. There are still custom detection in api.td but I don't think we can handle these: - config/linux/api.td:205 - config/linux/api.td:199 Differential Revision: https://reviews.llvm.org/D112818
-
Nick Desaulniers authored
These compiler-rt-only symbols aren't available in libgcc. Similar to D108842, D108844, and D108926. Fixes: pr/52043 Reviewed By: craig.topper, rengolin Differential Revision: https://reviews.llvm.org/D112750
-
Miguel Raz Guzmán Macedo authored
Simple typo fix. Reviewed By: aeubanks Differential Revision: https://reviews.llvm.org/D112780
-
wren romano authored
Reviewed By: aartbik Differential Revision: https://reviews.llvm.org/D112771
-
Sanjay Patel authored
The tests are based on the example from: https://llvm.org/PR52032 I suspect that it looks worse than it actually is. :) That is, llvm-mca says there's no uop/timing difference with the load folding and pcmpeq vs. broadcast on Haswell (and probably other targets). The load-folding definitely makes the code smaller, so it's good for that at least. So this requires carving a narrow hole in the transform to get just this case without changing others that look good as-is (in other words, the transform still seems good for most examples). Differential Revision: https://reviews.llvm.org/D112464
-
Sanjay Patel authored
The first function is needed for D112464, but we might as well keep these together in case the others can be used someday.
-
Sanjay Patel authored
-
Guillaume Chatelet authored
Differential Revision: https://reviews.llvm.org/D112823
-
Michał Górny authored
Fix regression in processing generic regnums that was introduced in fa456505 ("[lldb] [gdb-remote] Refactor getting remote regs to use local vector"). Since then, the "generic" field was wrongly interpreted as integer rather than string constant. Thanks to Ted Woodward for noticing and providing the correct code.
-
modimo authored
Adds the following switches: 1. --sample-profile-inline-replay-fallback/--cgscc-inline-replay-fallback: controls what the replay advisor does for inline sites that are not present in the replay. Options are: 1. Original: defers to original advisor 2. AlwaysInline: inline all sites not in replay 3. NeverInline: inline no sites not in replay 2. --sample-profile-inline-replay-format/--cgscc-inline-replay-format: controls what format should be generated to match against the replay remarks. Options are: 1. Line 2. LineColumn 3. LineDiscriminator 4. LineColumnDiscriminator Adds support for negative inlining decisions. These are denoted by "will not be inlined into" as compared to the positive "inlined into" in the remarks. All of these together with the previous `--sample-profile-inline-replay-scope/--cgscc-inline-replay-scope` allow tweaking in how to apply replay. In my testing, I'm using: 1. --sample-profile-inline-replay-scope/--cgscc-inline-replay-scope = Function to only replay on a function 2. --sample-profile-inline-replay-fallback/--cgscc-inline-replay-fallback = NeverInline since I'm feeding in only positive remarks to the replay system 3. --sample-profile-inline-replay-format/--cgscc-inline-replay-format = Line since I'm generating the remarks from DWARF information from GCC which can conflict quite heavily in column number compared to Clang An alternative configuration could be to do Function, AlwaysInline, Line fallback with negative remarks which closer matches the final call-sites. Note that this can lead to unbounded inlining if a negative remark doesn't match/exist for one reason or another. Updated various tests to cover the new switches and negative remarks Testing: ninja check-all Reviewed By: wenlei, mtrofin Differential Revision: https://reviews.llvm.org/D112040
-
Duncan P. N. Exon Smith authored
Use the new sys::path::is_style_posix() and is_style_windows() in a few places that need to detect the system's native path style. In llvm/lib/Support/Path.cpp, this patch removes most uses of the private `real_style()`, where is_style_posix() and is_style_windows() are just a little tidier. Elsewhere, this removes `_WIN32` macro checks. Added a FIXME to a FileManagerTest that seemed fishy, but maintained the existing behaviour. Differential Revision: https://reviews.llvm.org/D112289
-
modimo authored
Replay in sample profiling needs to be asked on candidates that may not have counts or below the threshold. If replay is in effect for a function make sure these are captured and also imported during thinLTO. Testing: ninja check-all Reviewed By: wenlei Differential Revision: https://reviews.llvm.org/D112033
-
Roman Lebedev authored
Those don't contribute to the number of deleted loops.
-
Joseph Huber authored
Add documentation for the debugging features in the OpenMP device runtime library. Reviewed By: tianshilei1992 Differential Revision: https://reviews.llvm.org/D112010
-
Joseph Huber authored
A common problem is the device running out of global heap memory and crashing due to a nullptr dereference when using the data sharing stack. This explicitly checks that a nullptr was not returned by malloc when debugging field 1 is enabled. Reviewed By: jdoerfert Differential Revision: https://reviews.llvm.org/D112005
-
Joseph Huber authored
This patch adds support for using function tracing features to track the executino of runtime functions in the device runtime library. This is enabled by first compiling the new runtime with `-fopenmp-target-debug=3` and running with `LIBOMPTARGET_DEVICE_RTL_DEBUG=3`. The output only tracks team 0 and thread 0 so there isn't much output when using a generic region. Reviewed By: jdoerfert Differential Revision: https://reviews.llvm.org/D112002
-