- Feb 17, 2022
-
-
Michał Górny authored
When building libcxxabi via LLVM_ENABLE_RUNTIMES=libcxxabi the CMake invocation fails because of missing "unwind" target. However, if the extraneous dependency is removed, the library builds just fine against installed libunwind and tests work fine. To fix this, add the dependency only if the target actually exists. Differential Revision: https://reviews.llvm.org/D119538
-
Arthur Eubanks authored
gnuwin32 tail does not support the `tail -c +9` syntax. Reviewed By: MaskRay Differential Revision: https://reviews.llvm.org/D119956
-
Kevin P. Neal authored
failures.
-
Haowei Wu authored
This patch adds an addition test to test llvm-ifs's behavior when DT_STRSZ value from .dynamic is invalid Differential Revision: https://reviews.llvm.org/D119741
-
Nico Weber authored
-
Louis Dionne authored
This is the first step towards disentangling the debug mode and assertions in libc++. This patch doesn't make any functional change: it simply moves _LIBCPP_ASSERT-related stuff to its own file so as to make it clear that libc++ assertions and the debug mode are different things. Future patches will make it possible to enable assertions without enabling the debug mode. Differential Revision: https://reviews.llvm.org/D119769
-
Fangrui Song authored
-
Kevin P. Neal authored
In a prior review I was asked to move the helper function canIgnoreSNaN() out to FPEnv.h. This wasn't possible at the time because that function needs the fast math flags, and including them includes lots of other stuff that isn't needed. This patch moves the fast math flags out into a new FMF.h file unchanged, and moves the helper function out to FPEnv.h also unchanged. This ticket only moves code around. Differential Revision: https://reviews.llvm.org/D119752
-
Rashmi Mudduluru authored
-
Craig Topper authored
Part of the shift lowering creates a (sub XLEN-1, ShAmt). When this value is used we know that ShAmt is [0..XLEN-1]. Since XLEN is a power of 2 we can replace the sub with an xor. This allows us to use XORI instead of LI+SUB. Reviewed By: asb Differential Revision: https://reviews.llvm.org/D119411
-
Craig Topper authored
Matches what is done for the int version. Reviewed By: sdesmalen Differential Revision: https://reviews.llvm.org/D119793
-
Sanjay Patel authored
D119851
-
Christopher Di Bella authored
Note: the term "libgcc" refers to the all of `libgcc.a`, `libgcc_eh.a`, and `libgcc_s.so`. Enabling libunwind as a replacement for libgcc on Linux has proven to be challenging since libgcc_s.so is a required dependency in the [Linux standard base][5]. Some software is transitively dependent on libgcc because glibc makes hardcoded calls to functions in libgcc_s. For example, the function `__GI___backtrace` eventually makes its way to a [hardcoded dlopen to libgcc_s' _Unwind_Backtrace][1]. Since libgcc_{eh.a,s.so} and libunwind have the same ABI, but different implementations, the two libraries end up [cross-talking, which ultimately results in a segfault][2]. To solve this problem, libunwind needs to build a “libgcc”. That is, link the necessary functions from compiler-rt and libunwind into an archive and shared object that advertise themselves as `libgcc.a`, `libgcc_eh.a`, and `libgcc_s.so`, so that glibc’s baked calls are diverted to the correct objects in memory. For... -
Jonas Devlieghere authored
Avoid leaking the ScriptAddOptions or SynthAddOptions when we return early because of an empty type name.
-
Louis Dionne authored
Otherwise, the warnings always trigger.
-
Jameson Nash authored
The clang-analyzer plugins are not linked to a particular tool, so they can only be compiled if plugins are broadly supported. We could opt instead to decide whether to link them to specifically against clang or with undefined symbols, depending on the value of LLVM_ENABLE_PLUGINS, but we do not currently expect there to be a use case for that rather niche configuration. Differential Revision: https://reviews.llvm.org/D119591
-
Nathan Sidwell authored
The copy and pristine versions of Utility diverged and one didn't include <algorithm>. As that's a rather large header, let's just open code the comparisons. Reviewed By: Differential Revision: https://reviews.llvm.org/
-
Joseph Huber authored
This hits an assertion in the linker wrapper. Revert for now, will fix later. This reverts commit 61fb260d.
-
Dmitry Preobrazhensky authored
Enabled HW_REG_HW_ID as an alias for HW_REG_HW_ID1. This is required for compatibility with existing code. Differential Revision: https://reviews.llvm.org/D119939
-
Joseph Huber authored
This patch passes in the AMDPGU math libraries to the linker wrapper. The wrapper already handles linking OpenMP bitcode libraries via the `--target-library` option. This should be sufficient to link in math libraries for the accompanying architecture. Fixes #53526. Reviewed By: jdoerfert Differential Revision: https://reviews.llvm.org/D119841
-
Adrian Prantl authored
This patch adds a new Darwin clang driver environment variable in the spirit of RC_DEBUG_OPTIONS, called RC_DEBUG_PREFIX_MAP, which allows a meta build tool to add one additional -fdebug-prefix-map entry without the knowledge of the build system. rdar://85224675 Differential Revision: https://reviews.llvm.org/D119850
-
Louis Dionne authored
-
Lei Huang authored
-
Lei Zhang authored
The pad-slice swap pattern generates `scf.if` and `tensor.generate` to guard against zero-sized slices if it cannot prove the slice is always non-zero. This is safe but quite conservative. It can be unnecessary for cases where we know by problem definition such cases does not exist, even if with dynamic shaped ops or unknown tile/slice sizes, e.g., convolution padding size = 1 with kernel dim size = 3. So this commit introduces a control to the pattern to specify whether to generate the if constructs to handle such cases better, given that once the if constructs is materialized, it's very hard to analyze and simplify. Reviewed By: mravishankar Differential Revision: https://reviews.llvm.org/D117017
-
Benjamin Kramer authored
memcpy can handle them as long as they're contiguous. Differential Revision: https://reviews.llvm.org/D119938
-
Arthur O'Dwyer authored
It actually *is* important (for structured bindings) that `get(tuple)` be ADL-able; but that's not the point of this test in particular. Reviewed as part of D119860.
-
Arthur O'Dwyer authored
We shouldn't be calling `rethrow_exception` via ADL -- and neither should anybody in the wild be calling it via ADL, so it's not like we need to test this ADL ability of `rethrow_exception` in particular. Reviewed as part of D119860.
-
Arthur O'Dwyer authored
We shouldn't be calling these functions via ADL -- and neither should anybody in the wild be calling it via ADL, so it's not like we need to test the ADL ability of these functions in particular. Reviewed as part of D119860.
-
Arthur O'Dwyer authored
Reviewed as part of D119860.
-
Arthur O'Dwyer authored
Reviewed as part of D119860.
-
Arthur O'Dwyer authored
Reviewed as part of D119860.
-
Arthur O'Dwyer authored
We shouldn't be calling `prev` via ADL -- and neither should anybody in the wild be calling it via ADL, so it's not like we need to test this ADL ability of `prev` in particular. Reviewed as part of D119860.
-
Arthur O'Dwyer authored
We shouldn't be calling `next` via ADL -- and neither should anybody in the wild be calling it via ADL, so it's not like we need to test this ADL ability of `next` in particular. Reviewed as part of D119860.
-
Arthur O'Dwyer authored
We shouldn't be calling `move` via ADL -- and neither should anybody in the wild be calling it via ADL, so it's not like we need to test this ADL ability of `move` in particular. Reviewed as part of D119860.
-
Arthur O'Dwyer authored
Fixes #49601. Differential Revision: https://reviews.llvm.org/D119891
-
Arthur O'Dwyer authored
Differential Revision: https://reviews.llvm.org/D119863
-
- Feb 16, 2022
-
-
Arthur O'Dwyer authored
Drive-by remove some use of raw `new`, and expand test coverage a tiny bit. Differential Revision: https://reviews.llvm.org/D119861
-
Philip Reames authored
-
Arthur O'Dwyer authored
"cxx2b-consteval-if.cpp" was showing up misindented.
-
Vladislav Khmelevsky authored
This patch changes patchELFAllocatableRelaSections from going through old relocations sections and update the relocation offsets to emitting the relocations stored in binary sections. This is needed in case we would like to remove and add dynamic relocations during BOLT work and it is used by golang support pass. Note: Currently we emit relocations in the old sections, so the total number of them should be equal or less of old number. Testing: No special tests are neeeded, since this patch does not fix anything or add new functionality (it only prepares to add). Every PIC-compiled test binary will use this code and thus become a test. But just in case the aarch64 dynamic relocations tests were added. Vladislav Khmelevsky, Advanced Software Technology Lab, Huawei Reviewed By: maksfb Differential Revision: https://reviews.llvm.org/D117612
-