- Jun 14, 2022
-
-
Adrian Prantl authored
This patch adds a libcxx formatter for std::span. The implementation is based on the libcxx formatter for std::vector. The main difference is the fact that std::span conditionally has a __size member based on whether it has a static or dynamic extent. Example output of formatted span: (std::span<const int, 18446744073709551615>) $0 = size=6 { [0] = 0 [1] = 1 [2] = 2 [3] = 3 [4] = 4 [5] = 5 } The second template parameter here is actually std::dynamic_extent, but the type declaration we get back from the TypeSystemClang is the actual value (which in this case is (size_t)-1). This is consistent with diagnostics from clang, which doesn't desugar this value either. E.g.,: span.cpp:30:31: error: implicit instantiation of undefined template 'Undefined<std::span<int, 18446744073709551615>>' Testing: Added API-tests Confirmed manually using LLDB cli that printing spans works in various scenarios Patch by Michael Buch! Differential Revision: https://reviews.llvm.org/D127481 -
Jay Foad authored
Differential Revision: https://reviews.llvm.org/D127661
-
Jay Foad authored
GFX11 uses different pseudos for these because of a new constraint on which operands' registers can overlap. Differential Revision: https://reviews.llvm.org/D127659
-
Daniel Bertalan authored
This commit fixes the issue that getLocation always printed the name of the first symbol in the section. For clarity, upper_bound is used instead of a linear search for finding the closest symbol name. Note that this change does not affect performance: this function is only called when printing errors and `symbols` typically contains a single symbol because of .subsections_via_symbols. Differential Revision: https://reviews.llvm.org/D127670
-
LLVM GN Syncbot authored
-
Nikolas Klauser authored
Reviewed By: ldionne, #libc Spies: mgorny, EricWF, mclow.lists, libcxx-commits Differential Revision: https://reviews.llvm.org/D127159
-
Eric Schweitz authored
FIR models Fortran intrinsic types with deliberate KIND values. Like Fortran, COMPLEX and REAL have related KINDs in FIR. Lowering now converts REAL types to floating point (MLIR) up front. This patch moves the code to convert from FIR RealType to MLIR FloatType out of codegen and into the builder, allowing FIR ComplexTypes to have their element type returned as an MLIR FloatType. We should consider whether to replace fir::ComplexType with mlir::ComplexType at some point. I believe these types are presently used to convey distinctins in the target ABIs in the Tilikum bridge however. This patch is part of the upstreaming effort from fir-dev branch. Reviewed By: PeteSteinfeld Differential Revision: https://reviews.llvm.org/D127636 Co-authored-by:
Eric Schweitz <eschweitz@nvidia.com>
-
Nikolas Klauser authored
Reviewed By: ldionne, #libc Spies: libcxx-commits, mgorny Differential Revision: https://reviews.llvm.org/D127631
-
Eric Schweitz authored
This patch is part of the upstreaming effort from fir-dev branch. Reviewed By: jeanPerier, PeteSteinfeld Differential Revision: https://reviews.llvm.org/D127634 Co-authored-by:
Eric Schweitz <eschweitz@nvidia.com>
-
Mitch Phillips authored
RE-LAND (reverts a revert): This reverts commit 8e1f47b5. This patch adds generation of sanitizer metadata attributes (which were added in D126100) to the clang frontend. We still currently generate the llvm.asan.globals that's consumed by the IR pass, but the plan is to eventually migrate off of that onto purely debuginfo and these IR attributes. Reviewed By: vitalybuka, kstoimenov Differential Revision: https://reviews.llvm.org/D126929
-
Balazs Benics authored
Reviewed By: martong Differential Revision: https://reviews.llvm.org/D127485
-
Mitch Phillips authored
This reverts commit e7766972. Broke the Windows buildbots.
-
owenca authored
Call mightFitOneOneline() on the line before the closing brace only if it is at the level of the block. Differential Revision: https://reviews.llvm.org/D127614
-
Zequan Wu authored
-
Zequan Wu authored
-
Zequan Wu authored
[LLDB][NativePDB] Convert backslash to slash when creating CU and filter out CU with no function in ResolveSymbolContext. On Windows, when compile with -fdebug-compilation-dir which contains slash, the source file path in PDB will look like "../tmp\file.cc" because the path separator used is determined by target machine. Converting backslash to slash helps lldb to find the CU in ResolveSymbolContext. We want to filter out CU with no function in ResolveSymbolContext as a cpp file will have two debug info modules in PDB if built with thinlto and one of them is a skeleton with no function debug info.
-
Stephen Long authored
Previously, /FAsc would emit a warning. Now, it will just do what /FA does. https://docs.microsoft.com/en-us/cpp/build/reference/fa-fa-listing-file?view=msvc-170 Reviewed By: hans Differential Revision: https://reviews.llvm.org/D127519
-
Peter Klausler authored
The restrictions on the relationship between a "kP" scale factor and a Ew.d/Dw.d/Gw.d significant digit count are not enforced for output editing when there is no nonzero scale factor in effect. (An error message about a bad scale factor is confusing if no kP control edit descriptor has been used.) Document this usage in Extensions.md. Differential Revision: https://reviews.llvm.org/D127435
-
Philip Reames authored
-
Benjamin Kramer authored
So it doesn't disappear when running the generator.
-
Peter Klausler authored
The scope model used for branch target checking treats a label on an END SELECT statement as if it were in the previous CASE block. This makes it illegal to GO TO that label from within any earlier CASE block in that statement. Fix by treating the CASE blocks as nested scopes within the scope of the SELECT construct. Also, add a "warning:" tag to related warning messages. Differential Revision: https://reviews.llvm.org/D127425
-
Craig Topper authored
Recommit "[RISCV] Teach RISCVMergeBaseOffset about cases where we use SHXADD to add some immediates." With fix for sanitizer build bot failure.
-
Peter Klausler authored
The calculation of the source index was incorrect when a CSHIFT shift count value is negative, for the implementation of CSHIFT for arrays with rank >= 2. (The vector CSHIFT is fine.) Differential Revision: https://reviews.llvm.org/D127424
-
Stephen Tozer authored
One of the tests added in the recent floating point patch involves string comparison against the debugger output; as DbgEng and LLDB have different output, the test cannot pass against both of them, so disable it on windows.
-
Stephen Long authored
https://docs.microsoft.com/en-us/cpp/build/reference/external-external-headers-diagnostics?view=msvc-170 Reviewed By: hans Differential Revision: https://reviews.llvm.org/D127452
-
Peter Klausler authored
When an I/O statement is known to be in a recoverable error state, it shouldn't cause a crash later in execution because it's not in an expected non-erroneous processing state. Add checking for the ErroneousIoStatementState variant on paths that might otherwise lead to runtime crashes. Differential Revision: https://reviews.llvm.org/D127423
-
Mitch Phillips authored
This patch adds generation of sanitizer metadata attributes (which were added in D126100) to the clang frontend. We still currently generate the `llvm.asan.globals` that's consumed by the IR pass, but the plan is to eventually migrate off of that onto purely debuginfo and these IR attributes. Reviewed By: vitalybuka, kstoimenov Differential Revision: https://reviews.llvm.org/D126929
-
Stephen Tozer authored
A pair of tests had incorrect expectations set, one being an off-by-one error and the other using decimal points in the expect that lldb omits.
-
Jez Ng authored
Should fix the test failure introduced by D124561.
-
Thomas Raoux authored
This reverts commit 1c84800c. This was causing asan crash.
-
Peter Klausler authored
The little state machine in GetNextDataEdit() wasn't transitioning properly from reading the imaginary part of the number back to the real part for the next iteration of a repeated value. Differential Revision: https://reviews.llvm.org/D127422
-
Nico Weber authored
See revision b8b7a9dc for prior art. Reland of: 4463bd0f since the dependent patch D126340 is also relanding.
-
David Tenty authored
The option mdefault-visibility-export-mapping is created to allow mapping default visibility to an explicit shared library export (e.g. dllexport). Exactly how and if this is manifested is target dependent (since it depends on how they map dllexport in the IR). Three values are provided for the option: * none: the default and behavior without the option, no additional export linkage information is created. * explicit: add the export for entities with explict default visibility from the source, including RTTI * all: add the export for all entities with default visibility This option is useful for targets which do not export symbols as part of their usual default linkage behaviour (e.g. AIX), such targets traditionally specified such information in external files (e.g. export lists), but this mapping allows them to use the visibility information typically used for this purpose on other (e.g. ELF) platforms. This relands commit: 8c8a2679 with fixes for the compile time and assert problems that were reported by: * making shouldMapVisibilityToDLLExport inline and provide an early return in the case where no mapping is in effect (aka non-AIX platforms) * don't try to export RTTI types which we will give internal linkage to Reviewed By: MaskRay Differential Revision: https://reviews.llvm.org/D126340
-
Peter Klausler authored
Track pending "asynchronous" I/O operation IDs so that WAIT statements can report errors about bad ID numbers. Lowering will need to extended to call GetAsynchronousId() for a READ or WRITE statement with ID=n. Differential Revision: https://reviews.llvm.org/D127421
-
Luís Ferreira authored
D120690 introduced `eBasicTypeChar8` but missed proper documentation order. This also introduces the missing bindings data on Swig, which should correspond with the documented information. Reviewed By: labath Differential Revision: https://reviews.llvm.org/D116136
-
Peter Klausler authored
When nonadvancing output uses T/TL control edit descriptors to reposition the record, don't reset the position to the furthest point written at the end of the write. Differential Revision: https://reviews.llvm.org/D127420
-
Amir Ayupov authored
Fix bolt-x86_64-wine-msvc builder: https://lab.llvm.org/buildbot/#/builders/222/builds/1154 Reviewed By: maksfb Differential Revision: https://reviews.llvm.org/D127612
-
Mitch Phillips authored
This reverts commit 8bbcb988. Broke the UBSan bot. More details in https://reviews.llvm.org/D127376.
-
Lei Zhang authored
We cannot directly use the original result type; instead we need to deduce it from the converted operand type. This addresses invalid ops generated from converting single element vectors. Reviewed By: ThomasRaoux Differential Revision: https://reviews.llvm.org/D127574
-
Lei Zhang authored
This avoids pulling in function converion patterns, which is not part of what we want to test in ArithmeticToSPIRV. It also allows using ConvertArithmeticToSPIRVPass as a standalone step. Reviewed By: ThomasRaoux Differential Revision: https://reviews.llvm.org/D127573
-