- Jul 18, 2023
-
-
Matt Arsenault authored
-
Fangrui Song authored
While Clang targets have supported __builtin_thread_pointer for a very long time (e.g., 2007 for AArch32, 2015 for AArch64), for some GCC ports, the support is very new (11.0 for x86[1], while we need to support GCC 7), and many ports haven't implemented __builtin_thread_pointer yet (m68k, powerpc, etc). [1]: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96955
-
Johannes Doerfert authored
-
Daniel Thornburgh authored
The test fails on some builders but not on others; there's likely some kind of environment dependence that should be investigated. See https://reviews.llvm.org/D155317
-
AdityaK authored
Reviewers: enh, pirama, srhines, asb Differential Revision: https://reviews.llvm.org/D155339
-
Arthur Eubanks authored
This reverts commit 702a4d89. Can break calling convention restrictions.
-
Michael Maitland authored
BEXT and BEXTI may behave differently from other Zbs instructions. Split the write classes so these differences may be modeled by scheduler models. Differential Revision: https://reviews.llvm.org/D155476
-
Arthur Eubanks authored
-
Evandro Menezes authored
Add the scheduling model for Neoverse V1. Differential revision: https://reviews.llvm.org/D154756
-
Louis Dionne authored
The empty.sh.cpp test never tested what it was intended to test, because it did contain an unexpected RUN: command. This was discovered in https://reviews.llvm.org/D154987 while trying to land an unrelated change. Since there is no reliable way to test what I was trying to test from the libc++ test suite, just remove the test.
-
Arthur Eubanks authored
-
Nick Desaulniers authored
Reading this code, I noticed that we call findMatInsertPt a lot, for the same inputs. Calculate it once and save the result. Reviewed By: MaskRay Differential Revision: https://reviews.llvm.org/D155237
-
Louis Dionne authored
This provides better error messages when the program terminates due to an exception being thrown in -fno-exceptions mode. Those seem to have been missed in https://reviews.llvm.org/D141222. Differential Revision: https://reviews.llvm.org/D154995
-
Louis Dionne authored
This option had originally been added in D83069 to allow disabling the check that something is going to get run at all when a specific test name is used on the command-line. Since we now use getTestsForPath() (from D151664) to get the tests to run for a specific path, we don't need a specific check for this anymore -- Lit will produce the same complaint it would produce if you provided a directory with no tests. If one needs to run a specific test on the command-line and the Lit configuration would normally not include that test, the configuration should be set up as a "standalone" configuration or it should be fixed to allow for that test to be found (i.e. probably fix the allowed test suffixes). Differential Revision: https://reviews.llvm.org/D153967
-
Arthur Eubanks authored
This reverts commit 0d21b7cb. Causes broken IR, test case provided at https://reviews.llvm.org/rG0d21b7cbdeb2f2eb5ef123a15099da0b651b24c0
-
Nick Desaulniers authored
We pack this info in a tuple just to spread it back out for a function call. Spreads in C++ are awkward. If I want to add an additional element to the tuple, I need to add more calls to std::get<> later. Just use a struct. Reviewed By: void Differential Revision: https://reviews.llvm.org/D155236
-
Matt Arsenault authored
-
Matt Arsenault authored
Special casing the nonfinite exponent value everywhere is kind of annoying.
-
Matt Arsenault authored
Handle constant folding and idempotent folding. Not sure this is an appropriate use of undef for the inf/nan case. The C version says the second result is "unspecified". The AMDGPU instruction returns 0.
-
Matt Arsenault authored
-
Matt Arsenault authored
Fixes regression reported after 0f4eb557
-
Anna Thomas authored
Identified another miscompile while working on fixing interleaving's current miscompile in D154309. This is different from testcases landed in D154309, since it showcases an incorrect sinking of store (the former testcases in that review and follow-up ones) showed incorrect hoisting of loads across stores.
-
Alexey Bataev authored
Transformed if checks to asserts and simplified some more code to improve compile time.
-
Rob Suderman authored
Linalg operations can include `complex` types in the src/target types. This should include conversion between `arith` and `complex` types when constructing `linalg` operations. Reviewed By: kuhar Differential Revision: https://reviews.llvm.org/D154740
-
Paul Robinson authored
Instead of warning possibly up to 3 times about the same problem, warn only about the actual missing directories. This reverts commit 9b3323d3. The warning will stay DefaultIgnore upstream, because a variety of tests aren't expecting it and updating the tests isn't worth the effort.
-
Jan Svoboda authored
Before D150478, there were situations when Clang avoided parsing a module map because it was likely to re-define an already defined module (either by a PCM or by previously-found module map). Since Clang no longer performs that check and does parse the extra module map (due to the FW/FW_Private issue described in D150478), this patch re-implements the same semantics by skipping the duplicate definition of the framework module while parsing the module map. Depends on D150478. Reviewed By: benlangmuir Differential Revision: https://reviews.llvm.org/D150479
-
Jan Svoboda authored
When Clang loads a PCM that depends on another PCM describing framework module "FW", `ModuleMap` registers "FW" as known, without seeing the module map that defines it (or the adjacent "FW_Private" module map). Later, when looking at a header from "FW_Private", `ModuleMap` returns early due to having knowledge about "FW" and never associates that header with "FW_Private", leading to it being treated as textual. This behavior is caused by D150292, where the scanner stops calling `HeaderSearch::lookupModule()` eagerly for every loaded PCM. This patch skips an early check when trying to figure out the framework module for a header, which ensures the "FW" and (most importantly) "FW_Private" module maps can be parsed even after loading "FW" from a PCM. Note that the `HeaderSearch::loadModuleMapFile()` function we not call unconditionally has caching behavior of its own, meaning it will avoid parsing module map file repeatedly. Depends on D150320. Reviewed By: benlangmuir Differential Revision: https://reviews.llvm.org/D150478
-
Jan Svoboda authored
Currently, `ASTReader` performs some checks to diagnose relocated modules. This can add quite a bit of overhead to the scanner: it requires looking up, parsing and resolving module maps for all transitively loaded module files (and all the module maps encountered in the search paths on the way). Most of those checks are not really useful in the scanner anyway, since it uses strict context hash and immutable filesystem, which prevent those scenarios in the first place. This can speed up scanning by up to 30%. Depends on D150292. Reviewed By: benlangmuir Differential Revision: https://reviews.llvm.org/D150320
-
Jan Svoboda authored
This is a prep patch for avoiding the quadratic number of calls to `HeaderSearch::lookupModule()` in `ASTReader` for each (transitively) loaded PCM file. (Specifically in the context of `clang-scan-deps`). This patch explicitly serializes `Module::DefinitionLoc` so that we can stop relying on it being filled by the module map parser. This change also required change to the module map parser, where we used the absence of `DefinitionLoc` to determine whether a file came from a PCM file. We also need to make sure we consider the "containing" module map affecting when writing a PCM, so that it's not stripped during serialization, which ensures `DefinitionLoc` still ends up pointing to the correct offset. This is intended to be a NFC change. Reviewed By: benlangmuir Differential Revision: https://reviews.llvm.org/D150292
-
Siu Chi Chan authored
When compiling in device only mode (e.g. --offload-device-only), the host linker phase would not happen and therefore, the driver should ignore all the host linker flags. Differential Revision: https://reviews.llvm.org/D154881 Change-Id: I8244acef5c33108cf15b1dbb188f974f30099718
-
Valentin Clement authored
Add test for simple scalar allocatable or pointer. Set up the TODO to be triggered when the allocatable or pointer are arrays. Support for pointer/allocatable arrays will come next. Reviewed By: razvanlupusoru Differential Revision: https://reviews.llvm.org/D155230
-
Cassie Jones authored
Sometimes users pass this option when targeting embedded architectures like armv7m on non-darwin platforms. This applies to watchOS and tvOS as well as iOS. Depends on D155407 Reviewed By: MaskRay, ahatanak Differential Revision: https://reviews.llvm.org/D155408
-
Nikolas Klauser authored
-
Louis Dionne authored
This makes __threading_support contain nothing but the base threading API provided by the system. Differential Revision: https://reviews.llvm.org/D155458
-
Valentin Clement authored
Lowering for reduction with dynamic shaped arrays is not implemented yet. Add a proper TODO for the time being. Reviewed By: razvanlupusoru Differential Revision: https://reviews.llvm.org/D155324
-
Peter Klausler authored
Fix some problems with INCLUDE line recognition pointed out by some recently-added tests to the LLVM test suite. Differential Revision: https://reviews.llvm.org/D155497
-
Alex Langford authored
Differential Revision: https://reviews.llvm.org/D155030
-
Yaxun (Sam) Liu authored
Rename HIP_API_PER_THREAD_DEFAULT_STREAM and __HIP_NO_IMAGE_SUPPORT so that they follow the convention with prefix and postfix __. Reviewed by: Artem Belevich Differential Revision: https://reviews.llvm.org/D155480
-
Peter Klausler authored
It is not standard conforming under IMPLICIT NONE(TYPE) for a name to appear in a DATA statement prior to its explicit type declaration, but it is benign, supported in other compilers, and attested in real applications. Support it with an optional portability warning. Fixes GitHub LLVM bug https://github.com/llvm/llvm-project/issues/63783.
-
Peter Klausler authored
Don't emit bogus compile-time error messages about out-of-range values for the DIM= argument to LBOUND/BOUND when the array in question is an assumed-rank dummy array argument. Differential Revision: https://reviews.llvm.org/D155494
-