- Dec 07, 2022
-
-
serge-sans-paille authored
This is a recommit of 8ae18303, with a few cleanups. This avoids implicit conversion to StringRef at several points, which in turns avoid redundant calls to strlen. As a side effect, this greatly simplifies the implementation of StrCmpOptionNameIgnoreCase. It also eventually gives a consistent, humble speedup in compilation time (timing updated since original commit). https://llvm-compile-time-tracker.com/compare.php?from=76fcfea283472a80356d87c89270b0e2d106b54c&to=b70eb1f347f22fe4d2977360c4ed701eabc43994&stat=instructions:u Differential Revision: https://reviews.llvm.org/D139274
-
Daniel Kiss authored
Macros are added to ACLE[1] and already added to ARM but these two are missing from AArch64. [1] https://github.com/ARM-software/acle/blob/main/main/acle.md#changes-between-acle-q3-2021-and-acle-q4-2021 Reviewed By: chill Differential Revision: https://reviews.llvm.org/D139445
-
Matthias Springer authored
Differential Revision: https://reviews.llvm.org/D139540
-
Hans Wennborg authored
They were previously not handled, causing the llvm_unreachable with "getIntegerRank(): not a built-in integer" message to be hit. The test case is derived from how we hit it in Chromium (crbug.com/1396142). I tried to come up with something more direct, but this is the best I could find. Differential revision: https://reviews.llvm.org/D139428
-
Jens Massberg authored
[clang] Correctly handle by-reference capture with an initializer that is a pack expansion in lambdas. Ensure that the correct information whether an init-capture of a lambda is passed by reference or by copy. This information is already computed and has to be passed to the place where `NewInitCaptureType` is created. Before this fix it has been checked whether the VarDecl is a reference type. This doesn't work for packed expansions, as the information whether it is passed by reference or by copy is stored at the pattern of a `PackExpansionType` and not at the type itself. However, as the information has been already computed, we just have to pass it. Add tests that lambda captures with var decls which are reference types are created in the AST and a disgnotics test for pack expansions. Fixes #49266 Differential Revision: https://reviews.llvm.org/D139125
-
Guillaume Chatelet authored
Before performing this change, I checked that `ByteAlignment` was never `0` inside `MCAsmStreamer:emitZeroFill` and `MCAsmStreamer::emitLocalCommonSymbol`. I believe it is NFC as `0` values are illegal in `emitZeroFill` anyways, `Log2(ByteAlignment)` would be undefined. And currently, all calls to `emitLocalCommonSymbol` are provably `>0`. Differential Revision: https://reviews.llvm.org/D139439
-
Guillaume Chatelet authored
This breaks Windows bots with `warning C4334: '<<': result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?)` Some shift operators are lacking a proper literal unit ('1ULL' instead of '1'). Will reland once fixed. This reverts commit c621c1a8. -
Nikita Popov authored
We were using umin_seq when computing the exact BE count, but not when computing the symbolic max BE count.
-
Will Dietz authored
When running in parallel, nesting more than once caused statistics to be dropped. Fix by also preparing "async" pass managers before merging, as they may also have "async" pass managers within. Add test checking reported statistics have expected values with and without threading enabled. Reviewed By: rriddle Differential Revision: https://reviews.llvm.org/D139459
-
Guillaume Chatelet authored
Before performing this change, I checked that `ByteAlignment` was never `0` inside `MCAsmStreamer:emitZeroFill` and `MCAsmStreamer::emitLocalCommonSymbol`. I believe it is NFC as `0` values are illegal in `emitZeroFill` anyways, `Log2(ByteAlignment)` would be undefined. And currently, all calls to `emitLocalCommonSymbol` are provably `>0`. Differential Revision: https://reviews.llvm.org/D139439
-
Nikita Popov authored
-
Simon Pilgrim authored
-
Simon Pilgrim authored
-
Simon Pilgrim authored
Minor cleanup - we only use the non-null pointer inside the if() block
-
Daniel Kiss authored
This reverts commit cfd44221.
-
Florian Hahn authored
Reviewed By: nikic Differential Revision: https://reviews.llvm.org/D139482
-
Krzysztof Parzyszek authored
-
Nico Weber authored
When this test was originally added in 991dfedfd738ce, it didn't pass `-o` to to llc, causing llc to write a .s file to the source directory. On the next run, lit would then try to run that as a test. Make the test auto-cleanup that file for a while.
-
Quentin Colombet authored
The new function is a wrapper around the regular `getStridesAndOffset` that offers a more compact way (as in writing less code) of getting the relevant information. This method is intended to be used only when it is known that the LogicalResult of the regular `getStridesAndOffset` must be "succeeded". This warpper will assert on that. Differential Revision: https://reviews.llvm.org/D139529
-
Daniel Kiss authored
Macros are added to ACLE[1] and already added to ARM but these two are missing from AArch64. [1] https://github.com/ARM-software/acle/blob/main/main/acle.md#changes-between-acle-q3-2021-and-acle-q4-2021 Reviewed By: chill Differential Revision: https://reviews.llvm.org/D139445
-
Jean Perier authored
Differential Revision: https://reviews.llvm.org/D139523
-
Jean Perier authored
Same as fir.no_reassoc but accepts hlfir.expr type. It is needed because FIR operation can only produce FIR types, and I do not want to change that for now. Depends on D139519 Differential Revision: https://reviews.llvm.org/D139520
-
Jean Perier authored
hlfir.as_expr allows taking a value from a character, derived type, or array expressions. This will allow implementing parentheses. Combining as_expr + hlfir.associate will allow creating a variable copy into a new temporary variable. A later patch will add the ability to "move" a variable into an expression (to give ownership of the variable storage to the expression, with the commitment that the variable will not be used anymore). Differential Revision: https://reviews.llvm.org/D139519
-
Nico Weber authored
This would've helped find the bug mentioned in 9531fc37 faster. Differential Revision: https://reviews.llvm.org/D139432
-
Nico Weber authored
-
Peixin Qiao authored
This supports the codegen for global procedure pointer in BoxedProcedure pass. Reset the boxproc type. Reviewed By: jeanPerier Differential Revision: https://reviews.llvm.org/D138273
-
Peixin Qiao authored
This supports the codegen for procedure pointer component in BoxedProcedure pass. Also fix the FIR in ProcedurePointer.md so that all the cases can be run using `tco` to generate the LLVM IR. Reviewed By: jeanPerier Differential Revision: https://reviews.llvm.org/D136842
-
Jay Foad authored
SOPK_Pseudo was not inheriting from SOP_Pseudo at all, and some other Pseudo classes were needlessly redefining things that were already defined by SOP_Pseudo. Differential Revision: https://reviews.llvm.org/D139527
-
Ilya Biryukov authored
-
Ilya Biryukov authored
Make it possible to disable building the decision forest ranking model for clangd. To unbreak build of Clangd on PPC32 in gentoo, see https://bugs.gentoo.org/829602 Based on D138520. Reviewed By: sammccall Differential Revision: https://reviews.llvm.org/D139107
-
LLVM GN Syncbot authored
-
Nico Weber authored
-
Max Kazantsev authored
-
Haojian Wu authored
-
Haojian Wu authored
This fixes an infinite compiling loop caused by https://reviews.llvm.org/D137140 Differential Revision: https://reviews.llvm.org/D139525
-
Stephen Thomas authored
Move some code that checks if an instruction is a waitcount into a separate function, mainly to aid readability in the logic where it is used. Differential Revision: https://reviews.llvm.org/D139522
-
Janek van Oirschot authored
Simplified globalisel version of sdag's expandIS_FPCLASS. Reviewed By: arsenm, #amdgpu Differential Revision: https://reviews.llvm.org/D139128
-
Lorenzo Chelini authored
Reviewed By: hanchung Differential Revision: https://reviews.llvm.org/D139344
-
Matthias Springer authored
D138330 updated the deprecated `getMemorySpaceAsInt` uses to `getMemorySpace`. There are few uses that were missed. Differential Revision: https://reviews.llvm.org/D139526
-
Markus Böck authored
[mlir][tblgen][docs] Use correct introductionary prefix for the Syntax description of attributes and types The doc generator currently has the use of `!` as prefix hardcoded, despite being incorrect for Attributes. These start with `#`. This patch fixes that little issue by using `#` for AttrDefs and `!` for TypeDefs in the `Syntax` field of the generated Markdown file. Differential Revision: https://reviews.llvm.org/D139524
-