- Dec 17, 2022
-
-
Fangrui Song authored
value() has undesired exception checking semantics and calls __throw_bad_optional_access in libc++. Moreover, the API is unavailable without _LIBCPP_NO_EXCEPTIONS on older Mach-O platforms (see _LIBCPP_AVAILABILITY_BAD_OPTIONAL_ACCESS). This commit fixes LLVMAnalysis and its dependencies.
-
Adrian Prantl authored
-
Dave Lee authored
Update the Clang diagnostic consumer (in ClangModulesDeclVendor) to report progress on Clang module builds, as both progress events and expression logs. Module build remarks are enabled by with clang's `-Rmodule-build` flag. With this change, command line users of lldb will see progress events showing which modules are being built, and - by how long they stay on screen - how much time it takes to build them. IDEs that show progress events can show these updates if desired. This does not show module-import remarks, although that may be added as a future change. Differential Revision: https://reviews.llvm.org/D140056
-
Peter Klausler authored
There was a falsely known case with a polymorphic type. Differential Revision: https://reviews.llvm.org/D140140
-
Jacques Pienaar authored
Following DenseElementsAttr pattern. Differential Revision: https://reviews.llvm.org/D140189
-
Emilia Dreamer authored
The C++ standard doesn't require that class template deduction guides be templates themselves, but previously `isDeductionGuide` would assert for the existence of a template closer or requires clause closer before the deduction guide declaration. This patch simply removes that check. Because of this, a test which asserted that `x()->x<1>;` *isn't* a deduction guide failed, as it is now formatted as a deduction guide. However, as @JohelEGP demonstrated, it is [possible to make that a viable deduction guide][1]. Thus, that test has been removed, but other tests related to non-template class template deduction guides have been added. Fixes https://github.com/llvm/llvm-project/issues/55142 [1]: https://compiler-explorer.com/z/Wx3K6d5K9 Reviewed By: HazardyKnusperkeks, owenpan Differential Revision: https://reviews.llvm.org/D139416
-
Hanhan Wang authored
The main issue of tiling unpack op is about incomplete tile. Since all the dimensions are orthogonal, discussing 1-d unpack case is enough. The core idea is to make the input slice have complete tiles. In this case, a larger unpacked tile will be created. We'll need an extract_slice op to shift and truncate the output. Take Nn_to_N as an example. Say that N=32, n=8, and tiling_size=15. The coordinates of second tile (i.e., result[15..31]) are [(1, 7), (2, 0,), (2, 1) ... (3, 6), (3, 7)]. The first row and the last row are incomplete in terms of inputs. It's impossible to represent an unpack op using the coordinates. Because the input has higher rank and the math computation of coordinate is using mod and ceilDiv. That's very tricky. To represent the unpack op, we have to complete the rows. I.e., the input coordinates would start with (1, 0); end with (3, 7). In this context, the tiled unpack produces a (3 * n) elements because there are 3 rows in total. Follow by a tensor.extract_slice op, we can get the actual result. If the tiling sizes are multiple of inner tile sizes, it is a perfect tiling case. In this context, the larger input and output is not needed. Reviewed By: chelini Differential Revision: https://reviews.llvm.org/D139362
-
Adrian Prantl authored
-
Paul Robinson authored
Fuzzer might decide on a target arch different from the triple.
-
Fangrui Song authored
Some older macOS libc++ report: error: 'value' is unavailable: introduced in macOS 10.13 -
Fangrui Song authored
-
Valentin Clement authored
When generating the `fir.dispatch_table` operation, the name of the parent derived-type needs to be mangled. For this the type instantiation DerivedTypeSpec needs to be retrieved to have the correct kind type parameters. Reviewed By: PeteSteinfeld Differential Revision: https://reviews.llvm.org/D140209
-
Valentin Clement authored
An unlimited polymoprhic entity can be allocated with a derived type spec or an intrinsic type spec. This patch add the generation of the runtime function call when the allocation is done with an intrinsic type spec. Reviewed By: jeanPerier Differential Revision: https://reviews.llvm.org/D140207
-
Jeffrey Byrnes authored
Presently, there is an issue on MI100 (and probably other architecture) where the VGPR used for AGPR copies clobbers VGPR used for AGPR spill. AFAICT this is because in processFunctionBeforeFrameIndicesReplaced we think the VGPR register for AGPR spill is unused. This patch aims to correct that. This is a WIP while I work out issues with producing a good test. For now, I'm curious if this is generally a good / bad idea. Differential Revision: https://reviews.llvm.org/D139673
-
Roman Lebedev authored
While the PPC litte-endian miscompile did get addressed by https://reviews.llvm.org/D140046 the PPV big-endian bots are still unhappy. https://lab.llvm.org/buildbot/#/builders/93/builds/12560 This reverts commit 7bd358bcb4e358b4351c69e02ef76939e08acdc7.
-
Fangrui Song authored
-
Fangrui Song authored
-
Haowei Wu authored
This change adds 'root-relative' option in vfsoverlay YAML file format so the root patchs can be relative to the YAML file directory instead of the current working directory. Differential Revision: https://reviews.llvm.org/D137473
-
Nathan Ridge authored
No one was using it Differential Revision: https://reviews.llvm.org/D139998
-
Peter Klausler authored
Apply some sanity checking to the type size and SIZE= values and avoid crashing on stress tests that attempt to create excessively large results. Differential Revision: https://reviews.llvm.org/D140138
-
Craig Topper authored
The class in InstCombineInternal.h inherits from InstCombiner.h. I think this split was created when target specific InstCombines were moved to go through TTI. I had to update some of the code in InstCombiner.h to match changes that had been made to InstCombineInternal.h. Reviewed By: nikic Differential Revision: https://reviews.llvm.org/D140230
-
Paul Robinson authored
Part of the project to eliminate special handling for triples in lit expressions.
-
Nathan Ridge authored
Fixes https://github.com/clangd/clangd/issues/1379 Differential Revision: https://reviews.llvm.org/D140191
-
Fangrui Song authored
-
Matt Arsenault authored
Try to respect IgnoreLLVMUsed if the function was addrspacecasted to match llvm.used's type.
-
Paul Robinson authored
Part of the project to eliminate special handling for triples in lit expressions.
-
David Goldblatt authored
This operand bundle on an assume informs alias analysis that the arguments point to regions of memory that were allocated separately (i.e. different heap allocations, different allocas, or different globals). As a safety measure, we leave the analysis flag-disabled by default. Reviewed By: nikic Differential Revision: https://reviews.llvm.org/D136514
-
Paul Robinson authored
Part of the project to eliminate special handling for triples in lit expressions.
-
Sprite authored
Just found some typos while reading the llvm/circt project. compliment -> complement emitsd -> emits
-
Peter Klausler authored
The ProcInterface structure is used only by ProcEntityDetails; it represents what a program might have put in parentheses in a procedure-declaration-stmt, either the name of a procedure interface or a declaration-type-spec. If a procedure entity has an implicit interface, the function result type (if any) can be kept in EntityDetails::type_, which already exists and is currently redundant for ProcEntityDetails symbols. All that is really needed is a nullable Symbol pointer in ProcEntityDetails to point to the procedure's explicit interface, when it has one. Also, catch the case where a procedure has an explicit interface and a program attempts to also give it a type. Differential Revision: https://reviews.llvm.org/D140134
-
Paul Robinson authored
Part of the project to eliminate special handling for triples in lit expressions.
-
Peiming Liu authored
When concat along dim 0, and all inputs/outputs are ordered with identity dimension ordering, the concatenated coordinates will be yield in lexOrder, thus no need to sort. Reviewed By: aartbik Differential Revision: https://reviews.llvm.org/D140228
-
Vasileios Porpodas authored
[IR][NFC] Cleanup: Remove non-const block iterators to force all updates go through an interface function Differential Revision: https://reviews.llvm.org/D140154
-
Peter Klausler authored
When a defined object is an array with a vector subscript, and it has a finalizable type, it may have a final subroutine with a matching or assumed rank dummy argument that cannot be called. Unless there is also a suitable elemental final subroutine, diagnose such a case with an error message. Differential Revision: https://reviews.llvm.org/D140131
-
Florian Hahn authored
Add a VP_CLASSOF_IMPL macro to define common classof implementations for recipes. This reduces duplication and also adds missing implementations to existing recipes.
-
Paul Robinson authored
Using std::optional in Support/TypeTraitsTest.cpp causes gcc 7.5 to complain. No public bots run a gcc that old, but we have internal bots that do. /home/probinson/projects/llvm-org/llvm-project/llvm/unittests/Support/TypeTraitsTest.cpp: In instantiation of ‘void {anonymous}::triviality::TrivialityTester() [with T = std::optional<int>; bool IsTriviallyCopyConstructible = true; bool IsTriviallyMoveConstructible = true]’: /home/probinson/projects/llvm-org/llvm-project/llvm/unittests/Support/TypeTraitsTest.cpp:121:52: required from here /home/probinson/projects/llvm-org/llvm-project/llvm/unittests/Support/TypeTraitsTest.cpp:29:3: error: static assertion failed: Mismatch in expected trivial copy construction! static_assert(llvm::is_trivially_copy_constructible<T>::value == ^~~~~~~~~~~~~ /home/probinson/projects/llvm-org/llvm-project/llvm/unittests/Support/TypeTraitsTest.cpp:32:3: error: static assertion failed: Mismatch in expected trivial move construction! static_assert(llvm::is_trivially_move_constructible<T>::value == ^~~~~~~~~~~~~ -
Matt Arsenault authored
The constructor should not depend on the MachineFunction
-
Roman Lebedev authored
The test was passing for me locally, but fails on bots: https://lab.llvm.org/buildbot/#/builders/98/builds/29290/steps/10/logs/stdio
-
https://reviews.llvm.org/D139275#4001580Roman Lebedev authored
SimplifyCFG change is correct and not at fault here. The actual miscompile appears to be happening in InstCombine. ``` $ /builddirs/llvm-project/build-Clang15/bin/opt -load /repositories/alive2/build-Clang-release/tv/tv.so -load-pass-plugin /repositories/alive2/build-Clang-release/tv/tv.so -passes='tv,instcombine,tv' -o /dev/null /repositories/llvm-project/llvm/test/Transforms/InstCombine/D139275_c4001580.ll ---------------------------------------- define float @D139275_c4001580(float %arg) { %0: %i = fcmp ugt float %arg, 0.000000 %i1 = fcmp ult float %arg, 1.000000 %i2 = and i1 %i, %i1 %i3 = fcmp uge float %arg, 0.100000 %i4 = xor i1 %i, %i2 %i5 = select i1 %i4, float 0.100000, float 0.000000 %i6 = and i1 %i3, %i2 %i7 = fadd float %arg, -0.100000 %i8 = select i1 %i6, float %i7, float %i5 ret float %i8 } => define float @D139275_c4001580(float %arg) { %0: %i = fcmp ugt float %arg, 0.000000 %i1 = fcmp ult float %arg, 1.000000 %i2 = and i1 %i, %i1 %i3 = fcmp uge float %arg, 0.100000 %i7 = fadd float %arg, -0.100000 %i5 = select i1 %i3, float %i7, float 0.100000 %i8 = select i1 %i2, float %i5, float 0.000000 ret float %i8 } Transformation doesn't verify! (unsound) ERROR: Value mismatch Example: float %arg = #x3dcbb820 (0.099472284317?) Source: i1 %i = #x1 (1) i1 %i1 = #x1 (1) i1 %i2 = #x1 (1) i1 %i3 = #x0 (0) i1 %i4 = #x0 (0) float %i5 = #x00000000 (+0.0) i1 %i6 = #x0 (0) float %i7 = #xba0a5680 (-0.000527717173?) float %i8 = #x00000000 (+0.0) Target: i1 %i = #x1 (1) i1 %i1 = #x1 (1) i1 %i2 = #x1 (1) i1 %i3 = #x0 (0) float %i7 = #xba0a5680 (-0.000527717173?) float %i5 = #x3dcccccd (0.100000001490?) float %i8 = #x3dcccccd (0.100000001490?) Source value: #x00000000 (+0.0) Target value: #x3dcccccd (0.100000001490?) Pass: (anonymous namespace)::TVPass Command line: '/builddirs/llvm-project/build-Clang15/bin/opt' '-load' '/repositories/alive2/build-Clang-release/tv/tv.so' '-load-pass-plugin' '/repositories/alive2/build-Clang-release/tv/tv.so' '-passes=tv,instcombine,tv' '-o' '/dev/null' '/repositories/llvm-project/llvm/test/Transforms/InstCombine/D139275_c4001580.ll' Alive2: Transform doesn't verify! ``` -
Florian Hahn authored
This fixes a build failure with libc++ (`error: no matching function for call to 'max')`
-