- Mar 07, 2022
-
-
Jan Svoboda authored
This patch simplifies a test that checks only used module map files are reported as input files in PCM files. Instead of using opaque `diff`, this patch uses `clang -module-file-info` and `FileCheck` to verify this. Reviewed By: dexonsmith Differential Revision: https://reviews.llvm.org/D120463
-
Timm Bäder authored
It's almost always entirely unused and if it is used, the end of the attribute range can be used instead. Differential Revision: https://reviews.llvm.org/D120888
-
Qiu Chaofan authored
Currently in Clang, we have two types of builtins for fnmsub operation: one for float/double vector, they'll be transformed into IR operations; one for float/double scalar, they'll generate corresponding intrinsics. But for the vector version of builtin, the 3 op chain may be recognized as expensive by some passes (like early cse). We need some way to keep the fnmsub form until code generation. This patch introduces ppc.fnmsub.* intrinsic to unify four fnmsub intrinsics. Reviewed By: shchenz Differential Revision: https://reviews.llvm.org/D116015
-
William S. Moses authored
The OpenMPIRBuilder has a bug. Specifically, suppose you have two nested openmp parallel regions (writing with MLIR for ease) ``` omp.parallel { %a = ... omp.parallel { use(%a) } } ``` As OpenMP only permits pointer-like inputs, the builder will wrap all of the inputs into a stack allocation, and then pass this allocation to the inner parallel. For example, we would want to get something like the following: ``` omp.parallel { %a = ... %tmp = alloc store %tmp[] = %a kmpc_fork(outlined, %tmp) } ``` However, in practice, this is not what currently occurs in the context of nested parallel regions. Specifically to the OpenMPIRBuilder, the entirety of the function (at the LLVM level) is currently inlined with blocks marking the corresponding start and end of each region. ``` entry: ... parallel1: %a = ... ... parallel2: use(%a) ... endparallel2: ... endparallel1: ... ``` When the allocation is inserted, it presently inserted into the parent of the entire function (e.g. entry) rather than the parent allocation scope to the function being outlined. If we were outlining parallel2, the corresponding alloca location would be parallel1. This causes a variety of bugs, including https://github.com/llvm/llvm-project/issues/54165 as one example. This PR allows the stack allocation to be created at the correct allocation block, and thus remedies such issues. Reviewed By: jdoerfert Differential Revision: https://reviews.llvm.org/D121061
-
- Mar 06, 2022
-
-
mydeveloperday authored
A 1% increase in the number of clang-formatted files. An additional 530 files have been added to LLVM, and an additional 450 files are now clang-format clean. Raising the overall % to 53% There are now 8857 files clean out of 16432 (ignoring lit tests)
-
Jun Zhang authored
-
- Mar 05, 2022
-
-
owenca authored
Differential Revision: https://reviews.llvm.org/D121042
-
Benjamin Kramer authored
This removes a 30 kB global initializer. NFCI.
-
Benjamin Kramer authored
-
mydeveloperday authored
https://github.com/llvm/llvm-project/issues/53981 Reorder the qualifiers inside the template argument. This should handle the simple cases of ``` <const T> <T const> ``` But only by relaxing that single letter capital variables are not possible macros Fixes: #53981 Reviewed By: HazardyKnusperkeks, curdeius Differential Revision: https://reviews.llvm.org/D120710
-
Benjamin Kramer authored
LLVM optimizes this into a bit test. NFCI.
-
Corentin Jabot authored
-
Shao-Ce SUN authored
Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D112774
-
Thomas Lively authored
-
Vladimir Vereschaka authored
[CMake] Replace `TARGET_TRIPLE` with `TOOLCHAIN_TARGET_TRIPLE` for Win-to-Arm cross toolchain cache file. NFC. Avoid using TARGET_TRIPLE argument for the cross toolchain cmake cache file and replace it with TOOLCHAIN_TARGET_TRIPLE. Reference: https://reviews.llvm.org/D119918 Differential Revision: https://reviews.llvm.org/D121029
-
Thomas Lively authored
We previously had logic to disable pthreads, set the ThreadModel to Single, and disable thread-safe statics when the atomics target features is disabled, since that means that the resulting program will not be used in a threaded context. Similarly check for the presence of the bulk-memory feature, since that is also necessary to produce multithreaded programs. Differential Revision: https://reviews.llvm.org/D121014
-
Zequan Wu authored
Originally filed at crbug.com/1184570. When the name of a namespace is a macro that takes arguments, - It fixed the indentation. - It fixed the namepsace end comments. Differential Revision: https://reviews.llvm.org/D120931
-
Andrew Browne authored
-
- Mar 04, 2022
-
-
Yaxun (Sam) Liu authored
Update active offload kind of actions for OpenMP programs. The change is expected as of e5eb3650.
-
Yaxun (Sam) Liu authored
When both CUDA or HIP programs and C++ programs are passed to clang driver without -c, C++ programs are treated as CUDA or HIP program, which is incorrect. This is because action builder sets the offloading kind of input job actions to the linking action to be the union of offloading kind of the input job actions, i.e. if there is one HIP or CUDA input to the linker, then all the input to the linker is marked as HIP or CUDA. To fix this issue, the offload action builder tracks the originating input argument of each host action, which allows it to determine the active offload kind of each host action. Then the offload kind of each input action to the linker can be determined individually. Reviewed by: Artem Belevich Differential Revision: https://reviews.llvm.org/D120911
-
Yaxun (Sam) Liu authored
When both HIP and C++ programs are input files to clang with -c, clang treats C++ programs as HIP programs, which is incorrect. This is due to action builder does not set correct offloading kind for job actions for C++ programs. Reviewed by: Artem Belevich Differential Revision: https://reviews.llvm.org/D120910
-
Paul Robinson authored
This allows using GTEST_SKIP() to identify un-executed tests. Found by the Rotten Green Tests project.
-
Richard authored
Differential Revision: https://reviews.llvm.org/D120947
-
Arthur O'Dwyer authored
Fixes #49188. Differential Revision: https://reviews.llvm.org/D119184
-
Arthur O'Dwyer authored
Reviewed as part of D119184.
-
Yitzhak Mandelbaum authored
Adds `MatchSwitch`, a library for simplifying implementation of transfer functions. `MatchSwitch` supports constructing a "switch" statement, where each case of the switch is defined by an AST matcher. The cases are considered in order, like pattern matching in functional languages. Differential Revision: https://reviews.llvm.org/D120900
-
Yitzhak Mandelbaum authored
This patch adds a simpe lattice used to collect source loctions. An intended application is to track errors found in code during an analysis. Differential Revision: https://reviews.llvm.org/D120890
-
Aaron Ballman authored
Revert "[analyzer] Done some changes to detect Uninitialized read by the char array manipulation functions" This reverts commit 9c300c18. This broke the sphinx bot and seems like an unintentional commit.
-
4vtomat authored
This commit divides the large test files(over 30k lines) under clang/test/CodeGen/RISCV including: rvv-intrinsics/vloxseg.c rvv-intrinsics/vluxseg.c rvv-intrinsics-overloaded/vloxseg.c rvv-intrinsics-overloaded/vluxseg.c into "non-masked" version and "masked" version which can reduce the test cases by 50% in a single file. Differential Revision: https://reviews.llvm.org/D120967
-
Florian Hahn authored
This test file has grown to the point where it takes a huge amount of time to run. At the moment, this test seems to consistently time out when running in the pre-commit checks in Phabricator with a 10 minute timeout. For example see https://reviews.llvm.org/harbormaster/unit/view/2832724/ While splitting up the test file is not ideal, it is even more undesirable to have huge test files that time out in common settings. This patch splits up the test file roughly in the middle. Reviewed By: dmgreen Differential Revision: https://reviews.llvm.org/D120876
-
Florian Hahn authored
This test file has grown to the point where it takes a huge amount of time to run. At the moment, this test seems to consistently time out when running in the pre-commit checks in Phabricator with a 10 minute timeout. For example see https://reviews.llvm.org/harbormaster/unit/view/2832723/ While splitting up the test file is not ideal, it is even more undesirable to have huge test files that time out in common settings. This patch splits up the test file roughly in the middle. Reviewed By: dmgreen Differential Revision: https://reviews.llvm.org/D120875
-
Tim Northover authored
The baremetal-sysroot test fails when the toolchain is configured with DEFAULT_SYSROOT. So, to emulate not having passed one at all, let's pass an empty sysroot instead. https://reviews.llvm.org/D119144 Patch by Carlo Cabrera <carlo.antonio.cabrera@gmail.com>
-
phyBrackets authored
Few weeks back I was experimenting with reading the uninitialized values from src , which is actually a bug but the CSA seems to give up at that point . I was curious about that and I pinged @steakhal on the discord and according to him this seems to be a genuine issue and needs to be fix. So I goes with fixing this bug and thanks to @steakhal who help me creating this patch. This feature seems to break some tests but this was the genuine problem and the broken tests also needs to fix in certain manner. I add a test but yeah we need more tests,I'll try to add more tests.Thanks Reviewed By: steakhal, NoQ Differential Revision: https://reviews.llvm.org/D120489
-
Shoaib Meenai authored
Our "strings" were actually bytes, which made verbose dumping fail. Decode them so they actually become strings. Reviewed By: bruno Differential Revision: https://reviews.llvm.org/D118005
-
Shoaib Meenai authored
It was complaining about too many values to unpack, since our struct unpack format string specified six members, but we only had five variables to unpack to. The sixth value is the max value length, but it's not used in dumping, so we can ignore it. Reviewed By: bruno Differential Revision: https://reviews.llvm.org/D118004
-
- Mar 03, 2022
-
-
Vladimir Vereschaka authored
Removed passing CMAKE_AR from the library configurations.
-
Aaron Ballman authored
-
Erich Keane authored
This is a Sema function that now no longer depends on any of the functionality in SemaTemplateInstantiateDecl.cpp (as the static function was moved to Sema in a previous NFC). Moving it to SemaConcept means that it and CheckFunctionConstraints can be changed to share more.
-
Shivam authored
Few weeks back I was experimenting with reading the uninitialized values from src , which is actually a bug but the CSA seems to give up at that point . I was curious about that and I pinged @steakhal on the discord and according to him this seems to be a genuine issue and needs to be fix. So I goes with fixing this bug and thanks to @steakhal who help me creating this patch. This feature seems to break some tests but this was the genuine problem and the broken tests also needs to fix in certain manner. I add a test but yeah we need more tests,I'll try to add more tests.Thanks Reviewed By: steakhal, NoQ Differential Revision: https://reviews.llvm.org/D120489
-
Shivam authored
Few weeks back I was experimenting with reading the uninitialized values from src , which is actually a bug but the CSA seems to give up at that point . I was curious about that and I pinged @steakhal on the discord and according to him this seems to be a genuine issue and needs to be fix. So I goes with fixing this bug and thanks to @steakhal who help me creating this patch. This feature seems to break some tests but this was the genuine problem and the broken tests also needs to fix in certain manner. I add a test but yeah we need more tests,I'll try to add more tests.Thanks Reviewed By: steakhal, NoQ Differential Revision: https://reviews.llvm.org/D120489
-