- Aug 11, 2023
-
-
Timo Stripf authored
Extended TextNodeDumper::VisitFunctionProtoType to output exception specifications Reviewed By: aaron.ballman Differential Revision: https://reviews.llvm.org/D155383
-
Matt Arsenault authored
We need a better mechanism for expressing which calls you are allowed to emit and which calls are recognized. This should be applied to the 17 branch.
-
duk authored
GCC doesn't like the implicit conversion here.
-
Ivan Butygin authored
Some GPU backends (SPIR-V) lower memrefs to bare pointers, so for dynamically sized/strided memrefs it will fail. This pass extracts sizes and strides via `memref.extract_strrided_metadata` outside `gpu.launch` body and do index/offset calculation explicitly and then reconstructs memrefs via `memref.reinterpret_cast`. `memref.reinterpret_cast` then lowered via https://reviews.llvm.org/D155011 Differential Revision: https://reviews.llvm.org/D155247
-
Kelvin Li authored
[flang] Add PowerPC vec_extract, vec_insert, vec_mergeh, vec_mergel, vec_perm and ver_permi intrinsic Co-authored-by:
Paul Scoropan <1paulscoropan@gmail.com> Co-authored-by:
Mark Danial <Mark.Danial@ibm.com> Differential Revision: https://reviews.llvm.org/D156197
-
namazso authored
Fixes EHCont implementation in LLD. Closes #64570 Reviewed By: rnk Differential Revision: https://reviews.llvm.org/D157623
-
Fangrui Song authored
The special case from 9746286b (2011) seems irrelevant nowadays. It is actually incorrect because GNU assembler does not set the least significant bit for `.long thumb - .`.
-
Piotr Zegar authored
Ignore dependend delegate constructors. Fixes: #37250 Reviewed By: ccotter Differential Revision: https://reviews.llvm.org/D157367
-
Piotr Zegar authored
Ignore decltype, sizeof, alignof in this check. Fixes: #30542 Reviewed By: ccotter Differential Revision: https://reviews.llvm.org/D157376
-
Chris Cotter authored
The original usage of enable_if does not actually lookup the nested type called type, so the SFINAE does not kick in. Differential Revision: https://reviews.llvm.org/D157240
-
Michael Buch authored
(motivated by test failures after D157058) With D157058 the base template for `std::char_traits` was removed from libc++. Quoting the release notes: ``` The base template for ``std::char_traits`` has been removed. If you are using ``std::char_traits`` with types other than ``char``, ``wchar_t``, ``char8_t``, ``char16_t``, ``char32_t`` or a custom character type for which you specialized ``std::char_traits``, your code will no longer work. ``` This patch simply removes all such instantiations to make sure the tests that run against the latest libc++ version pass. One could try testing the existence of this base template from within the test source files but this doesn't seem like something we want support. Differential Revision: https://reviews.llvm.org/D157636
-
Piotr Fusik authored
Also `istringstream::str()` and `ostringstrem::str()`. https://github.com/llvm/llvm-project/issues/40363 causes `str()` to be dllimport'ed despite _LIBCPP_HIDE_FROM_ABI. This is a temporary solution until #40363 is fixed. Reviewed By: #libc, thakis, philnik Differential Revision: https://reviews.llvm.org/D157602
-
Changpeng Fang authored
-
Volodymyr Sapsai authored
Revert "[modules] Fix error about the same module being defined in different .pcm files when using VFS overlays." This reverts commit 97dfaf4c. llvm-clang-x86_64-sie-win buildbot is failing with the added test.
-
Alex Langford authored
Just about every file in the lldb project is built with C++ enabled. Unless I've missed something, these macro guards don't really accomplish very much. Differential Revision: https://reviews.llvm.org/D157538
-
Aaron Ballman authored
This changes some public references of C2x to be C23, corrects standard citations to use the final paragraph numbers, and adds some information about differences between C17 and C23 modes.
-
Jonas Devlieghere authored
TSan reports the following data race: Write of size 4 at 0x000109e0b160 by thread T2 (...): #0 lldb_private::NativeFile::Close() File.cpp:329 #1 lldb_private::ConnectionFileDescriptor::Disconnect(...) ConnectionFileDescriptorPosix.cpp:232 #2 lldb_private::Communication::Disconnect(...) Communication.cpp:61 #3 lldb_private::process_gdb_remote::ProcessGDBRemote::DidExit() ProcessGDBRemote.cpp:1164 #4 lldb_private::Process::SetExitStatus(...) Process.cpp:1097 #5 lldb_private::process_gdb_remote::ProcessGDBRemote::MonitorDebugserverProcess(...) ProcessGDBRemote.cpp:3387 Previous read of size 4 at 0x000109e0b160 by main thread (...): #0 lldb_private::NativeFile::IsValid() const File.h:393 #1 lldb_private::ConnectionFileDescriptor::IsConnected() const ConnectionFileDescriptorPosix.cpp:121 #2 lldb_private::Communication::IsConnected() const Communication.cpp:79 #3 lldb_private::process_gdb_remote::GDBRemoteCommunication::WaitForPacketNoLock(...) GDBRemoteCommunication.cpp:256 #4 lldb_private::process_gdb_remote::GDBRemoteCommunication::WaitForPacketNoLock(...) GDBRemoteCommunication.cpp:244 #5 lldb_private::process_gdb_remote::GDBRemoteClientBase::SendPacketAndWaitForResponseNoLock(...) GDBRemoteClientBase.cpp:246 I originally tried fixing the problem at the ConnectionFileDescriptor level, but that operates on an IOObject which can have different thread safety guarantees depending on its implementation. For this particular issue, the problem is specific to NativeFile. NativeFile can hold a file descriptor and/or a file stream. Throughout its implementation, it checks if the descriptor or stream is valid and do some operation on it if it is. While that works in a single threaded environment, nothing prevents another thread from modifying the descriptor or stream between the IsValid check and when it's actually being used. This patch prevents such issues by returning a ValueGuard RAII object. As long as the object is in scope, the value is guaranteed by a lock. Differential revision: https://reviews.llvm.org/D157347 -
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,...
-
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
-