- Dec 04, 2020
-
-
Anna Thomas authored
-
Fangrui Song authored
There is a library layering issue. LLVMAnalysis provides llvm/Analysis/ScopedNoAliasAA.h and depends on LLVMCore. LLVMCore provides llvm/IR/Metadata.cpp and it should not include a header file in LLVMAnalysis
-
Mehdi Amini authored
This fixes the build on gcc5 toolchain where sizeof is required for types used in SmallVector now. This is a consequence of using std::is_trivially_copy_constructible instead of the LLVM variant: https://reviews.llvm.org/D92543
-
LLVM GN Syncbot authored
-
Mehdi Amini authored
This reduces the chances of segfault. While it is a good practice to ensure robust custom printers, it is unfortunately common to have them crash on invalid input. Reviewed By: stellaraccident Differential Revision: https://reviews.llvm.org/D92536
-
Nico Weber authored
-
Nico Weber authored
-
Stella Stamenova authored
Right now, the regex expression will fail if the flags were not set. Instead, we should follow the pattern of other llvm projects and quote the expression, so that it can work even when the flags are not set. Reviewed By: phosek Differential Revision: https://reviews.llvm.org/D92586
-
Reid Kleckner authored
LLVM passes overaligned objects by value, which MSVC 19.1 didn't support on x86_32. MSVC added this support somewhere between 19.1 and 19.14, but godbolt doesn't have 19.11, 19.12, or 19.13 so I can't test before 19.14: https://gcc.godbolt.org/z/75YoEz Even if users are using the Visual Studio 2017 series of Visual C++ toolchains, they should've already updated to 19.14 or newer at this point, or they wouldn't be able to build LLVM. This just raises the CMake required minimum version so the build fails earlier. Differential Revision: https://reviews.llvm.org/D92515
-
Craig Topper authored
Internally the pass skips any function with the optnone attribute. But that still requires checking each function. If the opt level is set to None we might as well just skip putting in the pipeline at all. This what is already done for many of the passes added by TargetPassConfig. Differential Revision: https://reviews.llvm.org/D92511
-
Max Kudryavtsev authored
Supervectorizer pass uses this builder and loses the permutation map. Reviewed By: nicolasvasilache Differential Revision: https://reviews.llvm.org/D92145
-
modimo authored
When MemCpyOpt performs call slot optimization it will concatenate the `alias.scope` metadata between the function call and the memcpy. However, scoped AA relies on the domains in metadata to be maintained in a caller-callee relationship. Naive concatenation breaks this assumption leading to bad AA results. The fix is to take the intersection of domains then union the scopes within those domains. The original bug came from a case of rust bad codegen which uses this bad aliasing to perform additional memcpy optimizations. As show in the added test case `%src` got forwarded past its lifetime leading to a dereference of garbage data. Testing ninja check-llvm Reviewed By: jeroen.dobbelaere Differential Revision: https://reviews.llvm.org/D91576
-
Fangrui Song authored
Differential Revision: https://reviews.llvm.org/D92543
-
Kazu Hirata authored
This patch removes the variants of DecodeVPERMVMask and DecodeVPERMV3Mask that take "const Constant *C" as they are not used anymore. They were introduced on Sep 8, 2015 in commit e88038f2. The last use of DecodeVPERMVMask(const Constant *C, ...) was removed on Feb 7, 2016 in commit 73fc26b4. The last use of DecodeVPERMV3Mask(const Constant *C, ...) was removed on May 28, 2018 in commit dcfcfdb0. Differential Revision: https://reviews.llvm.org/D91926
-
Jameson Nash authored
This is needed for cross-compiling LLVM from Cygwin, but it had gotten deleted in rG2724d9e1 Reviewed By: compnerd Differential Revision: https://reviews.llvm.org/D92336
-
Anna Thomas authored
This will make it easier to add new PM support once the pass is moved into transforms (D92407).
-
Valentin Clement authored
Add unit tests for functions in LLVMFrontendOpenACC. As notice in D91470 these functions were not tested as well as the ones for OpenMP (D91643). This patch add tests for the OpenACC part. Reviewed By: Meinersbur Differential Revision: https://reviews.llvm.org/D91653
-
Tue Ly authored
Refactor src/math/hypotf.cpp and test/src/math/hypotf_test.cpp and reuse them for hypot and hypot_test Differential Revision: https://reviews.llvm.org/D91831
-
- Dec 03, 2020
-
-
Nico Weber authored
-
Ahmed Bougacha authored
This also teaches MachO writers/readers about the MachO cpu subtype, beyond the minimal subtype reader support present at the moment. This also defines a preprocessor macro to allow users to distinguish __arm64__ from __arm64e__. arm64e defaults to an "apple-a12" CPU, which supports v8.3a, allowing pointer-authentication codegen. It also currently defaults to ios14 and macos11. Differential Revision: https://reviews.llvm.org/D87095
-
Baptiste Saleil authored
When using accumulators in loops, they are passed around in PHI nodes of unprimed accumulators, causing the generation of additional prime/unprime instructions. This patch detects these cases and changes these PHI nodes to primed accumulator PHI nodes. We also add IR and MIR test cases for several PHI node cases. Differential Revision: https://reviews.llvm.org/D91391
-
Nathan James authored
Fix naming style while were here too.
-
Yonghong Song authored
Implement fetch_<op>/fetch_and_<op>/exchange/compare-and-exchange instructions for BPF. Specially, the following gcc intrinsics are implemented. __sync_fetch_and_add (32, 64) __sync_fetch_and_sub (32, 64) __sync_fetch_and_and (32, 64) __sync_fetch_and_or (32, 64) __sync_fetch_and_xor (32, 64) __sync_lock_test_and_set (32, 64) __sync_val_compare_and_swap (32, 64) For __sync_fetch_and_sub, internally, it is implemented as a negation followed by __sync_fetch_and_add. For __sync_lock_test_and_set, despite its name, it actually does an atomic exchange and return the old content. https://gcc.gnu.org/onlinedocs/gcc-4.1.1/gcc/Atomic-Builtins.html For intrinsics like __sync_{add,sub}_and_fetch and __sync_bool_compare_and_swap, the compiler is able to generate codes using __sync_fetch_and_{add,sub} and __sync_val_compare_and_swap. Similar to xadd, atomic xadd, xor and xxor (atomic_<op>) instructions are added for atomic operations which do not have return values. LLVM will check the return value for __sync_fetch_and_{add,and,or,xor}. If the return value is used, instructions atomic_fetch_<op> will be used. Otherwise, atomic_<op> instructions will be used. All new instructions only support 64bit and 32bit with alu32 mode. old xadd instruction still supports 32bit without alu32 mode. For encoding, please take a look at test atomics_2.ll. Differential Revision: https://reviews.llvm.org/D72184
-
Adam Czachorowski authored
This can happen when, for example, merging results from an external index that generates IncludeHeaders with full URI rather than just literal include. Differential Revision: https://reviews.llvm.org/D92494
-
dfukalov authored
1. Removed #include "...AliasAnalysis.h" in other headers and modules. 2. Cleaned up includes in AliasAnalysis.h. Reviewed By: RKSimon Differential Revision: https://reviews.llvm.org/D92489
-
Paul C. Anagnostopoulos authored
Update the documentation. Rework various backends that relied on the code type. Differential Revision: https://reviews.llvm.org/D92269
-
Kazushi (Jam) Marukawa authored
Add vsll, vsrl, vsla, vsra, and vsfa intrinsic instructions and regression tests. Reviewed By: simoll Differential Revision: https://reviews.llvm.org/D92550
-
Nico Weber authored
shouldRTTIBeUnique() returns false for iOS64CXXABI, which causes RTTI objects to be emitted hidden. Update two tests that didn't expect this to happen for the default triple. Also rename iOS64CXXABI to AppleARM64CXXABI, since it's used for arm64-apple-macos triples too. Part of PR46644. Differential Revision: https://reviews.llvm.org/D91904
-
Haruki Imai authored
Memrefs with affine_map in the results of normalizable operation were not normalized by `--normalize-memrefs` option. This patch normalizes them. Differential Revision: https://reviews.llvm.org/D88719
-
Nico Weber authored
This morally reverts D82777 -- turns out that ld64 crashes with many response files, so we must stop passing them to it until the crash is fixed. Differential Revision: https://reviews.llvm.org/D92357
-
Ilya Golovenko authored
Reviewed By: sammccall Differential Revision: https://reviews.llvm.org/D92484
-
Jay Foad authored
Differential Revision: https://reviews.llvm.org/D92477
-
Nico Weber authored
The problem was that `sym` became replaced in the call to make<ObjFile> and referring to it afer that read memory that now stored a different kind of symbol (a Defined instead of a LazySymbol). Since this happens only once per archive, just copy the symbol to the stack before make<ObjFile> and read the copy instead. Originally reviewed at https://reviews.llvm.org/D92496
-
Martin Storsjö authored
Move the two different definitions of FUNC_ALIGN out of the ELF specific block. Add the missing CFI_END in END_COMPILERRT_OUTLINE_FUNCTION, to go with the corresponding CFI_START in DEFINE_COMPILERRT_OUTLINE_FUNCTION_UNMANGLED. Differential Revision: https://reviews.llvm.org/D92549
-
Kazushi (Jam) Marukawa authored
We have a plan to add libcxx and libcxxabi for VE. In order to do so, we need to compile cxx source code with bootstarapped header files. This patch adds such expected path to make clang++ work, at least not crash at the startup. Add regression test for that, also. Reviewed By: simoll Differential Revision: https://reviews.llvm.org/D92386
-
Joe Ellis authored
Bail out early if we encounter a scalable store. Reviewed By: peterwaller-arm Differential Revision: https://reviews.llvm.org/D92392
-
Evgeniy Brevnov authored
New tes cases added. Change var names to avoid the following warning from update_test_checks.py: WARNING: Change IR value name 'tmp5' to prevent possible conflict with scripted FileCheck name. Reviewed By: ebrevnov Differential Revision: https://reviews.llvm.org/D92566
-
Haojian Wu authored
-
Evgeniy Brevnov authored
[NFC][Tests] Auto generate checks for llvm/test/Transforms/NaryReassociate/pr24301.ll using update_test_checks.py Generate checks with update_test_checks.py in order to simplify upcoming updates. Reviewed By: mkazantsev Differential Revision: https://reviews.llvm.org/D92561
-
Georgii Rymar authored
Use `reportUniqueWarning` instead of `reportWarning` and refine the interface of the helper. Differential revision: https://reviews.llvm.org/D92556
-