- Aug 12, 2022
-
-
Kevin Athey authored
Reviewed By: vitalybuka Differential Revision: https://reviews.llvm.org/D131748
-
Amy Kwan authored
This patch fixes the max_size.pass.cpp test for PowerPC targets, depending on endianness. We will exhibit the full_size() behaviour for little endian (where __endian_factor = 2 ), and the half_size() behaviour for big endian (where __endian_factor = 1). Differential Revision: https://reviews.llvm.org/D131682
-
wanglian authored
Reviewed By: RKSimon Differential Revision: https://reviews.llvm.org/D131653
-
Dave Lee authored
-
Dave Lee authored
With lldb (& llvm) requiring Python 3.6+, use of the `six` module can be removed. Differential Revision: https://reviews.llvm.org/D131304
-
Slava Gurevich authored
Style fixes for the entire file Differential Revision: https://reviews.llvm.org/D131543
-
Jeff Niu authored
Switch variadic operand and result segment size attributes to use the dense i32 array. Dense integer arrays were introduced primarily to represent index lists. They are a better fit for segment sizes than dense elements attrs. Depends on D131738 Reviewed By: mehdi_amini Differential Revision: https://reviews.llvm.org/D131702
-
Jeff Niu authored
Follow-up to D123774, where the syntax of dense arrays was discussed. It was included that the syntax should be changed to `array<i32: 1, 2>`. This patch changes the syntax but importantly preserves the `[1, 2]` syntax when embedding these attributes in assembly formats through ODS. Reviewed By: mehdi_amini, jpienaar Differential Revision: https://reviews.llvm.org/D131738
-
Michael Jones authored
The convert_alpha_numeric function is intentionally non-templated so that its code can be reused for different bases in code-size sensitive cases. Previously it was inside the IntegerToString class which created a different version for each base. Reviewed By: sivachandra, lntue Differential Revision: https://reviews.llvm.org/D131725
-
Jonas Devlieghere authored
A missing call to `format` resulted in curly braces getting printed in the reason a test was modified by a decorator. For example it would print "{} unconditionally" instead of "skipping unconditionally" for tests that were marked as such. -
Ivan Murashko authored
The `File` might point to an invalid `FileID` when the AST is broken. That leads to clang/clangd crashes while processing comments. The relevant part of the crash is below ``` #4 0x00007f1d7fbf95bc std::_Rb_tree<unsigned int, std::pair<unsigned int const, clang::RawComment*>, std::_Select1st<std::pair<unsigned int const, clang::RawComment*>>, std::less<unsigned int>, std::allocator<std::pair<unsigned int const , clang::RawComment*>>>::_M_lower_bound(std::_Rb_tree_node<std::pair<unsigned int const, clang::RawComment*>> const*, std::_Rb_tree_node_base const*, unsigned int const&) const /usr/include/c++/8/bits/stl_tree.h:1911:2 #5 0x00007f1d7fbf95bc std::_Rb_tree<unsigned int, std::pair<unsigned int const, clang::RawComment*>, std::_Select1st<std::pair<unsigned int const, clang::RawComment*>>, std::less<unsigned int>, std::allocator<std::pair<unsigned int const, clang::RawComment*>>>::lower_bound(unsigned int const&) const /usr/include/c++/8/bits/stl_tree.h:1214:56 #6 0x00007f1d7fbf95bc std::map<unsigned int, clang::RawComment*, std::less<unsigned int>, std::allocator<std::pair<unsigned int const, clang::RawComment*>>>::lower_bound(unsigned int const&) const /usr/include/c++/8/bits/stl_map.h:1264:36 #7 0x00007f1d7fbf95bc clang::ASTContext::getRawCommentForDeclNoCacheImpl(clang::Decl const*, clang::SourceLocation, std::map<unsigned int, clang::RawComment*, std::less<unsigned int>, std::allocator<std::pair<unsigned int const, clang::RawComment*>>> const&) const /home/ivanmurashko/local/llvm-project/clang/lib/AST/ASTContext.cpp:226:57 ``` The corresponding LIT test that reproduces the crash was also added Same issue is described at https://bugs.llvm.org/show_bug.cgi?id=49707 Reviewed By: gribozavr2 Differential Revision: https://reviews.llvm.org/D131675
-
Mircea Trofin authored
Casting operator to make TFLite happy. Reviewed By: yundiqian Differential Revision: https://reviews.llvm.org/D131584
-
not-jenni authored
Reviewed By: jpienaar Differential Revision: https://reviews.llvm.org/D131496
-
Nico Weber authored
This is fairly manual for now. Differential Revision: https://reviews.llvm.org/D131710
-
Arthur Eubanks authored
-
Craig Topper authored
Since -1 is the maximum unsigned value, all values less than it are not equal to it.
-
Shafik Yaghmour authored
Ok it looks like this is a bit more subtle, I broke the llvm-test-suite file paq8p.cpp again. We need both conditions to be true Info.EvalMode == EvalInfo::EM_ConstantExpression && Info.InConstantContext. We need to be in a context that requires a constant value but also in a constant expression context. Differential Revision: https://reviews.llvm.org/D131704
-
Dave Lee authored
A spiritual follow up to D131032. I noticed some regex could be simplified. This does some of the following: 1. Removes unused capture groups 2. Uses non-capturing `(?:...)` groups where grouping is needed but capturing isn't 3. Removes trailing `.*` 4. Uses `\d` over `[0-9]` 5. Uses raw strings 6. Uses `{N,}` to indicate N-or-more Also improves the call site of a `re.findall`. Differential Revision: https://reviews.llvm.org/D131305 -
Martin Storsjö authored
Since c5b3de67 (git main, August 11th), Clang does generate working hidden visibility on MinGW targets. Using that reduces the number of exports from a dylib build of LLVM significantly, which is vital for fitting within the limit of 64k exported symbols from a DLL. It's essential that if we set CMAKE_CXX_VISIBILITY_PRESET=hidden (which passes -fvisibility=hidden on the command line), we also must define LLVM_EXTERNAL_VISIBILITY consistently to override it. (If there are mismatches, e.g. setting hidden visibility generally but never overriding it back to default for the symbols that do need to be exported, we'd get broken builds in such configurations.) We don't want to be using __attribute__((visibility("hidden"))) on MinGW with GCC, because GCC produces a warning about it. (GCC hasn't warned about the command line options that set hidden visibility though.) Clang has historically not warned about either of ...
-
Martin Storsjö authored
-
Vitaly Buka authored
Reviewed By: kda Differential Revision: https://reviews.llvm.org/D131721
-
Vitaly Buka authored
Reviewed By: kda Differential Revision: https://reviews.llvm.org/D131692
-
Craig Topper authored
Including patterns to select addiw if only the lower 32 bits are used. I'm not excited about adding this many patterns. I'm looking at whether we can create the xori during lowering and move the ineg patterns to DAGCombiner.
-
Shafik Yaghmour authored
In D131528 using Info.EvalMode == EvalInfo::EM_ConstantExpression is not strict enough to restrict the diagnostic to only constant expression contexts. It is sometimes set in cases where we are still determining if we are in a constant expression context. Using InConstantContext will tighten the restriction. Differential Revision: https://reviews.llvm.org/D131704
-
Jonathan Peyton authored
Serialized parallels allocate lightweight task teams on the heap but never free them in the corresponding join. This patch adds a wrapper around the allocation (if ompt enabled) and also adds the corresponding free in the join call. Differential Revision: https://reviews.llvm.org/D131690
-
Vladimir Plyashkun authored
It seems that documentation for abseil-no-internal-dependencies has invalid title. This can be checked by looking at the actual web-site - https://clang.llvm.org/extra/clang-tidy/checks/abseil/no-internal-dependencies.html There is redundant "subl.. title:: clang-tidy - abseil-no-internal-dependencies" paragraph in the beginning. Reviewed By: njames93, sylvestre.ledru Differential Revision: https://reviews.llvm.org/D131590
-
Philip Reames authored
-
Jonas Devlieghere authored
I accidentally forgot to stage part of the changes in the previous commit.
-
Jonas Devlieghere authored
Simplify the test's source code, remove unnecessary headers, and convert it from C++ to C.
-
Louis Dionne authored
Also, add missing tests for assertions in span constructors. Now I believe that all of std::span's API should be hardened, and all the assertions should have a corresponding test. Differential Revision: https://reviews.llvm.org/D131681
-
Siva Chandra Reddy authored
First argument to thrd_join was incorrectly listed as a pointer to a thrd_t value. It should instead be a thrd_t value argument.
-
Arnold Schwaighofer authored
Coroutine splitting is not possible if the one-to-one mapping between the two is lost. Every suspend point must have a matching continuation function pointer. rdar://98404664 Differential Revision: https://reviews.llvm.org/D131684
-
Valentin Clement authored
Location information was not correctly propagated when creating OpenACC operations. This patch propagate the correct location information from the parse tree nodes to OpenACC MLIR operations. Reviewed By: razvanlupusoru Differential Revision: https://reviews.llvm.org/D131659
-
Denys Petrov authored
-
Nikolas Klauser authored
Reviewed By: ldionne, Mordante, #libc Spies: libcxx-commits Differential Revision: https://reviews.llvm.org/D130848
-
Vir Narula authored
Add more tests with varied strides. Changes to lowering upcoming in https://reviews.llvm.org/D131125 Reviewed By: fhahn Differential Revision: https://reviews.llvm.org/D131444
-
Fangrui Song authored
Reviewed By: kazu Differential Revision: https://reviews.llvm.org/D131695
-
Walter Erquinigo authored
Pavel Labath taught me that clang-format sorts headers automatically using llvm's rules, and it's better not to have spaces between So in this diff I'm removing those spaces and formatting them as well. I used `clang-format -i` to format these files.
-
Alex Bradbury authored
As reported in <https://github.com/llvm/llvm-project/issues/57084>, under hard float ABIs there are issues with lowering structs that inherit from other structs. See <https://reviews.llvm.org/D131677> for a fix.
-
Aaron Ballman authored
Clang currently crashes when lowering a consteval list initialization of a temporary. This is partially working around an issue in the template instantiation code (TreeTransform::TransformCXXTemporaryObjectExpr()) that does not yet know how to handle list initialization of temporaries in all cases. However, it's also helping reduce fragility by ensuring we always have a valid QualType when trying to emit a constant expression during IR generation. Fixes #55871 Differential Revision: https://reviews.llvm.org/D131194
-