- May 06, 2020
-
-
Jason Molenda authored
Update CallBoardSystemServiceOpenApplication to unconditionally log the NSError's localizedDescription to Console on app launch failure (as it was already doing), and also to log the NSError object's full description to the console, which may contain additional nested error messages. I'm experimenting to find cases where we will get more detailed information from app launch failures and will start by logging both to the console. <rdar://problem/62709160>
-
Artem Belevich authored
Differential Revision: https://reviews.llvm.org/D79449
-
Sergej Jaskiewicz authored
Now that https://reviews.llvm.org/D78200 has landed, there should be no problem with those tests. If there is, it is OK to revert this.
-
Craig Topper authored
Similar to D77687, but for the X86 specific code. Differential Revision: https://reviews.llvm.org/D79381
-
Sergej Jaskiewicz authored
Summary: Instead of storing `static_test_env` (with all the symlinks) in the repo, we create it on the fly to be cross-toolchain-friendly. The primary use case for this are Windows-hosted cross-toolchains. Windows doesn't really have a concept of symlinks. So, when the monorepo is cloned, those symlinks turn to ordinary text files. Previously, if we cross-compiled libc++ for some symlink-friendly system (e. g. Linux) and ran tests on the target system, some tests would fail. This patch makes them pass. Reviewers: ldionne, #libc Reviewed By: ldionne, #libc Subscribers: EricWF, dexonsmith, libcxx-commits Tags: #libc Differential Revision: https://reviews.llvm.org/D78200
-
Sergej Jaskiewicz authored
This reverts commit 645ad5ba. This commit did not incorporate all the changes intended.
-
Reid Kleckner authored
Essentially takes the lld/Common/Threads.h wrappers and moves them to the llvm/Support/Paralle.h algorithm header. The changes are: - Remove policy parameter, since all clients use `par`. - Rename the methods to `parallelSort` etc to match LLVM style, since they are no longer C++17 pstl compatible. - Move algorithms from llvm::parallel:: to llvm::, since they have "parallel" in the name and are no longer overloads of the regular algorithms. - Add range overloads - Use the sequential algorithm directly when 1 thread is requested (skips task grouping) - Fix the index type of parallelForEachN to size_t. Nobody in LLVM was using any other parameter, and it made overload resolution hard for for_each_n(par, 0, foo.size(), ...) because 0 is int, not size_t. Remove Threads.h and update LLD for that. This is a prerequisite for parallel public symbol processing in the PDB library, which is in LLVM. Reviewed By: MaskRay, aganea Differential Revision: https://reviews.llvm.org/D79390
-
Christopher Tetreault authored
Summary: getLogBase2 tries to iterate over the number of vector elements. Since the number of elements of a scalable vector is unknown at compile time, we must return null if the input type is scalable. Identified by test LLVM.Transforms/InstCombine::nsw.ll Reviewers: efriedma, fpetrogalli, kmclaughlin, spatel Reviewed By: efriedma, fpetrogalli Subscribers: tschuett, hiraditya, rkruppe, psnobl, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D79197
-
Sergej Jaskiewicz authored
Instead of storing static_test_env (with all the symlinks) in the repo, we create it on the fly to be cross-toolchain-friendly. The primary use case for this are Windows-hosted cross-toolchains. Windows doesn't really have a concept of symlinks. So, when the monorepo is cloned, those symlinks turn to ordinary text files. Previously, if we cross-compiled libc++ for some symlink-friendly system (e. g. Linux) and ran tests on the target system, some tests would fail. This patch makes them pass. Differential Revision: https://reviews.llvm.org/D78200
-
Konrad Kleine authored
Summary: This fixes https://bugs.llvm.org/show_bug.cgi?id=44437. Thanks to Arnaud Desitter for providing the patch in the bug report! A simple example program to reproduce this error is this: ```lang=python import sys with open(sys.argv[0], 'r') as f: lines = f.readlines() lines = iter(lines) line = lines.next() print(line) ``` which will error with this in python python 3: ``` Traceback (most recent call last): File "./mytest.py", line 8, in <module> line = lines.next() AttributeError: 'list_iterator' object has no attribute 'next' ``` Here's the same strategy applied to my test program as applied to the `add_new_check.py` file: ```lang=python import sys with open(sys.argv[0], 'r') as f: lines = f.readlines() lines = iter(lines) line = next(lines) print(line) ``` The built-in function `next()` is new since Python 2.6: https://docs.python.org/2/library/functions.html#next Subscribers: cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D79419
-
Artem Belevich authored
This reverts commit 55bcb96f.
-
Jonas Devlieghere authored
Updates Windows test for 61d5b0e6.
-
Jan Korous authored
-
Stanislav Mekhanoshin authored
AGPR inline asm constraint was missing from the LangRef.rst.
-
Sean Silva authored
-
Alina Sbirlea authored
Summary: When phi translation cannot be performed, be conservative and make the MemoryLocation unknown. Reviewers: george.burgess.iv Subscribers: Prazek, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D79386
-
Siva Chandra Reddy authored
This dramtically reduces the run time of tests. For example, sincosf_test takes over 25 minutes without this attribute but only 8 seconds with this attribute.
-
Davide Italiano authored
Remove a redundant check.
-
Davide Italiano authored
-
Sanjay Patel authored
The 'nsz' flag is different than 'nnan' or 'ninf' in that it does not create poison. Make that explicit in the LangRef and fix ValueTracking analysis that misinterpreted the definition. This manifests as bugs in InstSimplify shown in the test diffs and as discussed in PR45778: https://bugs.llvm.org/show_bug.cgi?id=45778 Differential Revision: https://reviews.llvm.org/D79422
-
River Riddle authored
-
River Riddle authored
This revision allows for creating DenseElementsAttrs and accessing elements using std::complex<APInt>/std::complex<APFloat>. This allows for opaquely accessing and transforming complex values. This is used by the printer/parser to provide pretty printing for complex values. The form for complex values matches that of std::complex, i.e.: ``` // `(` element `,` element `)` dense<(10,10)> : tensor<complex<i64>> ``` Differential Revision: https://reviews.llvm.org/D79296
-
River Riddle authored
This revision adds support for storing ComplexType elements inside of a DenseElementsAttr. We store complex objects as an array of two elements, matching the definition of std::complex. There is no current attribute storage for ComplexType, but DenseElementsAttr provides API for access/creation using std::complex<>. Given that the internal implementation of DenseElementsAttr is already fairly opaque, the only real complexity here is in the printing/parsing. This revision keeps it simple for now and always uses hex when printing complex elements. A followup will add prettier syntax for this. Differential Revision: https://reviews.llvm.org/D79281
-
Stephen Neuendorffer authored
We see intermittent build errors on the windows buildbot because mlir-opt is including Linalg headers which haven't been built yet. This dependence should be resolved by declaring a PUBLIC dependence on the Linalg library when building MLIROptMain.
-
Michael Liao authored
Summary: - If the coerced type is still a pointer, it should be set with proper parameter attributes, such as `noalias`, `nonnull`, and etc. Hoist that (pointer) parameter attribute setting so that the coerced pointer parameter could be marked properly. Depends on D79394 Reviewers: rjmccall, kerbowa, yaxunl Subscribers: jvesely, nhaehnle, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D79395
-
Michael Liao authored
Summary: - Skip copying function arguments and unnecessary casting by using them directly. Reviewers: rjmccall, kerbowa, yaxunl Subscribers: cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D79394
-
Erik Pilkington authored
These are permitted in all language modes, not just C++11.
-
Erik Pilkington authored
Duplicate keys in a literal break NSDictionary's invariants. rdar://50454461A Differential revision: https://reviews.llvm.org/D78660
-
Lei Zhang authored
This addresses a compilation failure on GCC 5: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options. #error This file requires compiler and library support Differential Revision: https://reviews.llvm.org/D79439
-
Christudasan Devadasan authored
-
Alex Zinenko authored
DMA operation classes in the Standard dialect (`DmaStartOp` and `DmaWaitOp`) provide helper functions that make numerous assumptions about the number and order of operands, and about their types. However, these assumptions were not checked in the verifier, leading to assertion failures or crashes when helper functions were used on ill-formed ops. Some of the assuptions were checked in the custom parser (and thus could not check assumption violations in ops constructed programmatically, e.g., during rewrites) and others were not checked at all. Introduce the verifiers for all these assumptions and drop unnecessary checks in the parser that are now covered by the verifier. Addresses PR45560. Differential Revision: https://reviews.llvm.org/D79408
-
Tim Keith authored
When doing a standalone build of flang against an LLVM that contains a built flang, the tests were run on the flang from LLVM rather than on the one that was just built. The problem was in the lit configuration for finding %flang etc. Fix it to look only in the directory where it was built. Differential Revision: https://reviews.llvm.org/D79327
-
Momchil Velikov authored
This reverts commit 7cbbf89d. The regression tests fail with the expensive checks.
-
David Blaikie authored
-
Kazu Hirata authored
Summary: This patch teaches shouldBeDeferred to take into account the total cost of inlining. Suppose we have a call hierarchy {A1,A2,A3,...}->B->C. (Each of A1, A2, A3, ... calls B, which in turn calls C.) Without this patch, shouldBeDeferred essentially returns true if TotalSecondaryCost < IC.getCost() where TotalSecondaryCost is the total cost of inlining B into As. This means that if B is a small wraper function, for example, it would get inlined into all of As. In turn, C gets inlined into all of As. In other words, shouldBeDeferred ignores the cost of inlining C into each of As. This patch adds an option, inline-deferral-scale, to replace the expression above with: TotalCost < Allowance where - TotalCost is TotalSecondaryCost + IC.getCost() * # of As, and - Allowance is IC.getCost() * Scale For now, the new option defaults to -1, disabling the new scheme. Reviewers: davidxl Subscribers: eraman, hiraditya, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D79138 -
Jonas Devlieghere authored
We have the option to stop running commands in batch mode when an error occurs. When that happens we should exit the driver with a non-zero exit code. Differential revision: https://reviews.llvm.org/D78825
-
Nico Weber authored
Currently, normalize() for posix replaces backslashes to slashes, except that two backslashes in sequence are kept as-is. clang calls normalize() to convert \ to / is microsoft compat mode. This generally works well, but a path like "c:\\foo\\bar.h" with two backslashes doesn't work due to the exception in normalize(). These paths happen naturally on Windows hosts with e.g. `#include __FILE__`, and them not working on other hosts makes it more difficult to write tests for this case. The special case has been around without justification since this code was added in r203611 (since then moved around in r215241 r215243). No integration tests fail if I remove it. Try removing the special case. Differential Revision: https://reviews.llvm.org/D79265
-
Andy Davis authored
Summary: Adds the loop unroll transformation for loop::ForOp. Adds support for promoting the body of single-iteration loop::ForOps into its containing block. Adds check tests for loop::ForOps with dynamic and static lower/upper bounds and step. Care was taken to share code (where possible) with the AffineForOp unroll transformation to ease maintenance and potential future transition to a LoopLike construct on which loop transformations for different loop types can implemented. Reviewers: ftynse, nicolasvasilache Reviewed By: ftynse Subscribers: bondhugula, mgorny, zzheng, mehdi_amini, rriddle, jpienaar, shauheen, antiagainst, nicolasvasilache, arpith-jacob, mgester, lucyrfox, aartbik, liufengdb, Joonsoo, grosul1, frgossen, Kayjukh, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D79184
-
Nico Weber authored
-
Christudasan Devadasan authored
The AMDGPU target has a convention that defined all VGPRs (execept the initial 32 argument registers) as callee-saved. This convention is not efficient always, esp. when the callee requiring more registers, ended up emitting a large number of spills, even though its caller requires only a few. This patch revises the ABI by introducing more scratch registers that a callee can freely use. The 256 vgpr registers now become: 32 argument registers 112 scratch registers and 112 callee saved registers. The scratch registers and the CSRs are intermixed at regular intervals (a split boundary of 8) to obtain a better occupancy. Reviewers: arsenm, t-tye, rampitec, b-sumner, mjbedy, tpr Reviewed By: arsenm, t-tye Differential Revision: https://reviews.llvm.org/D76356
-