- Jan 19, 2022
-
-
Ayke van Laethem authored
D46245 added support for this in llvm-libtool, but while lld-link can also create .lib files from .def files it didn't support aliases. I compared the Inputs/library.def test against the output from llvm-libtool and it matches, except for the fact that lld-link reorders functions for some reason. I have also verified that this fixes a bug I was running into while trying to compile .def files to .lib files in MinGW-w64 (using lld-link instead of llvm-libtool). Differential Revision: https://reviews.llvm.org/D113365
-
Benjamin Kramer authored
Also run buildifier.
-
Haojian Wu authored
E.g. `Concept auto Func();` The nameLoc for the constained auto type loc pointed to the concept name loc, it should be the auto token loc. This patch fixes it, and remove a relevant hack in clang-tidy check. Reviewed By: sammccall Differential Revision: https://reviews.llvm.org/D117009
-
Benjamin Kramer authored
-
Kadir Cetinkaya authored
Targets are not necessarily inserted in the order they appear in source code. For example we could traverse overload sets, or selectively insert template patterns after all other decls. So order the targets before printing to make sure tests are not dependent on such implementation details. We can also do it in production, but that might be wasteful as we haven't seen any complaints in the wild around these orderings yet. Differential Revision: https://reviews.llvm.org/D117549
-
Matthias Springer authored
This separates the analysis (and its helpers/data structures) more clearly from the rest of the bufferization. Differential Revision: https://reviews.llvm.org/D117477
-
Denys Shabalin authored
Fixes incorrect build definition for the bindings for the PDL dialect. Reviewed By: ftynse Differential Revision: https://reviews.llvm.org/D117657
-
Jay Foad authored
This prevents the compares from being optimized away when D86578 lands, which seems unintended. Also fixed some unused results.
-
Jim Lin authored
-
Nikita Popov authored
Now that DSE handles inaccessiblememonly calloc, mark it as such, as we do with other memory allocation functions.
-
Nikita Popov authored
Change the DSE calloc handling to assume that it is inaccessiblememonly, i.e. the defining access is liveOnEntry. Differential Revision: https://reviews.llvm.org/D117543
-
Pavel Labath authored
It complements the existing SBDebugger::SetCurrentPlatformSDKRoot and allows one to set the sysroot of a platform without making it current. Differential Revision: https://reviews.llvm.org/D117550
-
Pavel Labath authored
This macro was being used to select the proper import/export annotations on SB classes. Non-windows clients do not have such requirements. Instead introduce a new macro (LLDB_IN_LIBLLDB), which signals that we're compiling liblldb itself (and should use dllexport). The default (no macro) is to use dllimport. I've moved the macro definition to SBDefines.h, since it only makes sense when building the API library. Differential Revision: https://reviews.llvm.org/D117564
-
Pavel Labath authored
-
Pavel Labath authored
_Py_IsFinalizing was called _Py_Finalizing back then (and it was a variable instead of a function).
-
Simon Pilgrim authored
Many of the x86 scheduler models are not accounting for their microarch's ability to handle dependency-breaking zero idioms (pxor xmm0,xmm0 etc.), which is causing some notable differences when comparing llvm-mca reports to iaca, uops.info etc. These are based on the Intel AoMs and Agner's docs which list the instructions handled on each cpu model - there may be more, although tbh the xor/pxor/xorps/xorpd are by far the most commonly encountered. Once this is in place we also need to review missing support for 'allones' idioms and reg-reg move elimination, but this needs fixing first. @lebedev.ri The Barcelona test changes are due to the cpu still being tagged as using the SandyBridge model, if/when you get back to D63628 these will need to be addressed. Based on an original patch by @andreadb (Andrea Di Biagio) Differential Revision: https://reviews.llvm.org/D117497
-
Nikita Popov authored
This follows up on the work in D116599, which changed AttrBuilder to store string attributes as SmallVector<Attribute>. This patch changes the implementation to store *all* attributes as a sorted vector. This both makes the implementation simpler and improves compile-time. We get a -0.5% geomean compile-time improvement on CTMark at O0. Differential Revision: https://reviews.llvm.org/D117558
-
Nikita Popov authored
These were relying on a transitive include.
-
Ben Shi authored
Reviewed By: aykevl Differential Revision: https://reviews.llvm.org/D115982
-
Saiyedul Islam authored
Handle Sphinx's warning at line 218.
-
Nikita Popov authored
Currently, the behavior when adding an attribute with the same key as an existing attribute is inconsistent, depending on the type of the attribute and the method used to add it. When going through AttrBuilder::addAttribute(), the new attribute always overwrites the old one. When going through AttrBuilder::merge() the new attribute overwrites the existing one if it is a string attribute, but keeps the existing one for int and type attributes. One particular API also asserts that you can't overwrite an align attribute, but does not handle any of the other int, type or string attributes. This patch makes the behavior consistent by always overwriting with the new attribute, which is the behavior I would intuitively expect. Two tests are affected, which now make a different (but equally valid) choice. Those tests could be improved by taking the maximum deref bytes, but I haven't bothered with that, since this is testing a degenerate case -- the important bit is that it doesn't crash. Differential Revision: https://reviews.llvm.org/D117552
-
Sjoerd Meijer authored
I would like to move LoopFlatten from LoopPass Manager LPM2 to LPM1 (D116612), but that is a LPM that is using MemorySSA and so LoopFlatten needs to preserve MemorySSA and this adds that. More specifically, LoopFlatten restructures the CFG and with this change the MSSA state is updated accordingly, where we also update the DomTree. LoopFlatten doesn't rewrite/optimise/delete load or store instructions, so I have not added any MSSA updates for that. Differential Revision: https://reviews.llvm.org/D116660
-
Nikita Popov authored
After ed0cdb29, this is no longer used by anything, and shouldn't be used by anything.
-
Saiyedul Islam authored
Add the missing documentation for this tool. Reviewed By: sdmitriev Differential Revision: https://reviews.llvm.org/D117120
-
Nikita Popov authored
Since d56b0ad4, this method is no longer used -- and shouldn't be used.
-
Nikita Popov authored
ConstantHoist currently only hoists GEPs if there is no notional overindexing. As this transform only hoists address arithmetic, it shouldn't care about whether any overindexing occurs or not. There is one caveat: If the hoisted base GEP is inbounds, and a later non-inbounds GEP is rewritten in terms of it, the value may be incorrectly poisoned. To avoid this, restrict the transform to inbounds GEPs for now, as the notional overindexing check effectively did that as well. The inbounds restriction could be dropped by dropping inbounds from the base GEP expression. Differential Revision: https://reviews.llvm.org/D117201
-
Nikita Popov authored
AAPointerInfo currently bails on constant expression GEPs with notional overindexing. I don't think this is necessary, as the following code handling GEPOperator will deal with arbitrary indices appropriately. Differential Revision: https://reviews.llvm.org/D117203
-
Denys Shabalin authored
This change adds full python bindings for PDL, including types and operations with additional mixins to make operation construction more similar to the PDL syntax. Reviewed By: ftynse Differential Revision: https://reviews.llvm.org/D117458
-
Simon Pilgrim authored
Similar to LowerRotate, see if we can either unpack or extend to a wider type and use that type's per-element shift instruction
-
Alex Richardson authored
The gdb_pretty_printer_test.sh fails if GDB was built against Python 2.7 since Python 2 expects iterators to have a next() method rather than using __next__. To make the pretty printers work with both Python 2 and 3 we can simply set next to __next__ in the iterator classes. Python 2.7 support was removed in f46f93b4, so this partially reverts that commit. While Python 2.7 is EOL, it appears there are still many GDB installations that are linked against Python 2.7, so we may want to keep this tiny amount of compat code around for a while longer. Without this commit the tests fails with errors such as: ``` GDB printed: u"std::tuple containingTypeError: iter() returned non-iterator of type '_Children'\n" Value should match: u'std::tuple containing = {[1] = 2, [2] = 3, [3] = 4}' ``` Reviewed By: #libc, ldionne Differential Revision: https://reviews.llvm.org/D117470
-
Florian Hahn authored
After resetting the start value of the canonical IV, it might not be canonical any more. Add an assertion to make sure it is only used by its increment, to avoid potential mis-use. Suggested in D117140.
-
Stanislav Gatev authored
This reverts commit a0262043. Add the -fno-delayed-template-parsing arg to fix the failing test on Windows.
-
Piotr Sobczak authored
Ignore out of order counters when merging brackets. The fact that there was a pending event in the old state does not guarantee that the waitcnt was generated, so we still need to conservatively re-process the block. The patch fixes a correctness issue where the block was not re-processed and the waitcnt not inserted in consequence. Differential Revision: https://reviews.llvm.org/D117544
-
Matthias Springer authored
Also move `createAlloc` and related helper functions out of BufferizationState. The goal is to make BufferizationState as small as possible. (Code cleanup) Differential Revision: https://reviews.llvm.org/D117476
-
Matthias Springer authored
If not allow-return-memref, raise an error if a new memory allocation is returned/yielded from a block. We do not check for new allocations directly, but for ops that yield/return values that are not equivalent to values that are defined outside of the current of the block. Note: We still need to check that scf.for yield values and bbArgs are aliasing to ensure that getAliasingOpOperand/getAliasingOpResult is correct. Differential Revision: https://reviews.llvm.org/D116687
-
Elliott Maguire authored
Fixes https://github.com/llvm/llvm-project/issues/31568. Added a check for operator keyword tokens. Reviewed By: MyDeveloperDay, curdeius, owenpan, HazardyKnusperkeks Differential Revision: https://reviews.llvm.org/D117421
-
Matthias Springer authored
This op is needed for unit testing in a subsequent revision. (This is the first op that has a block that yields equivalent values via the op's results.) Note: Bufferization of scf.execute_region ops with multiple blocks is not yet supported. Differential Revision: https://reviews.llvm.org/D117424
-
esmeyi authored
-
Jay Foad authored
This prevents the compares from being optimized away when D86578 lands, which seems unintended.
-