- Jun 23, 2020
-
-
Mikael Holmen authored
-
Kai Luo authored
-
James Henderson authored
Previously, if there was an error whilst parsing the operands of an extended opcode, the operands would be treated as zero and printed. This could potentially be slightly confusing. This patch changes the behaviour to print the raw bytes instead. Reviewed by: ikudrin Differential Revision: https://reviews.llvm.org/D81570
-
Simon Pilgrim authored
ProfileSummary was depending on other headers (notably WithColor.h) to define format().
-
Simon Pilgrim authored
StatepointLowering defines a cl::opt but don't include CommandLine.h.
-
Simon Pilgrim authored
LowLevelType was depending on other headers (notably WithColor.h) to define dbgs().
-
Martin Storsjö authored
Differential Revision: https://reviews.llvm.org/D82265
-
Florian Hahn authored
This updates the MemorySSA backed implementation to treat arguments passed by value similar to allocas: in they are assumed to be invisible in the caller. This is similar to how they are treated in legacy DSE. Reviewers: efriedma, asbirlea, george.burgess.iv Reviewed By: efriedma Differential Revision: https://reviews.llvm.org/D82222
-
Richard Smith authored
Also, do not dump the desugared type for a TemplateSpecializationType twice.
-
Alex Lorenz authored
macOS goes to 11! This commit adds support for the new version number by ensuring that existing version comparison routines, and the 'darwin' OS identifier understands the new numbering scheme. It also adds a new utility method 'getCanonicalVersionForOS', which lets users translate some uses of macOS 10.16 into macOS 11. This utility method will be used in upcoming clang and swift commits. Differential Revision: https://reviews.llvm.org/D82337
-
Siva Chandra Reddy authored
Reviewers: asteinhauser Differential Revision: https://reviews.llvm.org/D82330
-
Michael Liao authored
Summary: - When promoting a pointer from memory to register, SROA skips pointers from different address spaces. However, as `ptrtoint` and `inttoptr` are defined as no-op casts if that integer type has the same as the pointer value, generate the pair of `ptrtoint`/`inttoptr` (no-op cast) sequence to convert pointers from different address spaces if they have the same size. Reviewers: arsenm, chandlerc, lebedev.ri Subscribers: Differential Revision: https://reviews.llvm.org/D81943
-
Max Kazantsev authored
We can sometimes replace a select with a Phi node if all of its values are available on respective incoming edges. Differential Revision: https://reviews.llvm.org/D82005 Reviewed By: nikic
-
Michael Liao authored
Summary: - AssertAlign node records the guaranteed alignment on its source node, where these alignments are retrieved from alignment attributes in LLVM IR. These tracked alignments could help DAG combining and lowering generating efficient code. - In this patch, the basic support of AssertAlign node is added. So far, we only generate AssertAlign nodes on return values from intrinsic calls. - Addressing selection in AMDGPU is revised accordingly to capture the new (base + offset) patterns. Reviewers: arsenm, bogner Subscribers: jvesely, wdng, nhaehnle, tpr, hiraditya, kerbowa, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D81711
-
Richard Smith authored
templated class. When a defaulted operator<=> results in the injection of a defaulted operator==, that operator== can be named by unqualified name within the same class, even if the class is templated. To make this work, perform the transform from defaulted operator<=> to defaulted operator== in the template definition context instead of the template instantiation context. This results in our substituting into a declaration from a context where we don't have a full list of template arguments (or indeed any), for which we are now more careful to not spuriously instantiate declarations that are not dependent on the arguments we're substituting.
-
Wen-Heng (Jack) Chung authored
Differential Revision: https://reviews.llvm.org/D82304
-
Wen-Heng (Jack) Chung authored
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/D82333
-
Richard Smith authored
specializations and those that are done as part of rewrites. Do not create Subst* nodes in the latter. We previously had a hybrid of these two behaviors where we would only create some Subst* nodes but not others during deduction guide rewrites. No functional change intended, but the resulting ASTs are more principled.
-
Amy Kwan authored
This patch implements builtins for the following prototypes for the VSX Permute Control Vector Generate with Mask Instructions: vector unsigned char vec_genpcvm (vector unsigned char, const int); vector unsigned short vec_genpcvm (vector unsigned short, const int); vector unsigned int vec_genpcvm (vector unsigned int, const int); vector unsigned long long vec_genpcvm (vector unsigned long long, const int); Differential Revision: https://reviews.llvm.org/D81774
-
Sanjay Patel authored
This is the integer sibling to D81491. (a[0] + a[1] + a[2] + a[3]) - (b[0] + b[1] + b[2] +b[3]) --> (a[0] - b[0]) + (a[1] - b[1]) + (a[2] - b[2]) + (a[3] - b[3]) Removing the "experimental" from these intrinsics is likely not too far away.
-
Sanjay Patel authored
-
Sanjay Patel authored
-
Ayke van Laethem authored
Add disassembly support for the movw, adiw, and sbiw instructions. I had previously committed test cases for the adiw and sbiw instructions, but had accidentally made them not runnable so they were skipped all this time. Oops. This patch fixes that by adding support for disassembling those instructions. Differential Revision: https://reviews.llvm.org/D82093
-
Ayke van Laethem authored
Some instructions have a fixed Z register and don't have an explicit register operand. This can be worked around by simply printing the operand directly if the particular register class is detected. The LPM and ELPM instructions also needed a custom decoder, which is also included in this patch. Differential Revision: https://reviews.llvm.org/D82088
-
Ayke van Laethem authored
These can often only use a limited range of registers, and apparently need special decoding support. Differential Revision: https://reviews.llvm.org/D81971
-
Ayke van Laethem authored
This is a set of instructions that take just a single register as an operand, with no immediates. Because all instructions share the same format, I haven't added exhaustive bit testing to all instructions but just to the inc instruction. Differential Revision: https://reviews.llvm.org/D81968
-
Ayke van Laethem authored
I'm not entirely sure why this was ever needed, but when I remove both adjustments all tests still pass. This fixes a bug where a long branch (using the `jmp` instead of the `rjmp` instruction) was incorrectly adjusted by 2 because it jumps to an absolute address instead of a PC-relative address. I could have added AVR::fixup_call to the list of exceptions, but it seemed more sensible to me to just remove this code. Differential Revision: https://reviews.llvm.org/D78459
-
Alexander Shaposhnikov authored
This diff adds support for deleting an rpath from a Mach-O binary. Patch by Sameer Arora! Test plan: make check-all Differential revision: https://reviews.llvm.org/D81527
-
Richard Smith authored
inner non-type pack at a different index. We previously considered the index of the outer pack (which would refer to an unrelated template parameter) to be deduced by deducing the inner pack, because we inspected the (largely meaningless) type of an expanded non-type template parameter pack.
-
Richard Smith authored
declarations in AST dumps. Includes a testcase for deduction guide transformation that makes use of this new dumping feature.
-
Rahul Joshi authored
Differential Revision: https://reviews.llvm.org/D82334
-
Sam Clegg authored
This allows code for handling externref values to be processed by the assembler and linker. Differential Revision: https://reviews.llvm.org/D81977
-
Eric Schweitz authored
-
Christopher Tetreault authored
Reviewers: efriedma, greened, c-rhodes, david-arm, dmgreen Reviewed By: dmgreen Subscribers: tschuett, kristof.beyls, hiraditya, rkruppe, psnobl, dmgreen, danielkiss, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D82216
-
Rahul Joshi authored
- Fixed a bug in hasNItems() - Extend the STLExtras unit test to test hasSingleElement() and hasNItems() and friends. Differential Revision: https://reviews.llvm.org/D82232
-
Arthur Eubanks authored
Summary: Simply check AI->isStaticAlloca instead of reimplementing checks for static/dynamic allocas. Reviewers: efriedma Subscribers: hiraditya, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D82328
-
Xun Li authored
Summary: This patch addresses https://bugs.llvm.org/show_bug.cgi?id=46256 The spec of coroutine requires that the expression co_await promise.final_suspend() shall not be potentially-throwing. To check this, we recursively look at every call (including Call, MemberCall, OperatorCall and Constructor) in all code generated by the final suspend, and ensure that the callees are declared with noexcept. We also look at any returned data type that requires explicit destruction, and check their destructors for noexcept. This patch does not check declarations with dependent types yet, which will be done in future patches. Updated all tests to add noexcept to the required functions, and added a dedicated test for this patch. This patch might start to cause existing codebase fail to compile because most people may not have been strict in tagging all the related functions noexcept. Reviewers: lewissbaker, modocache, junparser Reviewed By: modocache Subscribers: arphaman, junparser, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D82029
-
Jacques Pienaar authored
Add option to filter which op the OpDefinitionsGen run on. This enables having multiple ops together in the same TD file but generating different CC files for them (useful if one wants to use multiclasses or split out 1 dialect into multiple different libraries). There is probably more general query here (e.g., split out all ops that don't have a verify method, or that are commutative) but filtering based on op name (e.g., test.a_op) seemed a reasonable start and didn't require inventing a query specification mechanism here. Differential Revision: https://reviews.llvm.org/D82319
-
Craig Topper authored
Recommit "[X86] Calculate the needed size of the feature arrays in _cpu_indicator_init and getHostCPUName using the size of the feature enum." Hopefully this version will fix the previously buildbot failure
-
Greg Clayton authored
Summary: Previous code would try to verify DW_AT_ranges and if any ranges would overlap, it would stop attributing any ranges after this to the DIE which caused incorrect errors to be reported that a DIE's address ranges were not contained in the parent DIE's ranges. Added a fix and a test. Reviewers: aprantl, labath, probinson, JDevlieghere, jhenderson Subscribers: hiraditya, MaskRay, cmtice, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D79962
-