- Jan 17, 2024
-
-
Charlie Barto authored
[ASAN][sanitizers][win] Allow windows-asan to be built with /MDd and intercept functions from the debug runtimes. (#77840) It turns out this works _mostly_ fine, even when mixing debug versions of asan with programs built with the release runtime. Using /MT (or /MTd) with a dynamically linked asan has never really worked that well, and I am planning on opening a PR that will completely remove the static-asan configuration for windows and make programs linked with the static CRT/runtime work with the DLL version of asan. This is better than the current situation because the static linked version of asan doesn't work well on windows if there are multiple DLLs in the process using it. The check for building asan with only /MD or /MT has been removed. It was in AsanDoesNotSupportStaticLinkage, but was checking for debug CRTs, not static linkage. The kind of static linkage this function is supposed to check for (on linux for example) doesn't really exist on windows. Note: There is one outstanding issue with this approach, if you mix a /MDd DLLs and /MD dlls in the same process then the "real" function called by asan interceptors will be the same for calls from both contexts, potentially screwing up things like errno. This only happens if you mix /MD and /MDd in the same process, because otherwise asan won't find functions from both runtimes to intercept. We are working on a fix for this, and it mainly hits with the CRT functions exported from both ucrtbase and ntdll. This change is being upstreamed from Microsoft's fork.
-
Craig Topper authored
This reverts commit 4737959d. Missed an lldb update.
-
serbanu authored
Add config parse tests for SeparateDefinitionBlocks option.
-
Craig Topper authored
EnumConstantDecl is allocated by the ASTContext allocator so the destructor is never called. This patch takes a similar approach to IntegerLiteral by using APIntStorage to allocate large APSInts using the ASTContext allocator as well. The downside is that an additional heap allocation and copy of the data needs to be made when calling getInitValue if the APSInt is large. Fixes #78160.
-
Nick Desaulniers authored
This reverts commit fdbf255c. Causes build breakage on 32b arm (see reports: https://github.com/llvm/llvm-project/pull/78192). These are reproducible for the 32b arm baremetal target on x86 hosts as well.
-
Arthur Eubanks authored
-
Pranav Kant authored
Similar to d88c1f94
-
Aiden Grossman authored
Currently, BenchmarkRunner scales the per snippet counters by multiplying the raw counter values by the number of instructions (casted to a double) divided by the minimum number of instructions. This is incorrect for the loop repetition mode for snippets that don't fit a whole number of times into the minimum instruction count. For example, with 3 instructions in the snippet and the minimum number of instructions set to 4, the loop repetitor will execute a total of six instructions, but BenchmarkRunner will scale the raw count by 3/4 instead of 3/6=1/2. This will also be incorrect for the duplicate snippet repetitor after #77224. This patch fixes this behavior by dividing the raw count by the ceiling of the number of repetitions divided by the instruction count.
-
erichkeane authored
The 'reduction' clause takes a mandatory operator followed by a colon, followed by a 'var-list'. This patch implements the parsing for the 'reduction' clause.
-
jimingham authored
There's a bad interaction between the macOS 14 dyld and the "dyld_sim" shim that comes from older (iOS 15) simulator downloads that results in dyld reporting some modules twice in the return from the dyld callback to list modules. The records were identical, but lldb wasn't happy with seeing the duplicates... Since it's not possible to load two different modules at the same address, this change just picks the first instance of any entries that have the same load address. There really isn't a good way to test this patch.
-
Teresa Johnson authored
As suggested in https://github.com/llvm/llvm-project/pull/75823, to avoid confusion with std::function_ref, qualify all uses with llvm:: (we were already using the llvm version, but this avoids ambiguity).
-
Mark de Wever authored
This was reviewed in https://github.com/llvm/llvm-project/pull/76246
-
mmoadeli authored
[NVPTX] Fix generating permute bytes from register pair when the initial values are undefined (#74437) When generating the permute bytes for the prmt instruction, the existence of an undefined initial value initialises the int32 that holds the mask with all 1's (0xFFFFFFFF). That initialization subsequently leads to complications during the subsequent OR operation, leading to inaccuracies in populating mask values for the following bytes. Consequently, the final value persists as a constant -1, irrespective of the actual mask values that succeed the initial set value.
-
Mark de Wever authored
The documentation CI no longer builds. This is likely introduced by 8f90e693. This fixes the issue.
-
Petr Hosek authored
This contains compiler-rt builtins and llvm-libc for baremetal use. Differential Revision: https://reviews.llvm.org/D155337
-
Louis Dionne authored
This simplifies the IWYU generation script by treating everything as a file, instead of dealing with directories and files separately. This has the downside that the `libcxx.imp` file is a lot larger than it used to be, however we now have the flexibility of mapping files under detail directories to different public headers. For example, this allows us to map <__fwd/subrange.h> to <ranges> but <__fwd/pair.h> to <utility>. This patch also adds basic validation to ensure that we never map a header to a public header that doesn't exist. We may still be missing some mappings or we may be mapping to incorrect headers, but we won't be mapping to headers that downright don't exist. Fixes #63346
-
Louis Dionne authored
This was missed in the patch where I marked the macro as deprecated.
-
Mark de Wever authored
As suggested in #73262 this enable the stream printing on Apple backdeployment targets. This omits the check whether the file is a terminal. This is not entirely conforming, but the differences should be minor and are typically not observable. Fixes https://github.com/llvm/llvm-project/issues/75225
-
Mark de Wever authored
Previously the header included several headers, possibly granularized threading headers. This could lead to build errors when these headers were incompatible with threading disabled. Now test the guard before inclusion. This matches the pattern used for no localization and no wide characters. Fixes: https://github.com/llvm/llvm-project/issues/76620
-
Mark de Wever authored
We discussed the removal of these enable-all macros in the libc++ monthly meeting and we agreed that we should deprecate these macros in LLVM 18, and then remove them in LLVM 19 since they can silently enable deprecated features that are implemented after the first release of the macro. This patch does the first part of this -- it deprecates the macro. Note that the file test/libcxx/depr/enable_removed_cpp20_features.compile.pass.cpp does not exist so this file is not adapted. Since the feature is deprecated and slated for removal soon the missing test is not implemented. Partly addresses: https://github.com/llvm/llvm-project/issues/75976 --------- Co-authored-by:
Louis Dionne <ldionne.2@gmail.com>
-
Yitzhak Mandelbaum authored
Makes value equivalence require that the values have no properties, except in the case of equivalence by pointer equality (if the pointers are equal, nothing else is checked). Fixes issue #76459.
-
Aart Bik authored
-
erichkeane authored
The update directive has its own version of 'self' that has a 'var-list' instead of a 'condition' (like the serial/parallel/kernel/combined constructs). This patch special cases it on 'update' to make sure we parse this correctly.
-
Simon Pilgrim authored
-
David Green authored
-
Alexey Bataev authored
!isa<Constant>(GEPIdx)' failed. The non-constant index might be folded to constant during earlier stages of vectorization. Need to consider this option and filter out out GEP with the constant indices from the candidates list.
-
Stanislav Mekhanoshin authored
We currently force users to use a negative contant in the intrinsic call. Changing it zext would break existing programs, so just sign extend an argument.
-
Alina Sbirlea authored
-
Tom Eccles authored
This makes it more convenient to install flang without using the general `ninja install` to install everything. To install flang-new and associated things one needs `ninja install-flang-new install-flang-libraries install-flang-headers`.
-
Craig Topper authored
This is a slightly cleaned up version of what we've been using in our downstream toolchain.
-
Craig Topper authored
-
yonillasky authored
Those are probably leftovers from an old name of the same attribute. Fixed for the sake of consistency. Co-authored-by:Yoni Lavi <yoni.lavi@nextsilicon.com>
-
Simon Pilgrim authored
-
Mark de Wever authored
The overloads of `println` are specified in terms of `format`. The function `format` is specified to work with ranges. The implementations for `println` do not include `<format>`, but libc++'s granularized header. This means the following example does not work #include <vector> #include <print> int main() { std::vector<int> v{1, 2, 3}; std::println("{}", v); } (The other print functions also require this to work, they are specified in terms of other format functions.) Fixes: https://github.com/llvm/llvm-project/issues/71925 -
Mark de Wever authored
This is addresses a review comment in #73262.
-
Mark de Wever authored
The old notes are kept to make it easier to backport changes to the release branch. There are no LLVM-17 releases expected and this documentation should not be available in the LLVM-18 release. Note after branching LLVM-18 both LLVM-18 and LLVM-19 release notes should be available.
-
Kerry McLaughlin authored
This patch extends SMEAttrs to interpret the following new attributes, which are mutually exclusive and apply to SME2 only: - aarch64_sme_zt0_in (ZT0_In) - aarch64_sme_zt0_out (ZT0_Out) - aarch64_sme_zt0_inout (ZT0_InOut) - aarch64_sme_zt0_new (ZT0_New) - aarch64_sme_zt0_preserved (ZT0_Preserved) ZT0_In, ZT0_Out, ZT0_InOut & ZT0_Preserved are all considered to share ZT0. These attributes will be required by later patches to determine if ZT0 should be preserved around function calls, or cleared on entry to the function.
-
Nick Desaulniers authored
While trying to enable -Werror (#74506), the 32b ARM build bot reported an error stemming from -Wshorten-64-to-32 related to usages of `off_t`. I failed to fix these properly in #77350 (the 32b ARM build is not a fullbuild) and #77396. It turns out, the preprocessor defines `-D_LARGEFILE_SOURCE` and `-D_FILE_OFFSET_BITS=64` were being set for llvmlibc when using the cmake build system. In particular, these preprocessor defines are feature test macros used by glibc, and which have effects no the corresponding ABI for types like `off_t` (for instance, should `off_t` be 32b or 64b on 32b targets). But who was setting these? Turns out that the use of add_compile_definitions in llvm/cmake/modules/HandleLLVMOptions.cmake was setting these (and more), which is then inherited by every subdirectory. While some of these defines maybe make sense for host builds, they do not make sense for libraries for the target. The full list of defines being set prior to this commit: - `-D_GNU_SOURCE` - `-D_FILE_OFFSET_BITS=64` - `-D_DEBUG` - `-D_GLIBCXX_ASSERTIONS` - `-D_LARGEFILE_SOURCE` - `-D_FILE_OFFSET_BITS=64` - `-D__STDC_CONSTANT_MACROS` - `-D__STDC_FORMAT_MACROS` - `-D__STDC_LIMIT_MACROS` If we desire any of the above, we should manually reset them. Fix this by resetting COMPILE_DEFINITIONS for the libc/ subdirectory. Side note: to debug 'directory properties' in cmake, you first need to use `get_directory_property` to fetch the corresponding value into a variable first, then that variable can be printed via `message`. Link: https://www.gnu.org/software/libc/manual/html_node/Feature-Test-Macros.html#index-_005fFILE_005fOFFSET_005fBITS Link: https://www.gnu.org/software/libc/manual/html_node/Feature-Test-Macros.html#index-_005fFILE_005fOFFSET_005fBITS Fixes: #77395
-
Julian Schmidt authored
Adds support for the following matchers related to `CXXFoldExpr`: `cxxFoldExpr`, `callee`, `hasInit`, `hasPattern`, `isRightFold`, `isLeftFold`, `isUnaryFold`, `isBinaryFold`, `hasOperator`, `hasLHS`, `hasRHS`.
-
LLVM GN Syncbot authored
-