- Feb 01, 2022
-
-
Adrian Prantl authored
See: https://green.lab.llvm.org/green/view/LLDB/job/lldb-cmake/40636/consoleFull#-39956214149ba4694-19c4-4d7e-bec5-911270d8a58c ``` llvm/lib/Support/Valgrind.cpp:37:63: error: missing '#include <stddef.h>'; 'size_t' must be declared before it is used void llvm::sys::ValgrindDiscardTranslations(const void *Addr, size_t Len) { ^ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/13.0.0/include/stddef.h:46:23: note: declaration here is not visible typedef __SIZE_TYPE__ size_t; ^ 1 error generated. ``` rdar://88049280
-
Florian Hahn authored
Add a new test case with 2 first-order recurrences, which share a user.
-
Louis Dionne authored
Differential Revision: https://reviews.llvm.org/D118638
-
Eli Friedman authored
The RHS of an isImpliedCond call can be a pointer even if the LHS is not. This is similar to bfa2a81e. Not going to include a testcase; an IR testcase would be extremely complicated and fragile. Fixes https://github.com/llvm/llvm-project/issues/51936 . Differential Revision: https://reviews.llvm.org/D114555
-
Paul Walker authored
Differential Revision: https://reviews.llvm.org/D118463
-
Chris Bieneman authored
We do support building with a default target unspecified. This fixes two small build issues that prevented LLVM's unit tests from building and libSupport from building on Windows.
-
Ruslan Arutyunyan authored
std::result_of creates problems when building with C++20 because it's deprecated there. The solution is to remove it and get return value type for a function with decltype. Substitute std::invoke_result for std::result_of is unnecessary because we don't have std::invoke semantics within the function - we don't work with pointer-to-member's. Reviewed by: ldionne, MikeDvorskiy, #libc Differential Revision: https://reviews.llvm.org/D118457
-
Konstantin Varlamov authored
-
Arthur O'Dwyer authored
As discovered in D117817, `std::ranges::input_range<Holder<Incomplete>*[10]>` hard-errored before this patch. That's because `input_range` requires `iter_rvalue_reference_t`, which requires `iter_move`, which was not ADL-proofed. Add ADL-proofing tests to all the range refinements. `output_range` and `common_range` shouldn't be affected, and all the others subsume `input_range` anyway, but we might as well be thorough. Differential Revision: https://reviews.llvm.org/D118213
-
Alexey Bataev authored
Added support for alternate ops vectorization of the cmp instructions. It allows to vectorize either cmp instructions with same/swapped predicate but different (swapped) operands kinds or cmp instructions with different predicates and compatible operands kinds. Differential Revision: https://reviews.llvm.org/D115955
-
Alexander Yermolovich authored
We can have a scenario where multiple CUs share an abbrev table. We modify or don't modify one CU, which leads to other CUs having invalid abbrev section. Example that caused it. All of CUs shared the same abbrev table. First CU just had compile_unit and sub_program. It was not modified. Next CU had DW_TAG_lexical_block with DW_AT_low_pc/DW_AT_high_pc converted to DW_AT_low_pc/DW_AT_ranges. We used unmodified abbrev section for first and subsequent CUs. So when parsing subsequent CUs debug info was corrupted. In this patch we will now duplicate all sections that are modified and are different. This also means that if .debug_types is present and it shares Abbrev table, and they usually are, we now can have two Abbrev tables. One for CU that was modified, and unmodified one for TU. Reviewed By: maksfb Differential Revision: https://reviews.llvm.org/D118517
-
Paul Walker authored
Adds patterns for: add(x, cntp(p, p)) -> incp(x, p) sub(x, cntp(p, p)) -> decp(x, p) Differential Revision: https://reviews.llvm.org/D118567 -
Sanjoy Das authored
- Remove the `{Op,Attr,Type}Trait` TableGen classes and replace with `Trait` - Rename `OpTraitList` to `TraitList` and use it in a few places The bulk of this change is a mechanical s/OpTrait/Trait/ throughout the codebase. Reviewed By: rriddle, jpienaar, herhut Differential Revision: https://reviews.llvm.org/D118543 -
Ties Stuij authored
Differential Revision: https://reviews.llvm.org/D118380
-
Jonas Devlieghere authored
Rosetta crashlogs can have their own thread register state. Unlike the other registers which ware directly listed under "threadState", the Rosetta registers are nested under their own key in the JSON, as illustrated below: { "threadState": { "rosetta": { "tmp2": { "value": 4935057216 }, "tmp1": { "value": 4365863188 }, "tmp0": { "value": 18446744073709551615 } } } } -
Jon Chesterfield authored
-
Christian Sigg authored
Fold `arith.fadd %x, -0.0 -> %x` and similarly for `fsub`, `fmul`, `fdiv`. Fold `arith.fmin %x, %x -> %x`, `arith.fmin %x, +inf -> %x` and similarly for `fmax`. Reviewed By: pifon2a, mehdi_amini, bondhugula Differential Revision: https://reviews.llvm.org/D118244
-
Florian Hahn authored
The optimization added in D118139 causes a crash on the added test case while trying to zero extend an vector of floats. Fix the crash by bailing out for floating point operands. Reviewed By: DavidTruby Differential Revision: https://reviews.llvm.org/D118615
-
Jon Chesterfield authored
-
Sam McCall authored
-
Philip Reames authored
For the cross block gc.result projection case, we only care about the return type if there is a cross block gc.result, and if there is one, we can take the type from the gc.result. At the moment, this makes little difference, but for opaque pointers we need a means to get result typing without relying on pointee types.
-
Alexander Belyaev authored
This reverts commit 016956b6. Reverting it to fix NVidia build without being in a hurry.
-
Adrian Prantl authored
Addresses https://github.com/llvm/llvm-project/issues/53342 Differential Revision: https://reviews.llvm.org/D118412
-
Philip Reames authored
When lowering a gc.result, we can assume that the result type of the gc.result matches the type of the underlying call. This is explicitly required in LangRef. At the moment, this makes little difference, but for opaque pointers we need a means to get result typing without relying on pointee types.
-
Philip Reames authored
-
Valentin Clement authored
During the upstreaming process from fir-dev some new builder have been introduced in the `flang/Optimizer/Builder/Character.h` and `flang/include/Builder/Runtime/Character.h` files. This patch removes the obsolete Charachter helpers still present in the lowering directories. This patch is part of the upstreaming effort from fir-dev branch. Reviewed By: kiranchandramohan Differential Revision: https://reviews.llvm.org/D118594
-
Alexander Belyaev authored
Differential Revision: https://reviews.llvm.org/D118028
-
Simon Pilgrim authored
The pointers are dereferenced immediately, so assert the cast is correct instead of returning nullptr
-
Arthur O'Dwyer authored
This includes an experimental workaround for LWG3664 "LWG3392 broke std::ranges::distance(a, a+3)", but the workaround may be incomplete, I'm not sure. This should be re-audited when LWG3664 is actually adopted, to see if we need to change anything about our implementation. See also https://github.com/microsoft/STL/pull/2500 Differential Revision: https://reviews.llvm.org/D117940
-
Jon Chesterfield authored
-
Craig Topper authored
We convert VLEN to vscale by dividing by RVVBitsPerBlock which is currently 64. This is only correct if VLEN is evenly divisible by 64. With only Zvl32b we can't assume that. This patch adds a fatal_error to prevent generating code that may be broken. We probably need to look at how we size stack frame objects too. Reviewed By: frasercrmck Differential Revision: https://reviews.llvm.org/D118583
-
Craig Topper authored
We had previously hardcoded this to assume that vector registers are 128 bits. This was true when only V existed, but after Zve extensions were added this became incorrect. This patch adjusts it to support 128, 64, or 32 bit vectors depending on Zvl. The 128-bit limit is artificial, but we don't have any test coverage showing that we larger values so I was being conservative. None of our lit tests depend on this code today due to the custom lowering of ISD::VSCALE that inserts the appropriate left or right shift to convert from VLENB to VSCALE. That code was added after this code in computeKnownBitsForTargetNode. Reviewed By: frasercrmck Differential Revision: https://reviews.llvm.org/D118582
-
Arthur O'Dwyer authored
Each "Nothing To Do" issue only changed nits in the English wording, not anything to do with the code. Each "Complete" issue was completed already, as far as I can tell. I tried to err on the side of caution: I didn't mark a few issues whose P/Rs were very invasive and would take time to verify, and I didn't mark a lot of issues involving features we haven't even started yet. Differential Revision: https://reviews.llvm.org/D117960
-
Arthur O'Dwyer authored
The macro that opts out of `std::ranges::` functionality is called `_LIBCPP_HAS_NO_INCOMPLETE_RANGES`, and is unrelated to this macro which is specifically about _compiler_ support for the _syntax_. The only non-mechanical diff here is in `<__config>`. Differential Revision: https://reviews.llvm.org/D118507
-
Craig Topper authored
The spec doesn't seem to be written as if Zfh implies Zfhmin. They seem to be separate extensions. This patch moves the instructions from Zfhmin to be enabled with either the Zfh or Zfhmin extensions. Reviewed By: achieveartificialintelligence Differential Revision: https://reviews.llvm.org/D118581
-
Craig Topper authored
Zfhmin should imply F just like Zfh. Reviewed By: achieveartificialintelligence Differential Revision: https://reviews.llvm.org/D118578
-
Josh Mottley authored
This patch adds partial lowering of the "COMMAND_ARGUMENT_COUNT" intrinsic to the backend runtime hook implemented in patch D109048. Also adds a "helper" function for retrieving the default integer type from FIRBuilder, which will be used later when finishing the lowering of intrinsic. Differential Revision: https://reviews.llvm.org/D117869
-
Nikolas Klauser authored
Add test coverage for `vector<bool>::reference` Reviewed By: Quuxplusone, ldionne, #libc Spies: libcxx-commits Differential Revision: https://reviews.llvm.org/D117780
-
Jeremy Morse authored
This patch shuffles some functions around so that some blocks of code can be reused. In particular, * Move the determination of "which blocks are in scope" to its own function, as it's non-trivial to solve. Delete the "InScopeBlocks" collection too, which nothing reads from. * Split transfer emission (i.e., installing DBG_VALUEs into blocks) into its own function. * Name some useful types. * Rename "ScopeToBlocks" to "ScopeToAssignBlocks", as that's what the collection contains, blocks where assignments happen. Differential Revision: https://reviews.llvm.org/D118454
-
Hans Wennborg authored
One can argue that it qualifies as a toolchain tool rather than "internal llvm tool". This will make it part of builds which set the LLVM_INSTALL_TOOLCHAIN_ONLY cmake option, such as the Windows installer. Fixes https://github.com/llvm/llvm-project/issues/53461 Differential revision: https://reviews.llvm.org/D118606
-