- Mar 21, 2020
-
-
Richard Smith authored
-
Jonas Devlieghere authored
The fourth field in the property struct is the default unsigned or enum value for all types, except for Array and Dictionary types. For those, it is the element type. During the tablegen conversion, this was incorrectly translated to DefaultValueUnsigned with a value corresponding to the OptionValue: enum type. So for OptionValue::eTypeString this became DefaultUnsignedValue<16>. This patch extends the tablegen backend to understand ElementType to express this as ElementType<"String">. Differential revision: https://reviews.llvm.org/D76535
-
Akira Hatanaka authored
returned by function calls or loaded from volatile objects rdar://problem/51867864 Differential Revision: https://reviews.llvm.org/D66094
-
Wyatt Childers authored
present. No functionality change intended. Differential Revision: https://reviews.llvm.org/D76438
-
Eric Christopher authored
Temporarily Revert "[X86] Reland D71360 Clean up UseInitArray initialization for X86ELFTargetObjectFile" as it's causing msan failures. This reverts commit 7899fe9d.
-
Louis Dionne authored
The current lit test suite doesn't really allow us to express that the test should be disabled when testing the trunk variant of libc++, even if we're running it on a supported macOS. Because of that, the test is enabled when _LIBCPP_DISABLE_AVAILABILITY is defined, and the test XPASSes.
-
JonChesterfield authored
-
nmostafa authored
Summary: Add an additional builder to IfOp to allow the operation to define operands. Differential Revision: https://reviews.llvm.org/D76524
-
Huihui Zhang authored
Summary: DataLayout::getTypeStoreSize() returns TypeSize. For cases where it can not be scalable vector (e.g., GlobalVariable), explicitly call TypeSize::getFixedSize(). For cases where scalable property doesn't matter, (e.g., check for zero-sized type), use TypeSize::isNonZero(). Reviewers: sdesmalen, efriedma, apazos, reames Reviewed By: efriedma Subscribers: hiraditya, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D76454
-
Adrian Prantl authored
while investigating bot breakage. This reverts commit 2dec8265.
-
Adrian Prantl authored
The ".sdk" component is usually the last one in the -isysroot, so it makes more sense to scan from the back. Also, technically, someone could install Xcode into a directory ending with .sdk, which would break this heuristic. Differential Revision: https://reviews.llvm.org/D76097
-
Aaron Smith authored
Two MLIR examples do not link because the library path is different when using Xcode vs Makefiles. This change adds the configuration name to the library path when building with Xcode. i.e. LLVM_BUILD_DIR/debug/lib
-
Nicolas Vasilache authored
-
Louis Dionne authored
-
Adrian Prantl authored
<rdar://problem/55685132> Differential Revision: https://reviews.llvm.org/D76393
-
Adrian Prantl authored
This reverts commit 6725c483.
-
Paula Toth authored
[clang-tidy] Merge common code between llvmlibc-restrict-system-libc-headers and portability-restrict-system-includes Summary: Made llvmlibc::RestrictSystemLibcHeadersCheck a subclass of protability::RestrictSystemIncludesCheck to re-use common code between the two. This also adds the ability to white list linux development headers. Reviewers: aaron.ballman Reviewed By: aaron.ballman Subscribers: mgorny, xazax.hun, MaskRay, cfe-commits, sivachandra Tags: #clang-tools-extra, #clang Differential Revision: https://reviews.llvm.org/D76395
-
Adrian Prantl authored
<rdar://problem/55685132> Differential Revision: https://reviews.llvm.org/D76393
-
Louis Dionne authored
Before this patch, the %run substitution did not contain the same environment variables as normal `pass.cpp` tests. It also didn't have the right working directory and the script wasn't aware of potential file dependencies. With this change, the combination of %build and %run in a .sh.cpp script should match how pass.cpp tests are actually executed much more closely.
-
aartbik authored
Summary: Introduced in order to introduce specialized lowering passes that implement transposition operations efficiently. Reviewers: nicolasvasilache, andydavis1 Reviewed By: nicolasvasilache Subscribers: mehdi_amini, rriddle, jpienaar, burmako, shauheen, antiagainst, nicolasvasilache, arpith-jacob, mgester, lucyrfox, liufengdb, Joonsoo, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D76460
-
George Rokos authored
Differential Revision: https://reviews.llvm.org/D76469
-
Sylvain Audi authored
The .i files in the clang tests (2 files) were not run by lit : clang/test/CodeGen/debug-info-preprocessed-file.i clang/test/FrontEnd/processed-input.i Differential Revision: https://reviews.llvm.org/D75853
-
Adrian Prantl authored
Differential Revision: https://reviews.llvm.org/D76383
-
Fangrui Song authored
-
Richard Smith authored
fixed the same bug in two similar ways.
-
Huihui Zhang authored
Summary: Return None if GEP index type is scalable vector. Size of scalable vectors are multiplied by a runtime constant. Avoid transforming: %a = bitcast i8* %p to <vscale x 16 x i8>* %tmp0 = getelementptr <vscale x 16 x i8>, <vscale x 16 x i8>* %a, i64 0 store <vscale x 16 x i8> zeroinitializer, <vscale x 16 x i8>* %tmp0 %tmp1 = getelementptr <vscale x 16 x i8>, <vscale x 16 x i8>* %a, i64 1 store <vscale x 16 x i8> zeroinitializer, <vscale x 16 x i8>* %tmp1 into: %a = bitcast i8* %p to <vscale x 16 x i8>* %tmp0 = getelementptr <vscale x 16 x i8>, <vscale x 16 x i8>* %a, i64 0 %1 = bitcast <vscale x 16 x i8>* %tmp0 to i8* call void @llvm.memset.p0i8.i64(i8* align 16 %1, i8 0, i64 32, i1 false) Reviewers: sdesmalen, efriedma, apazos, reames Reviewed By: sdesmalen Subscribers: tschuett, hiraditya, rkruppe, arphaman, psnobl, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D76464
-
Walter Erquinigo authored
Summary: Inspired by https://reviews.llvm.org/D74636, I'm introducing a basic version of Environment in the API. More functionalities can be added as needed. Reviewers: labath, clayborg Subscribers: mgorny, lldb-commits, diazhector98 Tags: #lldb Differential Revision: https://reviews.llvm.org/D76111
-
Walter Erquinigo authored
Summary: On Linux, when executing lldb-vscode on a remote machine, lldb-vscode doesn't die after the debug session ends. It keeps trying to read JSON input to no avail. This diff indicates lldb-vscode to stop reading after a termination event has been processed. Reviewers: clayborg, aadsm, kusmour Subscribers: lldb-commits Tags: #lldb Differential Revision: https://reviews.llvm.org/D76314
-
Rob Suderman authored
Summary: Change AffineOps Dialect structure to better group both IR and Tranforms. This included extracting transforms directly related to AffineOps. Also move AffineOps to Affine. Differential Revision: https://reviews.llvm.org/D76161
-
Richard Smith authored
accept as an extension. This attempts to accept the same cases a GCC, plus cases where a comparison is rewritten to an operator== with an integral but non-bool return type; this is sufficient to avoid most problems with various major open-source projects (such as ICU) and appears to fix all but one of the comparison-related C++20 build breaks in LLVM. This approach is being pursued for standardization.
-
Adrian Prantl authored
It's not used for anything.
-
Adrian Prantl authored
Before this patch a Clang module skeleton CU would have a DW_AT_comp_dir pointing to the directory of the module map file, and this information was not used by anyone. Even worse, LLDB actually resolves relative DWO paths by appending it to DW_AT_comp_dir. This patch sets it to the same directory that is used as the main CU's compilation directory, which would make the LLDB code work. Differential Revision: https://reviews.llvm.org/D76377
-
Nikita Popov authored
First check whether the RHS is a null pointer, and only then perform a potentially expensive non-zero query.
-
Davide Italiano authored
-
Davide Italiano authored
Fixes a couple of tests on new versions of the Obj-C runtime.
-
Nicolas Vasilache authored
-
Pirama Arumuga Nainar authored
Summary: When using full LTO on cross-compile settings, instead of generating the default archive kind of the host platform, we could deduce the archive kind based on the target triple. This specifically addresses https://github.com/android/ndk/issues/1209 by making it possible to drop llvm-ar in place of GNU ar without extra flags. Reviewers: compnerd, pcc, srhines, danalbert Subscribers: hiraditya, MaskRay, steven_wu, dexonsmith, rupprecht, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D76461
-
Ahmed Taei authored
Summary: This diff fixes fusion craching for ops with rank-0 tensors Reviewers: mravishankar, nicolasvasilache, rriddle! Subscribers: mehdi_amini, rriddle, jpienaar, burmako, shauheen, antiagainst, arpith-jacob, mgester, lucyrfox, liufengdb, Joonsoo, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D76479
-
Hanhan Wang authored
Summary: After D75831 has been landed, both the generic op and indexed_generic op can handle 0-D edge case. In the previous patch, only generic op has been updated. This patch updates the lowering to loops for indexed_generic op. Since they are almost the sanme, the patch also refactors the common part. Differential Revision: https://reviews.llvm.org/D76413
-
Nikita Popov authored
If ExpensiveCombines is enabled (which is the case with -O3 on the legacy PM and always on the new PM), InstCombine tries to compute the known bits of all instructions in the hope that all bits end up being known, which is fairly expensive. How effective is it? If we add some statistics on how often the constant folding succeeds and how many KnownBits calculations are performed and run test-suite we get: "instcombine.NumConstPropKnownBits": 642, "instcombine.NumConstPropKnownBitsComputed": 18744965, In other words, we get one fold for every 30000 KnownBits calculations. However, the truth is actually much worse: Currently, known bits are computed before performing other folds, so there is a high chance that cases that get folded by known bits would also have been handled by other folds. What happens if we compute known bits after all other folds (hacky implementation: https://gist.github.com/nikic/751f25b3b9d9e0860db5dde934f70f46)? "instcombine.NumConstPropKnownBits": 0, "instcombine.NumConstPropKnownBitsComputed": 18105547, So it turns out despite doing 18 million known bits calculations, the known bits fold does not do anything useful on test-suite. I was originally planning to move this into AggressiveInstCombine so it only runs once in the pipeline, but seeing this, I think we're better off removing it entirely. As this is the only use of the "expensive combines" mechanism, it may be removed afterwards, but I'll leave that to a separate patch. Differential Revision: https://reviews.llvm.org/D75801
-