- Jun 26, 2020
-
-
Simon Pilgrim authored
-
Simon Pilgrim authored
-
Kadir Cetinkaya authored
Summary: Currently, clangd always completes `typename` as `typename qualifier::name`, I think the current behavior is not useful when the code completion is triggered in `template <>`. So I tweak it to `typename identifier`. Patch by @lh123 ! Reviewers: sammccall, kadircet Reviewed By: kadircet Subscribers: ilya-biryukov, usaxena95, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D82373
-
Tres Popp authored
-
David Green authored
We current extract and convert from a top lane of a f16 vector using a VMOVX;VCVTB pair. We can simplify that to use a single VCVTT. The pattern is mostly copied from a vector extract pattern, but produces a VCVTTHS f32 directly. This had to move some code around so that ARMInstrVFP had access to the required pattern frags that were previously part of ARMInstrNEON. Differential Revision: https://reviews.llvm.org/D81556
-
Tobias Gysi authored
Summary: The patch introduces a canonicalization pattern for parallel loops. The pattern removes single-iteration loop dimensions if the loop bounds and steps are constants. Reviewers: herhut, ftynse Reviewed By: herhut Subscribers: mehdi_amini, rriddle, jpienaar, shauheen, antiagainst, nicolasvasilache, arpith-jacob, mgester, lucyrfox, aartbik, liufengdb, stephenneuendorffer, Joonsoo, grosul1, Kayjukh, jurahul, msifontes Tags: #mlir Differential Revision: https://reviews.llvm.org/D82191
-
David Sherwood authored
-
Craig Topper authored
These features implicitly enabled XSAVE in the frontend, but not the backend. Disabling XSAVE in the frontend disabled XSAVEOPT, but not the other 2. Nothing happened in the backend.
-
David Sherwood authored
Fixed an issue in DataLayout::getIntPtrType where we were assuming the input type was always a fixed vector type, which isn't true. Added a test that exposed the problem to: Transforms/InstCombine/vector_gep1.ll Differential Revision: https://reviews.llvm.org/D82294
-
Sjoerd Meijer authored
This lowers intrinsic @llvm.get.active.lane.mask to a setcc node, i.e. an icmp ule, and creates vectors for its 2 arguments on which the comparison is performed. Differential Revision: https://reviews.llvm.org/D82292
-
Sjoerd Meijer authored
Don't revert intrinsic get.active.lane.mask here, this is moved to isel legalization in D82292. Differential Revision: https://reviews.llvm.org/D82105
-
Craig Topper authored
We already have this feature on it in the backend.
-
Siva Chandra Reddy authored
Specifically: ceill, floorl and roundl have been added. Reviewers: asteinhauser Differential Revision: https://reviews.llvm.org/D82591
-
Louis Dionne authored
The runtimes build includes libcxx/include/CMakeLists.txt directly instead of going through the top-level CMake file. This not-very-hygienic inclusion caused some variables like LIBCXX_BINARY_DIR not to be defined properly, and the config_site generation logic to fail after landing 53623d4a. This patch works around this issue by defining the missing variables. However, the proper fix for this would be for the runtimes build to always go through libc++'s top-level CMakeLists.txt. Doing otherwise is unsupported.
-
Igor Kudrin authored
The size of the field depends on the DWARF format, not the address size of the target. Differential Revision: https://reviews.llvm.org/D82311
-
Louis Dionne authored
Before this patch, the __config_site header was only generated when at least one __config_site macro needed to be defined. This lead to two different code paths in how libc++ is configured, depending on whether a __config_site header was generated or not. After this patch, the __config_site is always generated, but it can be empty in case there are no macros to define in it. More context on why this change is important -------------------------------------------- In addition to being confusing, this double-code-path situation lead to broken code being checked in undetected in 2405bd68, which introduced the LIBCXX_HAS_MERGED_TYPEINFO_NAMES_DEFAULT CMake setting. Specifically, the _LIBCPP_HAS_MERGED_TYPEINFO_NAMES_DEFAULT <__config_site> macro was supposed NOT to be defined unless LIBCXX_HAS_MERGED_TYPEINFO_NAMES_DEFAULT was specified explicitly on the CMake command line. Instead, what happened is that it was defined to 0 if it wasn't specified explicitly and a <__config_site> header was generated. And defining that macro to 0 had the important effect of using the non-unique RTTI comparison implementation, which changes the ABI. This change in behavior wasn't noticed because the <__config_site> header is not generated by default. However, the Apple configuration does cause a <__config_site> header to be generated, which lead to the wrong RTTI implementation being used, and to https://llvm.org/PR45549. We came close to an ABI break in the dylib, but were saved due to a downstream-only change that overrode the decision of the <__config_site> for the purpose of RTTI comparisons in libc++abi. This is an incredible luck that we should not rely on ever again. While the problem itself was fixed with 2464d813 by setting LIBCXX_HAS_MERGED_TYPEINFO_NAMES_DEFAULT explicitly in the Apple CMake cache and then in d0fcdcd2 by making the setting less brittle, the point still is that we should have had a single code path from the beginning. Unlike most normal libraries, the macros that configure libc++ are really complex, there's a lot of them and they control important properties of the C++ runtime. There must be a single code path for that, and it must be simple and robust. Differential Revision: https://reviews.llvm.org/D80927
-
Yaxun (Sam) Liu authored
Add -mcpu, -mattr, -mllvm, and -save-temps options for lto when necessary. Differential Revision: https://reviews.llvm.org/D82506
-
Michael Liao authored
- Require target x86 being enabled as well.
-
Yaxun (Sam) Liu authored
Differential Revision: https://reviews.llvm.org/D82579
-
Amy Kwan authored
[PowerPC][Power10] Implement centrifuge, vector gather every nth bit, vector evaluate Builtins in LLVM/Clang This patch implements builtins for the following prototypes: unsigned long long __builtin_cfuged (unsigned long long, unsigned long long); vector unsigned long long vec_cfuge (vector unsigned long long, vector unsigned long long); unsigned long long vec_gnb (vector unsigned __int128, const unsigned int); vector unsigned char vec_ternarylogic (vector unsigned char, vector unsigned char, vector unsigned char, const unsigned int); vector unsigned short vec_ternarylogic (vector unsigned short, vector unsigned short, vector unsigned short, const unsigned int); vector unsigned int vec_ternarylogic (vector unsigned int, vector unsigned int, vector unsigned int, const unsigned int); vector unsigned long long vec_ternarylogic (vector unsigned long long, vector unsigned long long, vector unsigned long long, const unsigned int); vector unsigned __int128 vec_ternarylogic (vector unsigned __int128, vector unsigned __int128, vector unsigned __int128, const unsigned int); Differential Revision: https://reviews.llvm.org/D80970
-
Michael Liao authored
- Require amdgpu target being enabled.
-
Michael Liao authored
-
Fangrui Song authored
if(TARGET asan) is still brittle as it depends on the order of compiler-rt and debuginfo-tests in LLVM_ENABLE_PROJECTS.
-
Arthur Eubanks authored
Summary: BasicAA under the new pass manager is called "basic-aa", which fits more with the other AA names which almost always contain a dash. Keep an alias from basicaa -> basic-aa. Will change all references of "basicaa" to "basic-aa", then remove the alias. Makes check-llvm failures under NPM go from 2307 to 1867. Reviewers: asbirlea, ychen Subscribers: hiraditya, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D82607
-
Sam McCall authored
-
Fangrui Song authored
-
Michael Liao authored
Summary: - `ptrtoint` and `inttoptr` are defined as no-op casts if the integer value as the same size as the pointer value. The pair of `ptrtoint`/`inttoptr` is in fact a no-op cast sequence between different address spaces. Teach `infer-address-spaces` to handle them like a `bitcast`. Reviewers: arsenm, chandlerc Subscribers: jvesely, wdng, nhaehnle, hiraditya, kerbowa, cfe-commits, llvm-commits Tags: #clang, #llvm Differential Revision: https://reviews.llvm.org/D81938
-
Fangrui Song authored
-
Amara Emerson authored
The complex pattern for extended shift offsets only allow sxtw as the extend, not sxth. Our equivalent function to do this was not rejecting SXTH so we were miscompiling. This was exposed by D81992.
-
Jonas Devlieghere authored
pyconfig.h(194): error C2371: 'pid_t': redefinition; different basic types PosixApi.h(82): note: see declaration of 'pid_t'
-
Fangrui Song authored
Fix `fatal: Could not run process ['/path/to/build/./bin/llvm-config', '--build-mode']` when running check-debuginfo in a fresh build directory.
-
Mehdi Amini authored
This is cleaning up comments (mostly in the bitcode handling) about removing some backward compatibility aspect in the 4.0 release. Historically, "4.0" was used during the development of the 3.x versions as "this future major breaking change version". At the time the major number was used to indicate the compatibility. When we reached 3.9 we decided to change the numbering, instead of going to 3.10 we went to 4.0 but after changing the meaning of the major number to not mean anything anymore with respect to bitcode backward compatibility. The current policy (https://llvm.org/docs/DeveloperPolicy.html#ir-backwards-compatibility) indicates only now: The current LLVM version supports loading any bitcode since version 3.0. Differential Revision: https://reviews.llvm.org/D82514
-
Steven Wu authored
Summary: Allow compiler-rt to build for arm64 support on macOS. Reviewers: arphaman, doug.gregor, dexonsmith Reviewed By: arphaman, dexonsmith Subscribers: dberris, mgorny, kristof.beyls, jkorous, ributzka, danielkiss, #sanitizers, llvm-commits Tags: #sanitizers Differential Revision: https://reviews.llvm.org/D82610
-
Louis Dionne authored
It is needed because <wchar.h> uses size_t.
-
Davide Italiano authored
-
Davide Italiano authored
-
Davide Italiano authored
-
Davide Italiano authored
This test relies on thumb, which is a 32-bits feature only.
-
Dan Gohman authored
The meaning of -shared and -pie are expected to be changed in the future when Module Linking-style libraries are implemented. Begin issuing warnings to give people a heads-up that they will be changing. For compatibility with Emscripten, add a --experimental-pic flag which disables these warnings. Differential Revision: https://reviews.llvm.org/D81760
-
Wouter van Oortmerssen authored
We have 6 globals, all of which except for __table_base are 64-bit under wasm64. Differential Revision: https://reviews.llvm.org/D82130
-