- Jun 03, 2023
-
-
Stefan Pintilie authored
This patch adds the DFP compare instructions: dcmpu, dcmpuq, dcmpo, dcmpoq Reviewed By: amyk Differential Revision: https://reviews.llvm.org/D150899
-
Fangrui Song authored
With only a link action, we claim all CompileOnly_Group options (including -f*, -m*, -i*, etc). It makes sense to claim -nostdinc family options as well. We can achieve this by placing these options into IncludePath_Group, a derivative of CompileOnly_Group. Reviewed By: theuni Differential Revision: https://reviews.llvm.org/D151944
-
Chia-hung Duan authored
To define custom allocation, you only need to put the configuration in custom_scudo_config.h and define two required aliases, then you will be switched to the customized config and the tests will also run with your configuration. In this CL, we also have a minor refactor the structure of configuration. Now the essential fields are put under the associated hierarchy and which will make the defining new configuration easier. Reviewed By: cferris Differential Revision: https://reviews.llvm.org/D150481
-
Kazu Hirata authored
-
Joel E. Denny authored
Without this patch, the following example crashes Clang: ``` #pragma omp target map(i) #pragma omp tile sizes(2) for (i = 0; i < N; ++i) ; ``` This patch fixes the crash by changing `Sema::isOpenMPPrivateDecl` not to identify `i` as private just because it's the loop variable of a `tile` construct. While OpenMP TR11 and earlier do specify privacy for loop variables of loops *generated* from a `tile` construct, I haven't found text stating that the original loop variable must be private in the above example, so this patch leaves it shared. Even so, it is a bit unexpected that value of `i` after the loop is `N - 1` instead of `N`. Reviewed By: ABataev Differential Revision: https://reviews.llvm.org/D151356
-
- Jun 02, 2023
-
-
Andrzej Warzynski authored
This patch makes sure that scalable indices (that would normally represent scalable tile or vector sizes) are printed correctly, i.e. with additional square brackets: ``` %1, %loop = transform.structured.tile %0 [2, 8, [4]] ``` This change complements https://reviews.llvm.org/D150944 and is a part of a larger effort to enable scalable vectorisation in Linalg. See this RFC for more context: * https://discourse.llvm.org/t/rfc-scalable-vectorisation-in-linalg/ Differential Revision: https://reviews.llvm.org/D151978
-
Viktoriia Bakalova authored
-
Simon Pilgrim authored
-
Viktoriia Bakalova authored
Differential Revision: https://reviews.llvm.org/D148793
-
Tue Ly authored
-
Elizabeth Andrews authored
Clang was rejecting valid code where GNU style attributes preceded C++ style attributes in template declarations as follows: template<int a> __attribute__((deprecated("oh no!"))) [[deprecated("oh no!")]] void foo(); This PR fixes the bug. Differential Revision: https://reviews.llvm.org/D151837 -
Simon Pilgrim authored
[GlobalIsel][X86] Move G_SHL/G_LSHR/G_ASHR legalization before legacy handling and merge 32-bit/64-bit handling
-
Simon Pilgrim authored
[GlobalIsel][X86] Move G_SDIV/G_SREM/G_UDIV/G_UREM legalization before legacy handling and merge 32-bit/64-bit handling
-
Peter Klausler authored
Per 15.5.2.5 p2, when both a dummy data object and its associated actual argument are ALLOCATABLE or POINTER, there are rules requiring that both be unlimited polymorphic if either is, and that both be polymorphic if either is. The justifications for the first restriction is that the called procedure might change the type of an unlimited polymorphic dummy argument, but as this cannot occur for a dummy argument with INTENT(IN), we can relax the check to an optional portability warning. The justification for the second restriction is that some implementations would have to create a type descriptor to associate a monomorphic allocatable/pointer actual argument with a polymorphic dummy argument, and that doesn't apply to f18 since we use descriptors for them anyways. Relaxing these needless checks allows more library procedures to use "class(*), dimension(..), pointer, intent(in)" dummy arguments in explicit interfaces. Differential Revision: https://reviews.llvm.org/D151941
-
sstwcw authored
Reviewed By: HazardyKnusperkeks, MyDeveloperDay Differential Revision: https://reviews.llvm.org/D151632
-
Marco Elver authored
This reverts commit fc011a72. This reverts commit 4ad6a0c9. This reverts commit 4b1eb4cf. Still causes Windows build bots to fail.
-
Marco Elver authored
The tests already depend on libc through various dependencies. In addition, including C++STL inline functions may lead to ODR violations where one version uses sanitizer_common's internal_mem*() functions, and the other the normal memintrinsics.
-
Louis Dionne authored
-
J. Ryan Stinnett authored
-
David Green authored
Originally from the MVE tests, this adds tests for various operations which can often be converted to predicated instructions under SVE. Additionally some tests for commutativity and extra uses of the existing smin/smax operations. See the patches D149969/ D151084 / D151080 / D149967 / etc.
-
Jie Fu authored
/data/llvm-project/mlir/lib/Dialect/Transform/IR/TransformOps.cpp:230:35: error: unqualified call to 'std::move' [-Werror,-Wunqualified-std-cast-call] patterns.try_emplace(attr, [f = move(fn)](RewritePatternSet &patternSet) { ^ std:: 1 error generated. -
Matthias Springer authored
Differential Revision: https://reviews.llvm.org/D151983
-
Marco Elver authored
Add interface attribute to __sanitizer_internal_mem* declarations as well, as otherwise some compilers (MSVC) will complain.
-
Simon Pilgrim authored
Add i8/i16/i24/i42 ADD/SUB test coverage
-
Simon Pilgrim authored
-
Ingo Müller authored
This function should be implemented for ops that work in one-shot bufferization. Reviewed By: springerm Differential Revision: https://reviews.llvm.org/D151548
-
Marco Elver authored
D135716 introduced -ftrivial-auto-var-init=pattern where supported. Unfortunately this introduces unwanted memset() for large stack arrays, as shown by the new tests added for asan and msan (tsan already had this test). In general, the problem of compiler-inserted memintrinsic calls (memset/memcpy/memmove) is not new to compiler-rt, and has been a problem before. To avoid introducing unwanted memintrinsic calls, we redefine memintrinsics as __sanitizer_internal_mem* at the assembly level for most source files automatically (where sanitizer_common_internal_defs.h is included). In few cases, redefining a symbol in this way causes issues for interceptors, namely the memintrinsic interceptor themselves. For such source files we have to selectively disable the redefinition. Other alternatives have been considered, but simply do not work well in the context of compiler-rt: 1. Linker --wrap: this does not work because --wrap only applies to the final link, and would not apply when building sanitizer static libraries. 2. Changing references to memset() via objcopy: this may work, but due to the complexities of the build system, introducing such a post-processing step for the right object files (in particular object files defining memset cannot be touched) seems infeasible. The chosen solution works well (as shown by the tests). Other libraries have chosen the same solution where nothing else works (see e.g. glibc's "symbol-hacks.h"). v3: - Don't use ALIAS() to alias internal_mem*() functions to __sanitizer_internal_mem*() functions, but just define them as ALWAYS_INLINE functions instead. This will work on darwin and windows. v2: - Fix ubsan_minimal build where compiler decides to insert memset/memcpy: ubsan_minimal has work without RTSanitizerCommonLibc, therefore do not redefine the builtins. - Fix definition of internal_mem* functions with compilers that want the aliased function to already be defined before. - Fix definition of __sanitizer_internal_mem* functions with compilers more pedantic about attribute placement around extern "C". Reviewed By: vitalybuka, dvyukov Differential Revision: https://reviews.llvm.org/D151152
-
Matthias Springer authored
Differential Revision: https://reviews.llvm.org/D151984
-
Simon Pilgrim authored
Also merge 32-bit/64-bit handling of G_CTPOP/G_CTLZ using legalIf()
-
Matthias Springer authored
Add a new transform op that applies patterns to a targeted payload op. Patterns can be registered by transform dialect extensions in a pattern registry. Differential Revision: https://reviews.llvm.org/D151983
-
Matthias Springer authored
Add a new interface `FindPayloadReplacementOpInterface` to specify ops that should be skipped when looking for payload replacement ops. Such ops are typically metadata-only ops. With this change, we no longer need to maintain a custom TrackingListener in the tensor dialect. Note: `CastOpInterface` by itself is not sufficient. Some metadata-only ops such as "tensor.reshape" are not casts, and it would be incorrect for them to implement the `CastOpInterface`. Differential Revision: https://reviews.llvm.org/D151888
-
eopXD authored
Maps to amendment in under specification: riscv-non-isa/rvv-intrinsic-doc#233 Signed-off-by:eop Chen <eop.chen@sifive.com>
-
Nikita Popov authored
-
Matt Arsenault authored
No tests failed when I removed the hasBranchDivergence check, so add one.
-
Nikita Popov authored
This fixes the largest remaining discrepancy between results of computeKnownBits() and SimplifyDemandedBits(). We only care about the multi-use case here, because the assume necessarily introduces an extra use.
-
Jolanta Jensen authored
This patch extends existing IR combines for: fmul, fsub and fadd, relying on all active predicate to also apply to their equivalent undef (_u) intrinsics. Differential Revision: https://reviews.llvm.org/D150768
-
Haojian Wu authored
get rid of the SourceManager dependency -- getCanonicalPath doesn't use other SourceManager fields.
-
Florian Hahn authored
If the ZExt can be lowered to a single ZExt to the next power-of-2 and the remaining ZExt folded into the user, don't use tbl lowering. Fixes #62620. Reviewed By: efriedma Differential Revision: https://reviews.llvm.org/D150482
-
Simon Pilgrim authored
Replace the legacy legalizers for G_ADD/G_SUB with a pattern that should work for the full mixture of scalar/vector types we need to support for most opcodes. If we can decide on this as a suitable pattern we can reuse it for the other op types, but G_ADD/G_SUB are the only ones that have decent legalizer test coverage at this stage. Differential Revision: https://reviews.llvm.org/D151878
-
rikhuijzer authored
This patch suggests to add a sentence in the introduction which clarifies the aim of the dialect in one sentence. I hope that I understood it correctly. For the `summary` fields, I have scrolled through the Bufferization page (<https://mlir.llvm.org/docs/Bufferization>) and added missing summaries or standardized existing ones to make the summaries easier to read. Reviewed By: springerm Differential Revision: https://reviews.llvm.org/D151829
-