- Jul 17, 2023
-
-
Nimish Mishra authored
Fixes https://github.com/llvm/llvm-project/issues/61089 by updating the verification followed like translation from OpenMP+LLVM MLIR dialect to LLVM IR. Reviewed By: kiranchandramohan Differential Revision: https://reviews.llvm.org/D153217
-
Aaron Ballman authored
This addresses the issues accidentally introduced in b0697a1c
-
Timm Bäder authored
-
Weining Lu authored
Reviewed By: MaskRay Differential Revision: https://reviews.llvm.org/D155163
-
Matthias Springer authored
* Move passes to `Transforms` directory. * Add `Utils.h` (will be utilized in a subsequent change). Differential Revision: https://reviews.llvm.org/D155427
-
Jay Foad authored
This is the target definition only. Currently they are treated the same as GFX 11.0.x. Differential Revision: https://reviews.llvm.org/D155429
-
Timm Bäder authored
We don't have any code to point at here, so the diagnostics would just point to the record declaration. Make them point to the call site intead. Differential Revision: https://reviews.llvm.org/D154761
-
Jay Foad authored
Preserve the test case from this abandoned review: D51925 [AMDGPU] Fix issue for zext of f16 to i32
-
Guillaume Chatelet authored
This is a follow up on D154800 and D154770 to make the code structure more principled and avoid too many nested #ifdef/#endif. Reviewed By: courbet Differential Revision: https://reviews.llvm.org/D155181
-
Simi Pallipurath authored
We are trying to build the compiler-rt as big-endian. And found that the tests compiler-rt/test/builtins/Unit/arm/aeabi_cdcmpeq_test.c and compiler-rt/test/builtins/Unit/arm/aeabi_cfcmpeq_test.c do not work on big endian at the moment. This patch makes these tests work on big endian as well. Reviewed By: peter.smith, simon_tatham Differential Revision: https://reviews.llvm.org/D155208
-
Guillaume Chatelet authored
This is a follow up on D154800 and D154770 to make the code structure more principled and avoid too many nested #ifdef/#endif. Reviewed By: courbet Differential Revision: https://reviews.llvm.org/D155174
-
Jakub Chlanda authored
This is to address a static analizer warning: The pointer field will point to an arbitrary memory location, any attempt to write may cause corruption. In <unnamed> R600DAGToDAGISel.:R600DAGToDAGISel (llvm::TargetMachine &, livm::CodeGenOpt::Level): A pointer field is not initialized in the constructor (CWE-457) Differential Revision: https://reviews.llvm.org/D154414
-
David Green authored
-
Simon Pilgrim authored
If somehow a vXi64 bool sign_extend_inreg pattern has been lowered to vector shifts (without PSRAQ support), then try to canonicalize to vXi32 shifts to improve likelihood of value tracking being able to fold them away. Using a PSLLQ and bitcasted PSRAD node make it very difficult for later fold to recover from this.
-
Nuno Lopes authored
This is used for masked out lanes, that are replaced with the passthrough value
-
Oleg Shyshkov authored
-
David Spickett authored
"sme" is just one of many cpuinfo features for SME but it's the only one we need for testing. The rest are related to the use of certain instructions and don't change the register state available. Reviewed By: omjavaid Differential Revision: https://reviews.llvm.org/D154823
-
Sander de Smalen authored
The AArch64Subtarget interface 'isNeonAvailable' is more appropriate going forward, as we may also want to generate 'streaming SVE' code (not just 'streaming-compatible SVE' code), but here we must still make sure not to use NEON instructions which are invalid in streaming SVE mode.
-
David Sherwood authored
When doing a masked load of an illegal unpacked type and then zero-extending to some illegal wider types we sometimes end up with pointless 'and' instructions that are trying to zero bits that we already know are zero. This patch fixes that by adding more cases to performSVEAndCombine. Differential Revision: https://reviews.llvm.org/D155281
-
Luke Lau authored
This follows the pattern of lowering VP nodes to equivalent RISCVISD::*_VL nodes. The nodes are modelled after the VP ISD nodes rather than the actual zvbb instructions, and I've included a merge operand to be consistent with the underlying pseudos that were recently refactored. I've defined the nodes in RISCVInstrInfoVVLpatterns.td as the nodes aren't Zvk specific, but the patterns are in RISCVInstrInfoZvk.td. Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D155229
-
Luke Lau authored
The zvbb extension predicate was getting overwritten by the vtype predicates. There's no change in the tests though because the ISD nodes were getting expanded before instruction selection. Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D155313
-
Matthias Gehre authored
reshape(reshape(x)) -> reshape(x) can be directly written as a fold instead of a canonicalization, to help other passes cleanup while they work. This initially broke ReshapeConverterExpand/Collapse, which relies on creating foldable reshapes and a carefully crafted benefit priority of patterns. I turned this into a single pattern on reshapes, which does expand and/or collapse as needed in one go. Differential Revision: https://reviews.llvm.org/D155266
-
David Spickett authored
This test runs to a breakpoint on thread 0. Thread 0 then starts thread 2 and 3, which both have breakpoints in them. In https://lab.llvm.org/buildbot/#/builders/96/builds/41674 I think that we managed to do the first check on thread 2 before thread 3 had started. Therefore "thread continue 3" failed. So wait for all three to startup before we check their status. I considered putting a timeout on the while like the wait_for... methods, but the test itself already has a global timeout. Plus, I'd rather not be tuning a timeout per piece of hardware this runs on. 99% of the time we will already have 3 threads when the check is done. Reviewed By: omjavaid Differential Revision: https://reviews.llvm.org/D154705
-
Sergio Afonso authored
This patch adds support for selecting which functions are lowered to LLVM IR from MLIR depending on declare target information and whether host or device code is being generated. The approach proposed by this patch is to perform the filtering in two stages: - An MLIR transformation pass, which is added to the Flang translation flow after the `OMPEarlyOutliningPass`. The functions that are kept are those that match the OpenMP processor (host or device) the compiler invocation is targeting, according to the presence of the `-fopenmp-is-target-device` compiler option and declare target information. All functions contaning an `omp.target` are also kept, regardless of the declare target information of the function, due to the need for keeping target regions visible for both host and device compilation. - A filtering step during translation to LLVM IR, which is peformed for those functions that ... -
David Sherwood authored
This patch adds test cases for extending masked loads of illegal unpacked types into illegal wider types. Pre-commits tests for D155281
-
Sylvestre Ledru authored
``` -- Performing additional configure checks with target flags: -mips32r2;-mabi=32;-D_LARGEFILE_SOURCE;-D_FILE_OFFSET_BITS=64 -- Performing Test COMPILER_RT_HAS_mips_FLOAT16 CMake Error: Parse error in command line argument: _LARGEFILE_SOURCE Should be: VAR:type=value ``` See: https://buildd.debian.org/status/fetch.php?pkg=llvm-toolchain-16&arch=mips64el&ver=1%3A16.0.6-4&stamp=1689111818&raw=0 Differential Revision: https://reviews.llvm.org/D155409
-
Serge Pavlov authored
Commit 98390ccb fixed late template instantiation by clearing FP pragma stack before instantiation. This solution was based on the assumptions: - FP pragma stack is not used anymore and it is safe to clear it, - Default FP options are determined by command line options. Both the assumptions are wrong. When compilation produces precompiled header file, state of the stack is serialized and then restored when the precompiled header is used. Delayed template parsing occurs at the end of translation unit but before serialization, so clearing FP pragma stack effects serialized representation. When the precompiled file is loaded, some conditions can be broken and clang crashed, it was described in https://github.com/llvm/llvm-project/issues/63704. The crash was observed only in few cases, on most buildbots it was absent. The violation of expected conditions was caused by violation of the second assumption. FPEvalMethod can be modified by target, so it is not possible to deduce it from LangOptions only. So default FP state read from precompiled header was different from the state in the initialized Sema, and this was the crash reason. Only two targets do such modification of default FP options, these are i386 and AIX. so the problem was hard to reproduce. Delayed template parsing should occur with empty pragma stack, so it must be cleared before the instantiation, but the stack now is saved and restored after the instantiation is done. This change should fix https://github.com/llvm/llvm-project/issues/63704. Differential Revision: https://reviews.llvm.org/D155380
-
MarcoFalke authored
This makes the implicit conversion that is happening explicit. Otherwise, each user is forced to suppress this implicit-integer-sign-change runtime error in their their UBSAN suppressions file. For example, the runtime error might look like: runtime error: implicit conversion from type 'long' of value -9223372036854775808 (64-bit, signed) to type 'uint64_t' (aka 'unsigned long') changed the value to 9223372036854775808 (64-bit, unsigned) #0 0x55fe29dea91d in long FuzzedDataProvider::ConsumeIntegralInRange<long>(long, long) src/./test/fuzz/FuzzedDataProvider.h:233:25 [...] SUMMARY: UndefinedBehaviorSanitizer: implicit-integer-sign-change test/fuzz/FuzzedDataProvider.h:233:25 in Differential Revision: https://reviews.llvm.org/D155206 -
Martin Braenne authored
Besides being a useful abstraction, this function will help insulate existing clients of the framework from upcoming changes to the API of `StructValue` and `AggregateStorageLocation`. Depends On D155202 Reviewed By: ymandel, xazax.hun Differential Revision: https://reviews.llvm.org/D155204
-
Martin Braenne authored
The argument and return value of `std::forward` is always a reference, so we can simply forward the storage location. Depends On D155075 Reviewed By: ymandel, gribozavr2, xazax.hun Differential Revision: https://reviews.llvm.org/D155202
-
Martin Braenne authored
This consolidates the code used in various places to initialize objects (usually for variables) into one central location. It will also help reduce the number of changes needed when we make the upcoming API changes to `AggregateStorageLocation` and `StructValue`. Depends On D155074 Reviewed By: ymandel, xazax.hun Differential Revision: https://reviews.llvm.org/D155075
-
Martin Braenne authored
Reviewed By: ymandel Differential Revision: https://reviews.llvm.org/D155074
-
Martin Storsjö authored
With the new behaviour, the /MD or similar options aren't added to e.g. CMAKE_CXX_FLAGS_RELEASE, but are added separately by CMake. They can be changed by the cmake variable CMAKE_MSVC_RUNTIME_LIBRARY or with the target property MSVC_RUNTIME_LIBRARY. LLVM has had its own custom CMake flags, e.g. LLVM_USE_CRT_RELEASE, which affects which CRT is used for release mode builds. Deprecate these and direct users to use CMAKE_MSVC_RUNTIME_LIBRARY directly instead (and do a best effort attempt at setting CMAKE_MSVC_RUNTIME_LIBRARY based on the existing LLVM_USE_CRT_ flags). This only handles the simple cases, it doesn't handle multi-config generators with different LLVM_USE_CRT_* variables for different configs though, but that's probably fine - we should move over to the new upstream CMake mechanism anyway, and push users towards that. Change code in compiler-rt, that previously tried to override the CRT choice to /MT, to set CMAKE_MSVC_RUNTIME_LIBRARY instead of meddling in the old variables. This resolves the policy issue in https://github.com/llvm/llvm-project/issues/63286, and should handle the issues that were observed originally when the minimum CMake version was bumped, in https://github.com/llvm/llvm-project/issues/62719 and https://github.com/llvm/llvm-project/issues/62739. Differential Revision: https://reviews.llvm.org/D155233
-
Markus Böck authored
This is essentially a follow up to https://reviews.llvm.org/D155072 This adds support for also passing properties as `ref` parameter to `custom`. This requires the property to have been bound previously and will error otherwise. This makes it possible for an implementation of `custom` to take previously parsed data into account, creating nice context-dependent grammars :-) Differential Revision: https://reviews.llvm.org/D155297
-
Piotr Zegar authored
Add missing : character to links in release notes so they could shown properly.
-
Evan Wilde authored
There were two whitespaces on an otherwise empty that were causing the bots to fail due to formatting issues. Deleting extra whitespace now.
-
LLVM GN Syncbot authored
-
Shivam Gupta authored
While clang warns about a possibly incomplete switch statement when switching over an enum variable and failing to cover all enum values (either explicitly or with a default case), no such warning is emitted if a plain integer variable is used as switch variable. Add a clang-tidy check to diagnose these scenarios. No fixit hint is provided since there are multiple possible solutions. Differential Revision: https://reviews.llvm.org/D4784
-
Piyou Chen authored
We add the MemOperand then backend will generate NTLH automatically. ``` __builtin_prefetch(ptr, 0 /* rw==read */, 0 /* locality */); => ntl.all + prefetch.r (ptr) __builtin_prefetch(ptr, 0 /* rw==read */, 1 /* locality */); => ntl.pall + prefetch.r (ptr) __builtin_prefetch(ptr, 0 /* rw==read */, 2 /* locality */); => ntl.p1 + prefetch.r (ptr) __builtin_prefetch(ptr, 0 /* rw==read */, 3 /* locality */); => prefetch.r (ptr) ``` Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D154691
-
Craig Topper authored
Instead of checking '!Zfh && Zhfmin' first, handle Zfh. Then assert that the other case is F+Zfhmin. The F+Zfhmin check will need to be relaxed for bfloat16 support. As it was written before there would be now error to catch that. Instead it would just silently create fsgnj.h instructions.
-