- Mar 29, 2022
-
-
Joseph Huber authored
The changes in D122444 caused OpenMP programs built with the LLVM_ENABLE_RUNTIMES options to stop finding the libraries. We generally expect to link against the libraries associated with the clang installation itself but we no longer implicitly included that directory. This patch adds in the include path of the clang installations library to ensure we can find them. Reviewed By: jdoerfert, MaskRay Differential Revision: https://reviews.llvm.org/D122592
-
Jacques Pienaar authored
This has been on _Both for a couple of weeks. Flip usages in core with intention to flip flag to _Prefixed in follow up. Needed to add a couple of helper methods in AffineOps and Linalg to facilitate a pure flag flip in follow up as some of these classes are used in templates and so sensitive to Vector dialect changes. Differential Revision: https://reviews.llvm.org/D122151
-
Nathan Sidwell authored
The OutputBuffer class tries to present a NUL-terminated string API to consumers. But several of them would prefer a StringView. In particular the Microsoft demangler, juggles between NUL-terminated and StringView, which is confusing. This adds a StringView conversion, and adjusts the Demanglers that can benefit from that. Reviewed By: dblaikie Differential Revision: https://reviews.llvm.org/D120990
-
Akira Hatanaka authored
Differential Revision: https://reviews.llvm.org/D122425
-
Mogball authored
- Adds default implementations of `isDefinedOutsideOfLoop` and `moveOutOfLoop` since 99% of all implementations of these functions were identical - `moveOutOfLoop` takes one operation and doesn't return anything anymore. 100% of all implementations of this function would always return `success` and uses would either respond with a pass failure or an `llvm_unreachable`.
-
Craig Topper authored
This as an alternative version of D120641. Starting from the code here https://repo.hca.bsc.es/gitlab/rferrer/llvm-epi/-/raw/EPI/llvm/lib/Target/RISCV/RISCVISelLowering.cpp but with some modifications to how the interim types are calculated, and adding support for f16. Still need to add fptosi for mask vectors. Lots of masked isel patterns added so we can pass the mask through the type changes. Reviewed By: frasercrmck, arcbbb Differential Revision: https://reviews.llvm.org/D122512
-
Fangrui Song authored
Fix a regression in aa27bab5: COMMON in an SHT_PROGBITS output section caused llvm_unreachable failure.
-
William S. Moses authored
This commit adds MemWrite (and MemRead, as appropriate) to the arugments of the memset/memcpy/memmove intrinsics within the LLVM dialect Reviewed By: ftynse Differential Revision: https://reviews.llvm.org/D122552
-
Roland McGrath authored
This has never really been used in practice. Fuchsia is moving away from the support this requires, so don't use it. Reviewed By: phosek Differential Revision: https://reviews.llvm.org/D122500
-
Fangrui Song authored
Many options (-fsyntax-only, -E, -S, etc) skip the link action phase which the existing condition does not account for. Since the code no longer specifies OPT_c, I think a single RUN line about -c not leading to a warning is sufficient. Adding one for all of -E, -fsyntax-only, -S would be excessive. Reviewed By: benshi001 Differential Revision: https://reviews.llvm.org/D122553
-
Kiran Chandramohan authored
Enable lowering to the relaxed and precise variants in the pgmath library. This is part of the upstreaming effort from the fir-dev branch in [1]. [1] https://github.com/flang-compiler/f18-llvm-project Co-authored-by:
Eric Schweitz <eschweitz@nvidia.com> Co-authored-by:
Jean Perier <jperier@nvidia.com> Co-authored-by:
Peter Klausler <pklausler@nvidia.com> Reviewed By: clementval Differential Revision: https://reviews.llvm.org/D122484
-
Fangrui Song authored
This reverts commit 16524d2f. The test caused some warnings when avr-gcc was not installed.
-
Fangrui Song authored
and remove overly verbose comments.
-
Florian Hahn authored
-
Fangrui Song authored
Many options (-fsyntax-only, -E, -S, etc) skip the link action phase which the existing condition does not account for. Since the code no longer specifies OPT_c, I think a single RUN line about -c not leading to a warning is sufficient. Adding one for all of -E, -fsyntax-only, -S would be excessive. Reviewed By: benshi001 Differential Revision: https://reviews.llvm.org/D122553
-
Nathan Sidwell authored
The microsoft demangler makes copies of the demangled strings, but has some confusion between StringView representation (sans NUL), and C-strings (with NUL). Here we also have a use of strcpy, which happens to work because the incoming string view happens to have a trailing NUL. But a simple memcpy excluding the NUL is sufficient. Reviewed By: dblaikie, erichkeane Differential Revision: https://reviews.llvm.org/D122391
-
Simon Pilgrim authored
Fixes #54562
-
Kazu Hirata authored
-
Kazu Hirata authored
-
Kazu Hirata authored
-
Kazu Hirata authored
-
Kazu Hirata authored
-
Kazu Hirata authored
Apply clang-tidy fixes for readability-redundant-smartptr-get in SummaryBasedOptimizations.cpp (NFC)
-
Kazu Hirata authored
-
Kazu Hirata authored
-
Kazu Hirata authored
-
Kazu Hirata authored
-
Kazu Hirata authored
-
- Mar 28, 2022
-
-
Thomas Symalla authored
Revision https://reviews.llvm.org/D122332 added a pattern transformation where v_cmpx instructions are introduced. However, the modifiers are not correctly inherited from the original operands. The patch adds the source modifiers, if they are exist, or sets them to 0. Reviewed By: foad Differential Revision: https://reviews.llvm.org/D122489
-
Marius Brehler authored
Reviewed By: rriddle Differential Revision: https://reviews.llvm.org/D122305
-
Eric Li authored
Support `TransformerResult<void>` in the consumer callback, which allows generic code to more naturally use the `Transformer` interface (instead of needing to specialize on `void`). This also delete the specialization that existed within `Transformer` itself, instead replacing it with an `std::function` adapter. Reviewed By: ymandel Differential Revision: https://reviews.llvm.org/D122499
-
Jyotsna Verma authored
The intrinsic is lowered into a hexagon pseudo instruction which after register allocation is expanded into A2_tfrsi and J2_call.
-
Florian Hahn authored
This patch moves the code to set the correct incoming block for the backedge value to VPlan::execute. When generating the phi node, the backedge value is temporarily added using the pre-header as incoming block. The invalid phi node will be fixed up during VPlan::execute after main VPlan code generation. At the same time, the backedge value is also moved to the latch. This change removes the requirement to create the latch block up-front for VPWidenIntOrFpInductionRecipe::execute, which in turn will enable modeling the pre-header in VPlan. As an alternative, the increment could be modeled as separate recipe, but that would require more work and a bit of redundant code, as we need to create the step-vector during VPWidenIntOrFpInductionRecipe::execute anyways, to create the values for different parts. Reviewed By: Ayal Differential Revision: https://reviews.llvm.org/D121617
-
Markus Böck authored
These were noticed in the post commit review of https://reviews.llvm.org/D121988
-
gysit authored
This revision supports padding only a subset of the iteration dimensions via an additional padding-dimensions parameter. This control allows us to pad an operation in multiple steps. For example, one may want to pad only the output dimensions of a producer matmul fused into a consumer loop nest, before tiling and padding its reduction dimension. Depends On D122309 Reviewed By: nicolasvasilache Differential Revision: https://reviews.llvm.org/D122560
-
Daniil Kovalev authored
NVPTXTargetLowering::getFunctionParamOptimizedAlign, which was introduces in D120129, contained a poorly designed assertion checking that a function with internal or private linkage is not a kernel. It relied on invariants that were not actually guaranteed, and that resulted in compiler crash with some CUDA versions (see discussion with @jdoerfert in D120129). This patch changes that assertion and makes it use isKernelFunction which is designed exactly for such checks. This patch also includes a test with IR that caused compiler crash before. Differential Revision: https://reviews.llvm.org/D122562
-
Dominik Grewe authored
Expose MlirOperationClone in Python bindings. Reviewed By: ftynse Differential Revision: https://reviews.llvm.org/D122526
-
gysit authored
Pass the padding options using arrays instead of lambdas. In particular pass the padding value as string and use the argument parser to create the padding value. Arrays are a more natural choice that matches the current use cases and avoids converting arrays to lambdas. Reviewed By: nicolasvasilache Differential Revision: https://reviews.llvm.org/D122309
-
Ranjeet Singh authored
Make the warning more specific as downstream compilers could produce other warnings. Reviewed By: tstellar Differential Revision: https://reviews.llvm.org/D122487
-
Jake Egan authored
With the addition of `__attribute__((visibility("hidden")))` to the test, the test fails because AIX's current default behaviour is to ignore hidden visibility, so the expected error is not seen. This patch marks the test `XFAIL` on AIX for now. Reviewed By: cebowleratibm Differential Revision: https://reviews.llvm.org/D122519
-