- Jun 24, 2022
-
-
Carl Ritson authored
If an instruction is sunk into a loop then any kill flags on operands declared outside the loop must be cleared as these will be live for all loop iterations. Fixes #46827 Reviewed By: MatzeB Differential Revision: https://reviews.llvm.org/D126754
-
Douglas Yung authored
This reverts commit 8b987ca5. This change breaks several Windows bots - https://lab.llvm.org/buildbot/#/builders/123/builds/11371 - https://lab.llvm.org/buildbot/#/builders/117/builds/7685 - https://lab.llvm.org/buildbot/#/builders/42/builds/6077 - https://lab.llvm.org/buildbot/#/builders/216/builds/6340
-
Kai Luo authored
Fixes build https://lab.llvm.org/buildbot/#/builders/214/builds/1980.
-
Lian Wang authored
Reviewed By: craig.topper, david-arm Differential Revision: https://reviews.llvm.org/D128038
-
Kai Luo authored
In the context of atomic load, integer, pointer and float point types are allowed, thus we should allow llvm.ppc.cfence to accept any type mentioned. Fixes https://github.com/llvm/llvm-project/issues/55983. Reviewed By: shchenz, vchuravy Differential Revision: https://reviews.llvm.org/D127554
-
Lian Wang authored
Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D128239
-
Lei Zhang authored
spv.bitcast from a vector to a scalar expects the lower-numbered components of the the vector to map to the lower-ordered bits of the scalar. That actually already matches how little endian stores data in the memory. So we just need to read and push to the back of the vector sequentially. Reviewed By: hanchung Differential Revision: https://reviews.llvm.org/D128473
-
Casey Carter authored
-
Dmitri Gribenko authored
Use the if/while statement right paren location instead of the end of the condition expression to determine if the semicolon is on its own line, for the purpose of not warning about code like this: while (foo()) ; Using the condition location meant that we would also not report a warning on code like this: while (MACRO(a, b)); body(); The right paren loc wasn't stored in the AST or passed into Sema::ActOnIfStmt when this logic was first written. Reviewed By: rnk, gribozavr2 Differential Revision: https://reviews.llvm.org/D128406 -
Greg Clayton authored
An upcoming patch to LLDB will require the ability to decode base64. This patch adds support for decoding base64 and adds tests. Differential Revision: https://reviews.llvm.org/D126254
-
Evgenii Stepanov authored
llvm/lib/Analysis/LoopCacheAnalysis.cpp:702:30: runtime error: signed integer overflow: 6148914691236517209 * 100 cannot be represented in type 'long' https://lab.llvm.org/buildbot/#/builders/5/builds/25185 This reverts commit 1b24fe34.
-
Frederik Gossen authored
Add the reverse functions to the ViewLikeInterface's functions `getMixedStrides`, `getMixedSizes`, and `getMixedOffsets`. The new functions are useful to build view-like operations from an array of mixed static/dynamic values. Differential Revision: https://reviews.llvm.org/D128376
-
Philip Reames authored
-
Daniel Bertalan authored
-
Jonas Devlieghere authored
Support stripping the PAC bits from Objective-C ISA pointers in the Objective-C runtime plugin.
-
Hui Xie authored
Revert "[libc++] P2321R2 section [tuple.tuple]. Adding C++23 constructors, assignment operators and swaps to `tuple`" When merging the changes of <type_traits> header with the commits on this header over the last month, several conflicts were mistaken resolved and the wrong branch was picked while resolving conflicts, which leads to CI failure. In order to resolve the conflicts properly with qualification CI job, this change is reverted. This reverts commit 95733a55.
-
Derek Schuff authored
When parsing name and linking sections, we currently require that the object must have a code section (it seems that this was intended to verify section ordering). However it can be useful for binaries to have their code sections stripped out (e.g. if we just want the debug info). In that case we need the rest of the known sections (so e.g. we know how many functions there are, to verify the name section) but not the actual code. I've removed the restriction completely. I think this is OK because the section-parsing code already checks function and global indices in many places for validity and will return appropriate errors if the relevant sections are missing. Also we can't just replace the requirement of seeing a code section with a requirement that we see a function or global section, because a binary may just not have any functions or globals. But there's only an problem if the name or linking section tries to name a nonexistent function. Part of a fix for https://github.com/emscripten-core/emscripten/issues/13084 Differential Revision: https://reviews.llvm.org/D128094
-
Chelsea Cassanova authored
This makes the LLDB fuzzers write their fuzzer artifacts to their own directory in the build directory. It also adds an artifact prefix to the target fuzzer to make it easier to tell which fuzzer wrote the artifact. Differential revision: https://reviews.llvm.org/D128450
-
Jim Ingham authored
Fix it so it says it does what it does.
-
Siva Chandra Reddy authored
This reverts commit 306f2731. The CMake version used by the bots does like it.
-
Siva Chandra Reddy authored
The internal header library target with name suffix .__header_library has been removed as it serves no purpose now.
-
Siva Chandra Reddy authored
-
Congzhe Cao authored
This is the second attempt to land this patch. The patch proposed to use a new cost model for loop interchange, which is obtained from loop cache analysis. Given a loopnest, what loop cache analysis returns is a vector of loops [loop0, loop1, loop2, ...] where loop0 should be replaced as the outermost loop, loop1 should be placed one more level inside, and loop2 one more level inside, etc. What loop cache analysis does is not only more comprehensive than the current cost model, it is also a "one-shot" query which means that we only need to query it once during the entire loop interchange pass, which is better than the current cost model where we query it every time we check whether it is profitable to interchange two loops. Thus complexity is reduced, especially after D120386 where we do more interchanges to get the globally optimal loop access pattern. Updates made to test cases are mostly minor changes and some corrections. One change that applies to all tests is that we added an option `-cache-line-size=64` to the RUN lines. This is ensure that loop cache analysis receives a valid number of cache line size for correct analysis. Test coverage for loop interchange is not reduced. Currently we did not completely remove the legacy cost model, but keep it as fall-back in case the new cost model did not run successfully. This is because currently we have some limitations in delinearization, which sometimes makes loop cache analysis bail out. The longer term goal is to enhance delinearization and eventually remove the legacy cost model compeletely. Reviewed By: bmahjour, #loopoptwg Differential Revision: https://reviews.llvm.org/D124926
-
Siva Chandra Reddy authored
This is mostly a mechanical change. In a future pass, all tests from pthread which create threads will also be converted to integration tests. Some of thread related features are tightly coupled with the loader. So, they can only be tested with the in-house loader. Hence, going forward, all tests which create threads will have to be integration tests. Reviewed By: lntue Differential Revision: https://reviews.llvm.org/D128381
-
Hui Xie authored
[libc++] P2321R2 section [tuple.tuple]. Adding C++23 constructors, assignment operators and swaps to `tuple` 1. for constructors that takes cvref variation of tuple<UTypes...>, there used to be two SFINAE helper _EnableCopyFromOtherTuple, _EnableMoveFromOtherTuple. And the implementations of these two helpers seem to slightly differ from the spec. But now, we need 4 variations. Instead of adding another two, this change refactored it to a single one _EnableCtrFromUTypesTuple, which directly maps to the spec without changing the C++11 behaviour. However, we need the helper __copy_cvref_t to get the type of std::get<i>(cvref tuple<Utypes...>) for different cvref, so I made __copy_cvref_t to be available in C++11. 2. for constructors that takes variations of std::pair, there used to be four helpers _EnableExplicitCopyFromPair, _EnableImplicitCopyFromPair, _EnableImplicitMoveFromPair, _EnableExplicitMoveFromPair. Instead of adding another four, this change refactored into two helper _EnableCtrFromPair and _BothImplicitlyConvertible. This also removes the need to use _nat 3. for const member assignment operator, since the requirement is very simple, I haven't refactored the old code but instead directly adding the new c++23 code. 4. for const swap, I pretty much copy pasted the non-const version to make these overloads look consistent 5. while doing these change, I found two of the old constructors wasn't marked constexpr for C++20 but they should. fixed them and added unit tests Reviewed By: #libc, ldionne Differential Revision: https://reviews.llvm.org/D116621
-
Louis Dionne authored
A situation that happens fairly often in libc++ is that we remove some transitive includes in a header (either purposefully or not) and that ends up breaking users. Of course, we want to be able to remove our transitive includes, however it's also good to have a grip on that to know which commit changed what and when. Furthermore, it's good to accumulate include removals for a couple of releases to avoid breaking users at every release for this reason. This commit adds a test that should break whenever we remove an include. Hence, it should allow us to track which headers include which other headers transitively, giving us a traceable way to remove headers. Differential Revision: https://reviews.llvm.org/D128236
-
David Blaikie authored
Simplify debug info back to just "limited" or "full" by rolling the ctor type homing fully into the "limited" debug info. Also fix a bug I found along the way that was causing ctor type homing to kick in even when something could be vtable homed (where vtable homing is stronger/more effective than ctor homing) - fixing at the same time as it keeps the tests (that were testing only "limited non ctor" homing and now test ctor homing) passing.
-
Xiang Li authored
HLSL supports half type. When enable-16bit-types is not set, half will be treated as float. When enable-16bit-types is set, half will be treated like real 16bit float type and map to llvm half type. Also change CXXABI to Microsoft to match dxc behavior. The mangle name for half is "$f16@" when half is treat as native half type and "$halff@" when treat as float. In AST, half is still half. The special thing is done at clang codeGen, when NativeHalfType is false, half will translated into float. Reviewed By: aaron.ballman Differential Revision: https://reviews.llvm.org/D124790
-
Nico Weber authored
`--time-trace=foo` has the same behavior as `--time-trace --time-trace-file=<file>` had previously. Also, for mac, make --time-trace-granularity *not* imply --time-trace, to match behavior of the ELF port. Differential Revision: https://reviews.llvm.org/D128451
-
Philip Reames authored
If we have an unaligned uniform store, then when costing a scalable VF we can't emit code to scalarize it. (Well, we could, but we haven't implemented that case.) This change replaces an assert with a cost-model bailout such that we reject vectorization with the scalable VF instead of crashing.
-
Joseph Huber authored
Previously, when using the new driver we created a fatbinary with the PTX and Cubin output. This was mainly done in an attempt to create some backwards compatibility with the existing CUDA support that embeds the fatbinary in each TU. This will most likely be more work than necessary to actually implement. The linker wrapper cannot do anything with these embedded PTX files because we do not know how to link them, and if we did want to include multiple files it should go through the `clang-offload-packager` instead. Also this didn't repsect the setting that disables embedding PTX (although it wasn't used anyway). Reviewed By: tra Differential Revision: https://reviews.llvm.org/D128441
-
Jin Xin Ng authored
Allows ThinLTO indices to be written to disk on-the-fly/as-part-of “normal” linker execution. Previously ThinLTO indices could be written via --thinlto-index-only but that would cause the linker to exit early. For MLGO specifically, this enables saving the ThinLTO index files without having to restart the linker to collect data only available at later stages (i.e. output of --save-temps) of the linker's execution. Note, this option does not currently work with: --thinlto-object-suffix-replace, as this is intended to be used to consume minimized IR bitcode files while --thinlto-emit-index-files is intended to be run together with InProcessThinLTO (which cannot parse minimized IR). --thinlto-prefix-replace support is left unimplemented but can be implemented if needed Differential Revision: https://reviews.llvm.org/D127777
-
Nicolas Vasilache authored
Such situations manifest themselves with an empty payload which ends up producing empty results. In such cases, we still want to match the transform op contract and return as many empty SmallVector<Operation*> as the op requires. Differential Revision: https://reviews.llvm.org/D128456
-
Nathan James authored
The current way to specify CheckOptions is pretty verbose and unintuitive. Given that the options are a dictionary it makes much more sense to treat them as such in the config files. Example: ``` CheckOptions: {SomeCheck.Option: true, SomeCheck.OtherOption: 'ignore'} # Or CheckOptions: SomeCheck.Option: true SomeCheck.OtherOption: 'ignore' ``` This change will still handle the old syntax with no issue, ensuring we don't screw up users current config files. The only observable differences are support for the new syntax and `-dump=config` will emit using the new syntax. Reviewed By: aaron.ballman Differential Revision: https://reviews.llvm.org/D128337 -
Med Ismail Bennani authored
This should fix the build failure occuring when enabling modules (LLVM_ENABLE_MODULES=On): https://green.lab.llvm.org/green/job/lldb-cmake/44785/ Signed-off-by:
Med Ismail Bennani <medismail.bennani@gmail.com>
-
Sam McCall authored
This is a ~2% speedup.
-
Alexey Bataev authored
If the masked gather nodes must be reordered, we can just reorder scalars, just like for gather nodes. But if the node contains reused scalars, it must be handled same way as a regular vectorizable node, since need to reorder reused mask, not the scalars directly. Differential Revision: https://reviews.llvm.org/D128360
-
Peter Klausler authored
G0 output editing should never overflow an output field and fill it with asterisks. It should also never elide the "E" in an exponent field, even if it has more than three digits. Differential Revision: https://reviews.llvm.org/D128396
-
Nathan James authored
Adds a `-verify-config` command line argument, that when specified will verify the Checks and CheckOptions fields in the config files: - A warning will be raised for any check that doesn't correspond to a registered check, a suggestion will also be emitted for close misses. - A warning will be raised for any check glob(containing *) that doesn't match any registered check. - A warning will be raised for any CheckOption that isn't read by any registered check, a suggestion will also be emitted for close misses. This can be useful if debuging why a certain check isn't enabled, or the options are being handled as you expect them to be. Reviewed By: aaron.ballman Differential Revision: https://reviews.llvm.org/D127446
-
Peter Klausler authored
Replace the latter half of the SQRT() folding algorithm with code that calculates an exact root with extra rounding bits, and then lets the usual normalization and rounding code do the right thing. Extend tests to catch regressions. Differential Revision: https://reviews.llvm.org/D128395
-