- Sep 01, 2022
-
-
Rob Suderman authored
Unsigned/signed comparison failure due to implicit signed value. Reviewed By: stella.stamenova Differential Revision: https://reviews.llvm.org/D133061
-
Slava Zakharin authored
We used to select the runtime function based on the first argument's type, which was not correct behavior. The selection is done using the result type now. Differential Revision: https://reviews.llvm.org/D133032
-
Slava Zakharin authored
HasCppTypeFor<> used to evaluate to false always, so kind 10 and 16 variants of dot_product were not instantiated even though the host supported 80- and 128-bit real and complex data types. In addition, HAS_FLOAT128 was not enabling complex kind=16 variant of dot_product. This is fixed now. Note that the change for HasCppTypeFor<> may also affect other functions such as matmul, i.e. kind 10 and 16 variants of them may become available now (depending on the build host). Differential Revision: https://reviews.llvm.org/D133051
-
Peiming Liu authored
[mlir][sparse] Introduce new sparse_tensor.storage_get/set to access memory that stores the handle of a sparse tensor Introduce new sparse_tensor.storage_get/set to access memory that stores the handle of a sparse tensor. The sparse tensor storage are represented as a tuple, these operation will later be eliminated and the tuple will be flattened after sparse tensor codegen Reviewed By: aartbik Differential Revision: https://reviews.llvm.org/D133049
-
Aart Bik authored
This builds a compound type for the buffers required for the sparse storage scheme defined by the MLIR sparse tensor types. The use of a tuple allows for a simple 1:1 type conversion. A subsequent pass can expand this tuple into its component with an isolated 1:N type conversion. Reviewed By: Peiming Differential Revision: https://reviews.llvm.org/D133050
-
Craig Topper authored
Use computeMaxSignificantBits instead of ComputeNumSignBits. Create APInt as part of call to MaskedValueIsZero instead of creating a named temporary.
-
Rob Suderman authored
Missing long specifier so that a shift would occur in 64-bits rather than implicitly in 32-bits. Reviewed By: NatashaKnk Differential Revision: https://reviews.llvm.org/D133058
-
Sam Clegg authored
These were missing from https://reviews.llvm.org/D132929
-
Michele Scuttari authored
Restore the generation of the old pass base classes for better transitioning of external projects relying on them. They were eliminated with 67d0d7ac. Reviewed By: rsmith Differential Revision: https://reviews.llvm.org/D133027
-
Sam Clegg authored
The ELF backend originally used `getSymbols()` but went though a sequence of changes that resulted in this method being called `symbols()`. d8f8abbd replaced `getSymbols()` with `forEachSymbol`. a2fc9644 replaced `forEachSymbol` with `llvm::iterator_range`. e9262edf replaced `llvm::iterator_range` with `symbols()`. Differential Revision: https://reviews.llvm.org/D131284
-
Sam Clegg authored
Warn if `.size` is specified for a function symbol. The size of a function symbol is determined solely by its content. I noticed this simplification was possible while debugging #57427, but this change doesn't fix that specific issue. Differential Revision: https://reviews.llvm.org/D132929
-
Jonas Devlieghere authored
Make the rumtimes target a test dependency. This is needed or the parts of the test suite that rely on the libcxx and libcxxabi. Differential revision: https://reviews.llvm.org/D133046
-
Krzysztof Drewniak authored
The amdgpu.mfma operator is a wrapper around the Matrix Fused Multiply Add (MFMA) instructions on some AMD GPUs (the CDNA-based MI-* cards). This interface allows for selecting the operation to be performed by specifying the dimensions of the multiplication to be performed and any additional attributes (such as whether to use reduced-precision floating-point math) that are needed to select the relevant mfma instruction and set its parameters. Reviewed By: ThomasRaoux, nirvedhmeshram Differential Revision: https://reviews.llvm.org/D132956
-
Nikita Popov authored
Since D129288, callbr is allowed to have duplicate successors. This patch removes a limitation which prevents optimizations from actually producing such callbrs. This is probably the riskiest of all the recent callbr changes, because code with incorrect assumptions might be lurking somewhere. I fixed the one case I encountered ahead of time in https://github.com/llvm/llvm-project/commit/8201e3ef5c84561260218bc041209611aac690e3. Reviewed By: nickdesaulniers Differential Revision: https://reviews.llvm.org/D129997 Originally landed as commit 08860f52 ("[Local] Allow creating callbr with duplicate successors") Reverted in commit 1cf6b93d ("Revert "[Local] Allow creating callbr with duplicate successors"")
-
Mark de Wever authored
These cleanups were identified while working on D130295. Reviewed By: #libc, ldionne, philnik Differential Revision: https://reviews.llvm.org/D131185
-
Roy Jacobson authored
https://reviews.llvm.org/rG6bbf51f3ed59ae37f0fec729f25af002111c9e74 from May removed Preprocessor::getPredefines() from Clang's API, presumably as a cleanup because this method is unused in the LLVM codebase. However, it was/is used by a small number of third-party tools and is pretty harmless, so this patch adds it back and documents why it's here. The issue was raised in https://github.com/llvm/llvm-project/issues/57483, it would be nice to be able to land it into Clang 15 as it breaks those third-party tools and we can't easily add it back in bug fix releases. Reviewed By: brad.king, thieta Differential Revision: https://reviews.llvm.org/D133044
-
Vitaly Buka authored
Reviewed By: kstoimenov Differential Revision: https://reviews.llvm.org/D132909
-
Nick Desaulniers authored
This fixes a crash observed after https://reviews.llvm.org/D129997. Similar to D88823. Reviewed By: efriedma Differential Revision: https://reviews.llvm.org/D130127
-
Alexey Bataev authored
-
Nick Desaulniers authored
Add a FIXME that will be immediately removed in D130127. Reviewed By: nikic Differential Revision: https://reviews.llvm.org/D132609
-
Alexey Bataev authored
-
Vitaly Buka authored
-
Martin Storsjö authored
We do keep using the flag with Clang, which should keep catching such issues in buildbots. With GCC, the warning can cause lots of loud notes about the warning logic getting disabled in large source files. Differential Revision: https://reviews.llvm.org/D132914
-
Philip Reames authored
This is NOT nfc. Specifically, the following behavior changes: * Pointers are now allowed. Both uniform, and constants. * FP uniform non-constants can now be recognized. * FP undefs are no longer considered constant. This matches int behavior which we had tests for. FP behavior was untested. Its not clear to me int behavior is reasonable, but it's what tests seem to expect, so go with minimum impact for now.
-
Ying Yi authored
-
Sanjay Patel authored
Seeing the wrong instruction for this name in IR is confusing. Most of the tests are not even checking a subsequent use of the value, so I just deleted the over-specified CHECKs.
-
Katherine Rasmussen authored
Write a semantics test for the atomic intrinsic subroutine, atomic_fetch_or. Reviewed By: rouson Differential Revision: https://reviews.llvm.org/D132519
-
LLVM GN Syncbot authored
-
Wei Yi Tee authored
Revert "[clang][dataflow] Generalise match switch utility to other AST types and add a `CFGMatchSwitch` which currently handles `CFGStmt` and `CFGInitializer`." This reverts commit c9033eeb. https://lab.llvm.org/buildbot#builders/57/builds/21618 Build failure due to comparison between unsigned int and const int originating from EXPECT_EQ.
-
Arthur Eubanks authored
-
Michael Maitland authored
X86 and ARM AsmParsers have this same assertion. This assertion provides better reporting when the RISCVTargetStreamer is null and helps to prevent null pointer access. Reviewed By: bkramer Differential Revision: https://reviews.llvm.org/D132863
-
Craig Topper authored
VP_STORE has a Chain for operand 0, so the LEGALPOS should be 1. VP_STORE is always considered Legal for MVT::Other. So I suspect this was causing vp_store to be ignored by LegalizeVectorOps and instead handled in LegalizeDAG. VP_LOAD is Custom expanded in LegalizeVectorOps for RISC-V. Differential Revision: https://reviews.llvm.org/D132972
-
Nico Weber authored
-
Mark de Wever authored
Some of the merged patches didn't have conflicts but were not compatible. This should fix it.
-
Siva Chandra Reddy authored
The implementation currently supports only non-thumb mode. As a test for the implementation, mmap and munmap functions have been enabled. Reviewed By: michaelrj Differential Revision: https://reviews.llvm.org/D132825
-
Dong-hee Na authored
Differential Revision: https://reviews.llvm.org/D133022
-
Mark de Wever authored
This defines a new policy for removal of transitive includes. The goal of the policy it to make it relatively easy to remove headers when needed, but avoid breaking developers using and vendors shipping libc++. The method used is to guard transitive includes based on the C++ language version. For the upcoming C++23 we can remove headers when we want, but for other language versions we try to keep it to a minimum. In this code the transitive include of `<chrono>` is removed since D128577 introduces a header cycle between `<format>` and `<chrono>`. This cycle is indirectly required by the Standard. Our cycle dependency tool basically is a grep based tool, so it needs some hints to ignore cycles. With the input of our transitive include tests we can create a better tool. However that's out of the scope of this patch. Note the flag `_LIBCPP_REMOVE_TRANSITIVE_INCLUDES` remains unchanged. So users can still opt-out of transitives includes entirely. Reviewed By: #libc, ldionne, philnik Differential Revision: https://reviews.llvm.org/D132284
-
Michael Jones authored
The libc.src.__support.FPUtil.fputil target encompassed many unrelated files, and provided a lot of hidden dependencies. This patch splits out all of these files into component parts and cleans up the cmake files that used them. It does not touch any source files for simplicity, but there may be changes made to them in future patches. Reviewed By: lntue Differential Revision: https://reviews.llvm.org/D132980
-
Wei Yi Tee authored
Printing support enables the production of more useful error messages in unit testing e.g. when using matchers such as `UnorderedElementsAre()` to inspect the contents of a `StringMap`. Reviewed By: gribozavr2, sgatev, ymandel Differential Revision: https://reviews.llvm.org/D132747
-
Fangrui Song authored
-