- Aug 11, 2023
-
-
Aaron Ballman authored
C2x was finalized at the June 2023 WG14 meeting. The DIS is out for balloting and the comment period for that closes later this year/early next year. While that does leave an opportunity for more changes to the standard during the DIS ballot resolution process, only editorial changes are anticipated and as a result, the C committee considers C2x to be final. The committee took a straw poll on what we'd prefer the informal name of the standard be, and we decided it should be called C23 regardless of what year ISO publishes it. However, because the final publication is not out, this patch does not add the language standard alias for the -std=iso9899:<year> spelling of the standard mode; that will be added once ISO finally publishes the document and the year chosen will match the publication date. This also changes the value of __STDC_VERSION__ from the placeholder value 202000L to the final value 202311L. Subsequent patches will start renaming things from c2x to c23, cleaning up documentation, etc. Differential Revision: https://reviews.llvm.org/D157606
-
Valentin Clement authored
Depends on D157530 Reviewed By: razvanlupusoru Differential Revision: https://reviews.llvm.org/D157555
-
Valentin Clement authored
The exit operation for the declare device_resident in function/subroutine is set to delete. Make is consistent and set it also for global declare. Reviewed By: razvanlupusoru Differential Revision: https://reviews.llvm.org/D157537
-
Valentin Clement authored
Generate the function dealing with the action on deallocation (pre/post) of a declare variable. Reviewed By: razvanlupusoru Differential Revision: https://reviews.llvm.org/D157530
-
Volodymyr Sapsai authored
[modules] Fix error about the same module being defined in different .pcm files when using VFS overlays. Fix errors like > module 'MultiPath' is defined in both 'path/to/modules.cache/3JR48BPRU7BCG/MultiPath-1352QHUF8RNMU.pcm' and 'path/to/modules.cache/3JR48BPRU7BCG/MultiPath-20HNSLLIUDDV1.pcm' To avoid building extra identical modules `-ivfsoverlay` option is not a part of the hash like "/3JR48BPRU7BCG/". And it is build system's responsibility to provide `-ivfsoverlay` options that don't cause observable differences. We also need to make sure the hash like "-1352QHUF8RNMU" is not affected by `-ivfsoverlay`. As this hash is defined by the module map path, use the path prior to any VFS remappings. rdar://111921464 Differential Revision: https://reviews.llvm.org/D156749
-
Elliot Whitney authored
Add two new semantics tests for `critical-construct` that test addition standard conforming and non stardard conforming statements Reviewed By: ktras Differential Revision: https://reviews.llvm.org/D157521
-
Jan Svoboda authored
Clang writes the set of textually included files into AST files, so that importers know to avoid including those files again and instead deserialize their contents from the AST on-demand. Logic for determining the set of included files files only considers headers that are either non-modular or that are modular but with `HeaderFileInfo::isCompilingModuleHeader` set. Logic for computing that bit is different than the one that determines whether to include a header textually with the "-fmodule-name=Mod" option. That can lead to header from module "Mod" being included textually in a PCH, but be omitted in the serialized set of included files. This can then allow such header to be textually included from importer of the PCH, wreaking havoc. This patch fixes that by aligning the logic for computing `HeaderFileInfo::isCompilingModuleHeader` with the logic for deciding whether to include modular header textually. As far as I can tell, this bug has been in Clang for forever. It got accidentally "fixed" by D114095 (that changed the logic for determining the set of included files) and got broken again in D155131 (which is essentially a revert of the former). rdar://113520515 Reviewed By: benlangmuir Differential Revision: https://reviews.llvm.org/D157559
-
Alina Sbirlea authored
-
Justin Bogner authored
Differential Revision: https://reviews.llvm.org/D157562
-
fridtjof authored
This enables easy consumption of arbitrary data added to this annotation in addition to the annotation category, which was already exposed. Differential Revision: https://reviews.llvm.org/D151373
-
Craig Topper authored
FRINT was added to matchRoundingOp after this function was written. So FRINT was not tested originally. For vectors, folding this causes us to create a CSR swap that tries to write 7 to FRM. This is an illegal value and will cause the CSR write to fail. While this might be a legal fold we could do, I'm disabling it for now so we can backport to LLVM 17 with the least risk. Differential Revision: https://reviews.llvm.org/D157583
-
Florian Hahn authored
VPlan has become an integral part of the inner loop vectorizer pipeline that has been actively developed over the previous years. Let's move VectorizationPlan.rst from the proposal stage to bring the docs in line and to avoid confusion when reading the docs. Reviewed By: rengolin Differential Revision: https://reviews.llvm.org/D157593
-
- Aug 10, 2023
-
-
Philip Reames authored
Original commit didn't handle the case where one of the stores was a truncating store of the build_vector. The existing codepath produced wrong code (which thankfully also failed asserts) instead of guarding against unexpected types. Original commit message follows.. Ran across this when making a change to RISCV memset lowering. Seems very odd that manually merging a store into a vector prevents it from being further merged. Differential Revision: https://reviews.llvm.org/D156349
-
Philip Reames authored
This is the case which triggered the revert of 660b740e. Note that the test is extremely fragile as it depends on getting a truncating store at the right moment rather than folding the constant to a narrower bitwidth. This appears to happen on skylake, but not e.g. plain avx.
-
Simon Pilgrim authored
No need to limit this to sub-128-bit cases now that matchTruncateWithPACK handles this.
-
Nicolas Vasilache authored
This revision untangles a few more conversion pieces and allows rewriting the relatively intricate (and somewhat inconsistent) LowerGpuOpsToNVVMOpsPass in a declarative fashion that provides a much better understanding and control. Differential Revision: https://reviews.llvm.org/D157617
-
Mark de Wever authored
Reviewed By: #libc, ldionne Differential Revision: https://reviews.llvm.org/D156922
-
Patrick O'Neill authored
Currently LLVM emits Ztso code for fences, loads, and stores (behind an experimental flag) [1]. This patch updates the mapping and implements support for LR/SC and AMO ops. This updated mapping is compatible with the RVWMO ABI present in the psABI. Additional context can be found in the psABI pull request [2]. [1] https://reviews.llvm.org/D143076 [2] https://github.com/riscv-non-isa/riscv-elf-psabi-doc/pull/391 Differential Revision: https://reviews.llvm.org/D155517
-
Philip Reames authored
This reverts commit 660b740e. Crash reported in the review thread post commit. Reverting while investigating.
-
-
Alexey Bataev authored
If the reduced values is constant-foldable and was folded to a constant during previous transformations, need to excluded it from the list of the reduced values-instructions as non-matchable.
-
Luke Lau authored
Looks like this FIXME was already taken off during the original patch in https://reviews.llvm.org/D104921
-
Sean Fertile authored
Set the ReplaceFlags variable to false, since there is code meant only for the ADDItocHi/ADDItocL nodes. This has the side effect of disabling the peephole when the load/store instruction has a non-zero offset. This patch also fixes retrieving the `ImmOpnd` node from the AIX small code model pseduos and does the same for the register operand node. This allows cleaning up the later calls to replaceOperands. Finally move calculating the MaxOffset into the code guarded by ReplaceFlags as it is only used there and the comment is specific to the ELF ABI. Fixes https://github.com/llvm/llvm-project/issues/63927 Differential Revision: https://reviews.llvm.org/D155957
-
Tom Eccles authored
Differential Revision: https://reviews.llvm.org/D157106
-
Krzysztof Drewniak authored
This reverts commit 7c349c36. Per discussion at https://reviews.llvm.org/rG7c349c369847dc2f1736efb9c90d03521cd44a90 and elsewhere, the lowering to LLVM defined here isn't what it should be and the fastmath flag usage isn't correct, so `arith.is_nan` and `arith.is_inf` cannot exist in their current form. It's unclear if those operations should be introduced in the future, since they make the dialect more complex and don't add any expressive power. Further discussion may be moved to an RFC (or I'll drop this patch). Differential Revision: https://reviews.llvm.org/D157543
-
Jay Foad authored
This was an oversight when the GFX11 early release VGPRs optimization was reimplemented in D153279. Sending the DEALLOC_VGPRS message is a performance optimization so there is no need to do it at -O0. In addition it makes some kinds of post mortem debugging hard or impossible, since VGPR values are no longer available to inspect at the s_endpgm instruction. Differential Revision: https://reviews.llvm.org/D157599
-
Martin Erhart authored
[mlir][bufferization] Add pattern to BufferDeallocationSimplification pass that removes unnecessary retain values Adds a pattern that removes memrefs from the `retained` list which are guaranteed to not alias any memref in the `memrefs` list. The corresponding result value can be replaced with `false` in that case according to the operation description. When applied after BufferDeallocation, this can considerably reduce the overhead that needs to be added during the lowering of the dealloc operation to check for aliasing (especially when there is only one element in the `memref` list and all `retained` values can be removed). Depends on D157398 Reviewed By: springerm Differential Revision: https://reviews.llvm.org/D157407
-
Alexey Bataev authored
-
Nicolas Vasilache authored
This revision adds a `transform.apply_conversion_patterns.func.func_to_llvm` transformation. It is unclear at this point whether this should be spelled out as a standalone transformation or whether it should resemble `transform.apply_conversion_patterns.dialect_to_llvm "fun"`. This is dependent on how we want to handle the type converter creation. In particular the current implementation exhibits the fact that `transform.apply_conversion_patterns.memref.memref_to_llvm_type_converter` was not rich enough and did not match the LowerToLLVMOptions. Keeping those options in sync across all the passes that lower to LLVM is very error prone. Instead, we should have a single `to_llvm_type_converter`. Differential Revision: https://reviews.llvm.org/D157553
-
Bjorn Pettersson authored
Differential Revision: https://reviews.llvm.org/D157551
-
Bjorn Pettersson authored
Differential Revision: https://reviews.llvm.org/D157550
-
Bjorn Pettersson authored
The convenience methods that now are marked as deprecated are no long used in-tree. The getInt8PtrTy helper is however still used in many places, so it is not marked as deprecated to make it possible to build LLVM with -Werror. Differential Revision: https://reviews.llvm.org/D156741
-
Martin Erhart authored
Adds a pass that can be run after buffer deallocation to simplify the deallocation operations. In particular, there are patterns that need alias information and thus cannot be added as a regular canonicalization pattern. This initial commit moves an incorrect canonicalization pattern from over to this new pass and fixes it by querying the alias analysis for the additional information it needs to be correct (there must not by any potential aliasing memref in the retain list other than the currently mached one). Also, improves this pattern by considering the `extract_strided_metadata` operation which is inserted by the deallocation pass by default. Reviewed By: springerm Differential Revision: https://reviews.llvm.org/D157398
-
wangpc authored
We need unsigned integer here. Fixes #64534 Reviewed By: eopXD Differential Revision: https://reviews.llvm.org/D157476
-
Simon Pilgrim authored
Add bitcast handling to the existing insert_subvector(src, extract_subvector(sub)) pattern, and recognise undef src cases to allow us to detect vector widening patterns.
-
Louis Dionne authored
It seems like this one was forgotten and we were still using a raw std::abort(). Differential Revision: https://reviews.llvm.org/D157446
-
Louis Dionne authored
We were defining the function in locale.cpp, and we actually had two overloads for it. This is pretty confusing given that one was static and not exported from the dylib, and the other one was. Instead, use the vanilla __throw_runtime_error function everywhere even though that adds a tiny bit of code duplication. Differential Revision: https://reviews.llvm.org/D155008
-
Louis Dionne authored
The libc++ builders do not have the capacity to serve both libc++ and Clang CI needs. We initially used the libc++ builders when adding pre-commit CI for Clang as an experiment, however this setup has been problematic for libc++ for a long time. It makes libc++ CI turnaround way too slow, which has been a frequent source of frustration. We didn't want to make this change before the release to avoid rocking the boat too much in such an important time, however now that the release has been cut, we need to make this change. This will shift the traffic for Clang pre-commit CI from the libc++ builders to the builders that have been used for Clang pre-commit CI defined outside of Clang's BuildKite pipeline. Differential Revision: https://reviews.llvm.org/D157324
-
Kadir Cetinkaya authored
This reverts commit d031ff38. See https://reviews.llvm.org/D154503#4576393 for a reproducer and details.
-
Matthias Springer authored
Functions that materialize IR or convert types can be const. Caching data structures inside the TypeConverter are marked as `mutable`. Differential Revision: https://reviews.llvm.org/D157597
-