- Mar 11, 2023
-
-
Shao-Ce SUN authored
Fix issue [#61260](https://github.com/llvm/llvm-project/issues/61260) Reviewed By: awarzynski Differential Revision: https://reviews.llvm.org/D145845
-
Simon Pilgrim authored
-
Mike Crowe authored
This requires operator[] to be added to the std::basic_string implementation. Depends on D144216 Reviewed By: carlosgalvezp Differential Revision: https://reviews.llvm.org/D145310
-
Kiran Chandramohan authored
Change a few variable/class names to be in line with guidelines.
-
Florian Hahn authored
Simplify the code as suggested in D143865.
-
Jez Ng authored
This is also what ld64 does. This will make it easier to compare their respective map files. Reviewed By: #lld-macho, thevinster Differential Revision: https://reviews.llvm.org/D145654
-
Jez Ng authored
If a symbol is pulled in from an archive, we should include the archive name in the map file output. This is what ld64 does. Note that we aren't using `toString(InputFile*)` here because it includes the install name for dylibs in its output, and ld64's map file does not contain those. Reviewed By: #lld-macho, smeenai Differential Revision: https://reviews.llvm.org/D145623
-
Jez Ng authored
This supersedes {D139069}. In some ways we are now closer to ld64's behavior: we previously only did this coalescing for private-label symbols, but now we do it for all locals, just like ld64. However, we no longer generate weak binds when a local alias to a weak symbol is referenced. This is merely for implementation simplicity; it's not clear to me that any real-world programs depend on us emulating this behavior. The problem with the previous approach is that we ended up with duplicate references to the same symbol instance in our InputFiles, which translated into duplicate symbols in our output. While we could work around that problem by performing a dedup step before emitting the symbol table, it seems cleaner to not generate duplicate references in the first place. Numbers for chromium_framework on my 16 Core Intel Mac Pro: base diff difference (95% CI) sys_time 2.243 ± 0.093 2.231 ± 0.066 [ -2.5% .. +1.4%] user_time 6.529 ± 0.087 6.080 ± 0.050 [ -7.5% .. -6.3%] wall_time 6.928 ± 0.175 6.474 ± 0.112 [ -7.7% .. -5.4%] samples 26 31 Yep, that's a massive win... because it turns out that {D140606} and {D139069} caused a regression (of about the same size.) I just didn't think to measure them back then. I'm guessing all the extra symbols we have been emitting did not help perf at all... Reviewed By: lgrey Differential Revision: https://reviews.llvm.org/D145455 -
Vitaly Buka authored
Breaks build bots, details in D145718. This reverts commit 7de77515.
-
Vitaly Buka authored
We are seeing CHECK is triggered there, but it's unclear why.
-
Fangrui Song authored
-
bixia1 authored
Reviewed By: aartbik Differential Revision: https://reviews.llvm.org/D145440
-
Craig Topper authored
Instead of hardcoding the -1.0 exponent and mantissa separately from the table, reuse the table entry for 1.0. When searching the table we can change index 16 to index 0 if the sign is negative. Or when indexing we can change index 0 to index 16 and remember that we need to flip the sign. I'm going to make another patch that has a f16 and f64 table and this makes the code for those more similar.
-
Tom Stellard authored
(re-commit of cb38df4c with the correct commit message) Reviewed By: phosek, kwk Differential Revision: https://reviews.llvm.org/D138472
-
Tom Stellard authored
This reverts commit cb38df4c. I accidentally committed this with the wrong commit message.
-
Tom Stellard authored
Stand-alone builds need an installed version of gtest in order to run the unittests. Reviewed By: mgorny, kwk Differential Revision: https://reviews.llvm.org/D137890
-
Luo, Yuanke authored
-
Arthur Eubanks authored
-
Craig Topper authored
We only need 2 bits of mantissa. The third bit was always 0.
-
Luo, Yuanke authored
-
Jacek Caban authored
It's required by Python 3.12, from https://docs.python.org/3.12/library/random.html "Changed in version 3.12: Automatic conversion of non-integer types is no longer supported." Reviewed By: #lld-macho, int3 Differential Revision: https://reviews.llvm.org/D145826
-
Pavel Kopyl authored
This fixes parameter names mismatch in anonymous functions. Differential Revision: https://reviews.llvm.org/D144407
-
Yuanfang Chen authored
credits to @jmagee
-
Tom Stellard authored
Stand-alone builds need an installed version of gtest in order to run the unittests. Reviewed By: mgorny, kwk Differential Revision: https://reviews.llvm.org/D137890
-
Arthur Eubanks authored
DFAJumpThreading JumpThreading LibCallsShrink LoopVectorize SLPVectorizer DeadStoreElimination AggressiveDCE CorrelatedValuePropagation IndVarSimplify These are part of the optimization pipeline, of which the legacy version is deprecated and being removed.
-
Alex Langford authored
These do the same thing but we have a specific function for it.
-
Leonard Chan authored
"Interceptors" in this file aren't like the traditional interceptors used by other sanitizers like asan. They're simply aliases to the equivalent __sanitizer_* functions. This also removes the WRAP(FN) declaration since it just creates declarations for __interceptor_* functions but they seem to be unused. Differential Revision: https://reviews.llvm.org/D145718
-
Philip Reames authored
This takes the approach of using the loop based formation for scalable vectors only. We could potentially use the loop form for fixed vectors only, but we'd loose the unroll and specialize on constant vector logic which is already present. I don't have a strong opinion on whether the existing logic is worthwhile, I kept it mostly to minimize test churn. Worth noting is that there is a better lowering available. The plain vector lowering appears to check only the first and last byte. By analogy, we should be able to check only the first active and last active byte in the masked op. This is a more invasive change to asan, and I decided simply supporting scalable vectors at all was a better starting place. Differential Revision: https://reviews.llvm.org/D145198
-
Kirill Stoimenov authored
This is a reland of a single file from D145727, which was reverted in 25ba9dcf. This test is using exact line number in the checks so if anything is rearranged the test fails. Moving hwasan on the same line fixes that issue. Reviewed By: vitalybuka Differential Revision: https://reviews.llvm.org/D145822
-
Philip Reames authored
This is a follow on to D145108. This started as simply fixing the crash on an error case reported against that change, but I think this also ends up fixing the original reported issue (https://github.com/llvm/llvm-project/issues/49830) as well. More accurately, D145108 fixed the case where the cast resolves to an existing record, and this change fixes the case where the named record doesn't exist. Differential Revision: https://reviews.llvm.org/D145711
-
Chris Bieneman authored
I missed adding these in my last cleanup change :(
-
Peiming Liu authored
Reviewed By: aartbik Differential Revision: https://reviews.llvm.org/D141532
-
Joseph Huber authored
Summary: This variable was named incorrectly. We weren't getting needed flags passed to object library builds.
-
Matteo Franciolini authored
A dialect can opt-in to handle versioning through the `BytecodeDialectInterface`. Few hooks are exposed to the dialect to allow managing a version encoded into the bytecode file. The version is loaded lazily and allows to retrieve the version information while parsing the input IR, and gives an opportunity to each dialect for which a version is present to perform IR upgrades post-parsing through the `upgradeFromVersion` method. Custom Attribute and Type encodings can also be upgraded according to the dialect version using readAttribute and readType methods. There is no restriction on what kind of information a dialect is allowed to encode to model its versioning. Currently, versioning is supported only for bytecode formats. Reviewed By: rriddle, mehdi_amini Differential Revision: https://reviews.llvm.org/D143647
-
ManuelJBrito authored
This reverts commit 1a4d0eb8.
-
Matthew Voss authored
When the runtime dir path includes whitespace (ex. when it's installed under "Program Files" on Windows), the lack of quotes causes the linker to interpret the path as one or more arguments. None of these path fragments exist, so the link fails. Differential Revision: https://reviews.llvm.org/D145827
-
Peter Steinfeld authored
Patch D145640 wasn't building for me because .cpp files in flang/lib/Optimizer/Dialect depend on the files generated in .../build/include/llfm/IR. But the .cpp file compilations were being done before the needed include files were generated. This patch fixes that by adding dependencies on "intrinsics_gen" to the CMake files in two directories. Differential Revision: https://reviews.llvm.org/D145825
-
Arthur Eubanks authored
This reverts commit 818e554e. Causes miscompiles, see comments on D141188.
-
Alexey Bataev authored
Previously only the very first gather/buildvector node might be probed for reshuffling of other nodes. But the compiler may do the same for other gather/buildvector nodes too, just need to check the dependency and postpone the emission of the dependent nodes, if the origin nodes were not emitted yet. Part of D110978 Differential Revision: https://reviews.llvm.org/D144958
-
Ben Langmuir authored
The idea is to split the callbacks that are used to consume dependency information (DependencyConsumer) from callbacks that modify the scan behaviour itself in any way (DependencyActionController). Currently this is just lookupModuleOutput, but we have additional callbacks related to CAS support that we intend to upstream in the future. Differential Revision: https://reviews.llvm.org/D144058
-