- Jun 15, 2022
-
-
Katherine Rasmussen authored
Add failed_images to the list of intrinsic functions. Add a semantics test for failed_images. Reviewed By: jeanPerier Differential Revision: https://reviews.llvm.org/D126805
-
Okwan Kwon authored
There is a failure from the python pass manager. This reverts commit 1a19abf3.
-
Philip Reames authored
In an effort to make this code easier to read and extend, this splits out helper functions for the transfer function of the data flow. Due to the other results computed during the phases, we can't completely abstract away everything, but we can abstract the actual state transitions. The motivation here is the following upcoming changes: * The fault first load patch - already approved, this will be rebased over - adds another case into the transferAfter path. * An upcoming patch to fold the local prepass back into the main algorithm greatly complicates the transferBefore logic. Differential Revision: https://reviews.llvm.org/D127761
-
Daniel Bertalan authored
ld64.lld used to print the "undefined symbol" line for each reference to an undefined symbol previously: ld64.lld: error: undefined symbol: _foo >>> referenced by /path/to/bar.o:(symbol _baz+0x0) ld64.lld: error: undefined symbol: _foo >>> referenced by /path/to/bar.o:(symbol _quux+0x1) Now they are deduplicated: ld64.lld: error: undefined symbol: _foo >>> referenced by /path/to/bar.o:(symbol _baz+0x0) >>> referenced by /path/to/bar.o:(symbol _quux+0x1) As with the other lld ports, only the first 3 references are printed. Differential Revision: https://reviews.llvm.org/D127753
-
Florian Hahn authored
If an instruction at the beginning of a block is erased, this may trigger crash due to dereferencing an invalid iterator. Check if II is at the end before dereferencing it. Reviewed By: thegameg Differential Revision: https://reviews.llvm.org/D127736
-
Okwan Kwon authored
Differential Revision: https://reviews.llvm.org/D127691
-
Joseph Huber authored
This patch simplifies how we unify target features. Now we simply iterate the input in reverse and only insert the feature if it hasn't been seen yet. The only reason we need to reverse this at the end is to keep the features in order for the existing tests. Reviewed By: tra Differential Revision: https://reviews.llvm.org/D127707
-
Paul Robinson authored
-
Shivam authored
-
isuckatcs authored
The AST of a BindingDecl in case of tuple like structures wasn't properly printed. For these bidnings there is information stored in BindingDecl::getHoldingVar(), and this information was't printed in the AST-dump. Differential Revision: https://reviews.llvm.org/D126131
-
Amir Ayupov authored
Group switch cases by opcode: - V4FMADDPS - V4FMADDSS - V4FNMADDPS - V4FNMADDSS - VP4DPWSSDS - VP4DPWSSD Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D127718
-
phyBrackets authored
this patch is the continuation of my previous patch regarding the ImportError in ASTImportError.h Reviewed By: martong Differential Revision: https://reviews.llvm.org/D125340
-
Amir Ayupov authored
Group switch cases by opcode: - VFCMULCPH - VFCMULCSH - VFMULCPH - VFMULCSH Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D127717
-
Amir Ayupov authored
Group switch cases by opcode: - VFCMADDCPH - VFCMADDCSH - VFMADDCPH - VFMADDCSH Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D127716
-
Sanjay Patel authored
This extends a similar pattern from D125500. If we know that operand 1 (RHS) of a subtract is itself a non-overflowing subtract from operand 0 (LHS), then the final/outer subtract is also non-overflowing: https://alive2.llvm.org/ce/z/Bqan8v InstCombine uses this analysis to trigger a narrowing optimization, so that is what the first changed test shows. The last test models the motivating case from issue #48013. In that example, we determine 'nsw' on the first sub from the srem, then we determine that the 2nd sub can be narrowed, and that leads to eliminating both subtracts. This works for unsigned sub too, but I left that out to keep the patch minimal. If this looks ok, I will follow up with that change. There are also several missing subtract narrowing optimizations demonstrated in the tests above the diffs shown here - those should be handled in InstCombine with another set of patches. Differential Revision: https://reviews.llvm.org/D127754
-
Groverkss authored
-
Philip Reames authored
At the moment, this just gets the infrastructure in place. Following changes will start using this in non-trivial ways.
-
Krzysztof Drewniak authored
Depends on D124023 Reviewed By: Mogball, rriddle Differential Revision: https://reviews.llvm.org/D124022
-
Katherine Rasmussen authored
num_images had previously been added to the list of intrinsics before the type team_type had been implemented. Now that team_type is implemented, add the num_images call that has the team argument. Update the semantics tests for num_images. Reviewed By: craig.rasmussen Differential Revision: https://reviews.llvm.org/D126734
-
Nikolas Klauser authored
We decided that we want to use clang-format for libc++ but we haven't decided yet how the code should be formatted. We should probably discuss things on discord. This PR is mostly to show how the clang-format would look like and to commit to one once we decided on it. I'll remove the `<string>` diff when I commit this PR. Reviewed By: ldionne Spies: EricWF, dschuff, krytarowski, fedor.sergeev, aheejin, mstorsjo, phosek, abrachet, libcxx-commits, arichardson Differential Revision: https://reviews.llvm.org/D124789
-
Alex Brachet authored
For reference, this test creates about 1.5G in the cache directory. By default this will go to ~/.cache/clang/ which can fill up quick. This changes the test to put the cache path in lit temp directories. Size considerations aside it makes sense for tests to be hermetic and not touch global system state. Differential revision: https://reviews.llvm.org/D127587
-
Groverkss authored
This patch allows attaching user information, called "values" to each identifier. The values are used to carry information along with variables and are also used to determine if two variables are identical. This patch is part of a series of patches to allow attaching user information with variables in Presburger library. Reviewed By: ftynse Differential Revision: https://reviews.llvm.org/D127347
-
David Tenty authored
Follow on to https://reviews.llvm.org/D108352, also check for the definition of __LONG_DOUBLE_128__ before using it (because AIX doesn't enable it by default). Reviewed By: xingxue Differential Revision: https://reviews.llvm.org/D127002
-
Paul Robinson authored
-
Balazs Benics authored
Depends on D126215.
-
Petr Hosek authored
This allows configuring LLVM unwinder separately from the C++ library matching how we configure it in libcxx. This also applies changes made to libunwind+libcxxabi+libcxx in D113253 to compiler-rt. Differential Revision: https://reviews.llvm.org/D115674
-
Jake Egan authored
The existing nm extractors can't dump the loader symbol table information we need to do the ABI checks for XCOFF, so provide an implementation using the system dump utility. We match the symbol name, whether it's defined, it's import/export status, and its storage mapping class. Reviewed By: #libc, ldionne Differential Revision: https://reviews.llvm.org/D124165
-
Balazs Benics authored
Reviewed By: martong Differential Revision: https://reviews.llvm.org/D127732
-
Philip Reames authored
Mostly about allowing reuse in an upcoming patch, but also makes the code slightly easier to follow.
-
Balazs Benics authored
Depends on D126127 Reviewed By: martong Differential Revision: https://reviews.llvm.org/D127734
-
Balazs Benics authored
This is an initial step of removing the SimpleSValBuilder abstraction. The SValBuilder alone should be enough. Reviewed By: martong Differential Revision: https://reviews.llvm.org/D126127
-
Luboš Luňák authored
-
Mogball authored
This patch introduces a generic data-flow analysis framework to MLIR. The framework implements a fixed-point iteration algorithm and a dependency graph between lattice states and analysis. Lattice states and points are fully extensible to support highly-customizable analyses. Reviewed By: phisiart, rriddle Differential Revision: https://reviews.llvm.org/D126751
-
Danila Malyutin authored
Traverse through freeze when checking if base is constant Differential Revision: https://reviews.llvm.org/D127744
-
Stefan Pintilie authored
The combine step for shufflevector will sometimes replace undef in the mask with a defined value. This can cause an infinite loop in some cases as another combine will then put the undef back in the mask. This patch fixes the issue so that undefs are not replaced when doing a combine. Reviewed By: ZarkoCA, amyk, quinnp, saghir Differential Revision: https://reviews.llvm.org/D127439
-
Benjamin Kramer authored
Also complete the set by adding a variant of depthwise 1d convolution with the multiplier != 1. Differential Revision: https://reviews.llvm.org/D127687
-
Matheus Izvekov authored
This redoes D103040 in a way that `AlwaysIncludeTypeForTemplateArgument = false` policy is honored for printing template specialization types. This can be seen for example when printing a canonicalized dependent TemplateSpecializationType which has integral arguments. Signed-off-by:
Matheus Izvekov <mizvekov@gmail.com> Reviewed By: v.g.vassilev Differential Revision: https://reviews.llvm.org/D126620
-
Jay Foad authored
-
Alex Zinenko authored
-
- Jun 14, 2022
-
-
Alex Zinenko authored
Introduce a transform dialect op that allows one to attempt different transformation sequences on the same piece of payload IR until one of them succeeds. This op fundamentally expands the scope of possibilities in the transform dialect that, until now, could only propagate transformation failure, at least using in-tree operations. This requires a more detailed specification of the execution model for the transform dialect that now indicates how failure is handled and propagated. Transformations described by transform operations now have tri-state results, with some errors being fundamentally irrecoverable (e.g., generating malformed IR) and some others being recoverable by containing ops. Existing transform ops directly implementing the `apply` interface method are updated to produce this directly. Transform ops with the `TransformEachTransformOpTrait` are currently considered to produce only irrecoverable failures and will be updated separately. Reviewed By: springerm Differential Revision: https://reviews.llvm.org/D127724
-