- Jun 26, 2020
-
-
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
-
Fangrui Song authored
-
Louis Dionne authored
Since we're using an empty top-level CMakeLists.txt instead of the CMakeLists.txt inside llvm/, we don't need to specify LLVM_INCLUDE_BENCHMARKS anymore.
-
Jessica Paquette authored
Given this: ``` %x:_(<n x sK>) = G_BUILD_VECTOR %lane, ... ... %y:_(<n x sK>) = G_SHUFFLE_VECTOR %x(<n x sK>), %foo, shufflemask(0, 0, ...) ``` We can produce: ``` %y:_(<n x sK) = G_DUP %lane(sK) ``` Doesn't seem to be too common, but AArch64ISelLowering attempts to do this before trying to produce a DUPLANE. Might as well port it. Also make it so that when the splat has an undef mask, we try setting it to 0. SDAG does this, and it makes sure that when we get the build vector operand, we actually get a source operand. Differential Revision: https://reviews.llvm.org/D81979
-
Paul Walker authored
Summary: This patch adds entries for: v64f16 v128f16 v64bf16 v128bf16 v32f64 Subscribers: dschuff, hiraditya, aheejin, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D82466
-
Philip Reames authored
-
LLVM GN Syncbot authored
-
Sam McCall authored
Summary: This is a piece from the design in https://tinyurl.com/clangd-config https://reviews.llvm.org/D82335 is a draft with all the bits linked together. It doesn't do anything yet, it's just a library + tests. It deliberately implements a minimal set of actual configuration options. Reviewers: kadircet, adamcz Subscribers: mgorny, ilya-biryukov, MaskRay, jkorous, arphaman, usaxena95, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D82386
-
David Green authored
This extends PerformSplittingToWideningLoad to also handle FP_Ext, as well as sign and zero extends. It uses an integer extending load followed by a VCVTL on the bottom lanes to efficiently perform an fpext on a smaller than legal type. The existing code had to be rewritten a little to not just split the node in two and let legalization handle it from there, but to actually split into legal chunks. Differential Revision: https://reviews.llvm.org/D81340
-
Louis Dionne authored
We use the _LIBCPP_ABI_ALTERNATE_STRING_LAYOUT macro for that now instead. I did leave a check behind to make sure that nobody was still using the old macro name. I'll remove it a couple of months down the road.
-
Sanjay Patel authored
-
Philip Reames authored
-
David Green authored
This adds code to lower f16 to f32 fp_exts's using an MVE VCVT instructions, similar to a recent similar patch for fp_trunc. Again it goes through the lowering of a BUILD_VECTOR, but is slightly simpler only having to deal with interleaved indices. It adds a VCVTL node to lower to, similar to VCVTN. Differential Revision: https://reviews.llvm.org/D81339
-
Craig Topper authored
[X86] Don't imply -mprfchw when -m3dnow is specified. Enable prefetchw in the backend with 3dnow feature. The PREFETCHW instruction was originally part of the 3DNow. But it was given its own CPUID bit on later CPUs just before 3DNow was deprecated. We were setting the -mprfchw flag if -m3dnow was passed or the CPU supported 3dnow unless -mno-prfchw was passed. But -march=native on a CPU without the PRFCHW CPUID bit set will pass -mno-prfchw. So -march=k8 will behave differently than -march=native on a K8 for example. So remove this implicit setting from the frontend and instead enable the backend to use PREFETCHW if 3dnow OR prfchw is enabled. Also enable PRFCHW flag on amdfam10/barcelona which seems to be where this CPUID bit was introduced. That CPU also supported 3dnow.
-
Hubert Tong authored
-
Hubert Tong authored
To improve CI checks, make `Unix/Program.inc` separately compilable.
-
Hubert Tong authored
While `wait4` is not documented for AIX, it is available; however, even on systems where it is available, the system headers do not always provide a declaration of the function. This patch provides a declaration of `wait4` for AIX. Reviewed By: daltenty Differential Revision: https://reviews.llvm.org/D82282
-
Arthur O'Dwyer authored
No functional change because all the changed "code" is actually inside comments. Differential Revision: https://reviews.llvm.org/D82589
-
Anatoly Trosinenko authored
There are two different _generic_ lists of source files in the compiler-rt/lib/builtins/CMakeLists.txt. Now there is no simple way to not use the tf-variants of helpers at all. Since there exists a separate `GENERIC_TF_SOURCES` list, it seems quite natural to move all float128-related helpers there. If it is not possible for some reason, it would be useful to have an explanation of that reason somewhere near the `GENERIC_TF_SOURCES` definition. Differential Revision: https://reviews.llvm.org/D81282
-
Jonas Devlieghere authored
-
Hiroshi Yamauchi authored
[HIP] Improve check patterns to avoid test failures in case string "opt", etc. happens to be in the command path. Similarly to D82046. Differential Revision: https://reviews.llvm.org/D82586
-
Han Zhu authored
Summary: `config.test_extra_flags` is passed in from `lit.site.cfg.in` files, but they're not used in the LIT configs. This variable can be useful for distros which don't have the standard c/c++ headers in the default search paths. Since the tests run clang on c/c++ source code, we rely on `test_extra_flags` to pass in the necessary header files. This is a similar setup that's also done in litomptarget https://github.com/llvm/llvm-project/blob/master/openmp/libomptarget/test/lit.cfg#L42 and openmp/runtime. Reviewers: jdoerfert, jdenny, protze.joachim Reviewed By: jdoerfert Subscribers: yaxunl, guansong, sstefan1, openmp-commits Tags: #openmp Differential Revision: https://reviews.llvm.org/D82516
-
Mehdi Chinoune authored
ATTRIBUTE_UNUSED wasn't defined with MSVC. Patch by: Mehdi Chinoune <chinoune.mehdi@hotmail.com> Differential Revision: https://reviews.llvm.org/D78356
-
Louis Dionne authored
Remove small code duplication and add comments explaining why we do things in a given order.
-
Craig Topper authored
Revert "[X86] Don't imply -mprfchw when -m3dnow is specified. Enable prefetchw in the backend with 3dnow feature." This is failing on the bots. This reverts commit 636d31a5.
-
David Green authored
This splits MVE vector stores of a fp_trunc in the same way that we do for standard trunc's. It extends PerformSplittingToNarrowingStores to handle fp_round, splitting the store into pieces and adding a VCVTNb to perform the actual fp_round. The actual store is then converted to an integer store so that it can truncate bottom lanes of the result. Differential Revision: https://reviews.llvm.org/D81141
-
Xun Li authored
Summary: Check that the co_await promise.final_suspend() does not potentially throw again after we have resolved dependent types. This takes care of the cases where promises types are templated. Added test cases for this scenario and confirmed that the checks happen now. Also run libcxx tests locally to make sure all tests pass. Reviewers: Benabik, lewissbaker, junparser, modocache Reviewed By: modocache Subscribers: modocache, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D82332
-