- Jul 13, 2021
-
-
Louis Dionne authored
-
Yaxun (Sam) Liu authored
Reviewed by: Artem Belevich Differential Revision: https://reviews.llvm.org/D105035
-
Gus Smith authored
This is a fix of https://reviews.llvm.org/D104956, which broke the gcc5 build. We opt to use unit tests rather than check tests as the lattice/merger code is a small C++ component with a well-defined API. Testing this API via check tests would be far less direct and readable. In addition, as the check tests will only be able to test the API indirectly, the tests may break based on unrelated changes; e.g. changes in linalg. Reviewed By: aartbik Differential Revision: https://reviews.llvm.org/D105828
-
Martin Storsjö authored
Make sure that the detached thread has started up before exiting the process. This is exactly the same fix as D105592, with the same pattern being present in a different test case. Differential Revision: https://reviews.llvm.org/D105736
-
Felix Berger authored
When deleting the copy assignment statement because copied variable is not used only remove trailing comments on the same line. Differential Revision: https://reviews.llvm.org/D105734 Reviewed-by: ymandel
-
Walter Erquinigo authored
The error UndefinedBehaviorSanitizer: undefined-behavior /Users/buildslave/jenkins/workspace/lldb-cmake-sanitized/llvm-project/lldb/tools/lldb-vscode/ProgressEvent.cpp:89:64 in was found in https://green.lab.llvm.org/green/view/LLDB/job/lldb-cmake-sanitized/1910/consoleFull#-15641370498254eaf0-7326-4999-85b0-388101f2d404 It turns out that we were not setting m_event_type when initializatin and update case. The fix is very simple. Differential Revision: https://reviews.llvm.org/D105832
-
Nikita Popov authored
Continuing from D105763, this allows placing certain properties about attributes in the TableGen definition. In particular, we store whether an attribute applies to fn/param/ret (or a combination thereof). This information is used by the Verifier, as well as the ForceFunctionAttrs pass. I also plan to use this in LLParser, which also duplicates info on which attributes are valid where. This keeps metadata about attributes in one place, and makes it more likely that it stays in sync, rather than in various functions spread across the codebase. Differential Revision: https://reviews.llvm.org/D105780
-
zoecarver authored
Marks a few things as done. Marks a few things as in progress. Assigns a few things to me.
-
Wouter van Oortmerssen authored
-
Louis Dionne authored
-
Nikita Popov authored
InAlloca was listed twice, once as a normal attribute, once as a type attribute.
-
Nikita Popov authored
This is now the same as isIntAttrKind(), so use that instead, as it does not require manual maintenance. The naming is also more accurate in that both int and type attributes have an argument, but this method was only targeting int attributes. I initially wanted to tighten the AttrBuilder assertion, but we have some in-tree uses that would violate it.
-
Geoffrey Martin-Noble authored
https://github.com/llvm/llvm-project/commit/5208ec5c66dc updated the of google-benchmark under libcxx adding a BUILD.bazel file. This upsets Bazel in our overlay configuration because it tries to interpret this file. Currently this is breaking the CI: https://buildkite.com/llvm-project/upstream-bazel-rbe/builds/1828 Tested (same command the CI uses) `bazel query //... + @llvm-project//... | xargs bazel test --config=generic-clang --config=rbe --test_output=errors --test_tag_filters=-nobuildkite --build_tag_filters=-nobuildkite` Differential Revision: https://reviews.llvm.org/D105833
-
Louis Dionne authored
-
Simon Pilgrim authored
Update (mainly) vXf32/vXf64 -> vXi8/vXi16 fptosi/fptoui costs based on the worst case costs from the script in D103695. Move to using legalized types wherever possible, which allows us to prune the cost tables.
-
Thomas Johnson authored
This change is a step towards implementing codegen for __builtin_clz(). Full support for CLZ with a regression test will follow shortly. Differential Revision: https://reviews.llvm.org/D105560
-
Louis Dionne authored
-
Steven Wan authored
On AIX when there is a pragma pack, or pragma align in effect then zero-width bitfields should pad out to the end of the bitfield container but not increase the alignment requirements of the struct greater then the max field align. Reviewed By: ZarkoCA Differential Revision: https://reviews.llvm.org/D105635
-
Nikita Popov authored
It's not necessary to explicitly sort by enum/int/type attribute, as the attribute kinds are already sorted this way. We can directly sort by kind.
-
Nikita Popov authored
Assert that enum/int/type attributes go through the constructor they are supposed to use. To make sure this can't happen via invalid bitcode, explicitly verify that the attribute kind if correct there.
-
Vitaly Buka authored
Breaks https://lab.llvm.org/buildbot/#/builders/sanitizer-x86_64-linux-android This reverts commit 6062c672. This reverts commit 8e489b4b.
-
Krzysztof Drewniak authored
Reviewed By: xgupta Differential Revision: https://reviews.llvm.org/D105825
-
Nikita Popov authored
Followup to D105658 to make AttrBuilder automatically work with new type attributes. TableGen is tweaked to emit First/LastTypeAttr markers, based on which we can handle type attributes programmatically. Differential Revision: https://reviews.llvm.org/D105763
-
Geoffrey Martin-Noble authored
Bazel configuration updates for https://github.com/llvm/llvm-project/commit/75e5f0aac97d, https://github.com/llvm/llvm-project/commit/c282d55a3857, and https://github.com/llvm/llvm-project/commit/26e59cc19f86 Tested: `bazel test ... @llvm-project//...` Differential Revision: https://reviews.llvm.org/D105830
-
Nikita Popov authored
This reverts commit 07266952. This causes the following build failure with gcc 10.3.0: /home/nikic/llvm-project/compiler-rt/lib/sanitizer_common/sanitizer_allocator_primary64.h:114:31: error: declaration of ‘typedef class __sanitizer::MemoryMapper<__sanitizer::SizeClassAllocator64<Params> > __sanitizer::SizeClassAllocator64<Params>::MemoryMapper’ changes meaning of ‘MemoryMapper’ [-fpermissive] 114 | typedef MemoryMapper<ThisT> MemoryMapper;
-
Louis Dionne authored
-
Jinsong Ji authored
The lowering for v2i64 is now guarded with hasDirectMove, however, the current lowering can handle the pattern correctly, only lowering it when there is efficient patterns and corresponding instructions. The original guard was added in D21135, and was for Legal action. The code has evloved now, this guard is not necessary anymore. Reviewed By: #powerpc, nemanjai Differential Revision: https://reviews.llvm.org/D105596
-
Nico Weber authored
Differential Revision: https://reviews.llvm.org/D105818
-
Thomas Lively authored
Replace the clang builtin function and LLVM intrinsic for f32x4.demote_zero_f64x2 with combines from normal SDNodes. Also add missing combines for i32x4.trunc_sat_zero_f64x2_{s,u}, which share the same pattern. Differential Revision: https://reviews.llvm.org/D105755 -
Dmitry Vyukov authored
Currently we allocate MemoryMapper per size class. MemoryMapper mmap's and munmap's internal buffer. This results in 50 mmap/munmap calls under the global allocator mutex. Reuse MemoryMapper and the buffer for all size classes. This radically reduces number of mmap/munmap calls. Smaller size classes tend to have more objects allocated, so it's highly likely that the buffer allocated for the first size class will be enough for all subsequent size classes. Reviewed By: melver Differential Revision: https://reviews.llvm.org/D105778
-
Leonard Chan authored
This way, other platforms can define these values. Differential Revision: https://reviews.llvm.org/D105744
-
Craig Topper authored
[X86] Teach X86FloatingPoint's handleCall to only erase the FP stack if there is a regmask operand that clobbers the FP stack. There are some calls to functions like `__alloca` that are missing a regmask operand. Lack of a regmask operand means that all registers that aren't mentioned by def operands are preserved. __alloca only updates EAX and ESP and has def operands for them so this is ok. Because there is no regmask the register allocator won't spill the FP registers across the call. Assuming we want to keep the FP stack untoched across these calls, we need to handle this is in the FP stackifier. We might want to add a proper regmask operand to the code that creates these calls to indicate all registers are preserved, but we'd still need this change to the FP stackifier to know to preserve the FP stack for such a regmask. The test is kind of long, but bugpoint wasn't able to reduce it any further. Fixes PR50782 Reviewed By: pengfei Differential Revision: https://reviews.llvm.org/D105762
-
Fangrui Song authored
Users should generally observe no difference as long as they don't use unintended option forms. Behavior changes: * `-t=d` is removed. Use `-t d` instead. * `--demangle=false` and `--demangle=0` cannot be used. Omit the option or use `--no-demangle`. Other flag-style options don't have `--no-` forms. * `--help-list` is removed. This is a `cl::` specific option. * llvm-readobj now supports grouped short options as well. * `--color` is removed. This is generally not useful (only apply to errors/warnings) but was inherited from Support. Some adjustment to the canonical forms (usually from GNU readelf; currently llvm-readobj has too many redundant aliases): * --dyn-syms is canonical. --dyn-symbols is a hidden alias * --file-header is canonical. --file-headers is a hidden alias * --histogram is canonical. --elf-hash-histogram is a hidden alias * --relocs is canonical. --relocations is a hidden alias * --section-groups is canonical. --elf-section-groups is a hidden alias OptTable avoids global option collision if we decide to support multiplexing for binary utilities. * Most one-dash long options are still supported. `-dt, -sd, -st, -sr` are dropped due to their conflict with grouped short options. * `--section-mapping=false` (D57365) is strange but is kept for now. * Many `cl::opt` variables were unnecessarily external. I added `static` whenever appropriate. Reviewed By: jhenderson Differential Revision: https://reviews.llvm.org/D105532
-
Andrzej Warzynski authored
Folds `list(APPEND <list> [<element>...])` into the definition of `<list>`.
-
Rob Suderman authored
Added shape inference for: - scatter - gather - transpose - slice - pad - concat - reduction operations Also updated reshape for more aggressive shape inference. Differential Revision: https://reviews.llvm.org/D105383
-
Fangrui Song authored
We already have some reloc-types-elf-*.test serving the similar purpose. Reviewed By: jhenderson Differential Revision: https://reviews.llvm.org/D105783
-
Jinsong Ji authored
AIX .file directive support including compiler version string. https://www.ibm.com/docs/en/aix/7.2?topic=ops-file-pseudo-op This patch adds the support so that it will be easier to identify build compiler in objects. Reviewed By: #powerpc, shchenz Differential Revision: https://reviews.llvm.org/D105743
-
David Green authored
-
Joachim Protze authored
The annotations in libomp were never built by default. The annotations are also superseded by the annotations which the OMPT tool libarcher.so provides. With respect to libarcher, libomp behaves as if libarcher would be the last element of OMP_TOOL_LIBARARIES. I.e., if no other OMPT tool gets active, libarcher will check if an OpenMP application is built with TSan. Since libarcher gets loaded by default, enabling LIBOMP_TSAN_SUPPORT would result in redundant annotations for TSan, which slightly differ in details and coverage (e.g. task dependencies are not handled well by the annotations in libomp). This patch removes all TSan annotations from the OpenMP runtime code. Differential Revision: https://reviews.llvm.org/D103767
-
Louis Dionne authored
-