- Jul 20, 2022
-
-
Joseph Huber authored
This patch makes libomptarget depend on LLVM libraries to be built. The reason for this is because we already have an implicit dependency on LLVM headers for ELF identification and extraction as well as an optional dependenly on the LLVMSupport library for time tracing information. Furthermore, there are changes in the future that require using more LLVM libraries, and will heavily simplify some future code as well as open up the large amount of useful LLVM libraries to libomptarget. This will make "standalone" builds of `libomptarget' more difficult for vendors wishing to ship their own. This will require a sufficiently new version of LLVM to be installed on the system that should be picked up by the existing handling for the implicit headers. The things this patch changes are as follows: - `libomptarget.so` links against LLVMSupport and LLVMObject - `libomptarget.so` is a symbolic link to `libomptarget.so.15` - If using a shared library build, user applications will depend on LLVM libraries as well - We can now use LLVM resources in Libomptarget. Note that this patch only changes this to apply to libomptarget itself, not the plugins. Additional patches will be necessary for that. Reviewed By: JonChesterfield Differential Revision: https://reviews.llvm.org/D129875 -
Ingo Müller authored
This is my very first contact with this dialect, so I am not very confident with this commit, but it seems like the op returns a memref, not a tensor, so that's what comment about the result type should say. [mlir][bufferization][doc] Improve typesetting of inline code. Fix Typo. Reviewed By: pifon2a Differential Revision: https://reviews.llvm.org/D130159
-
Louis Dionne authored
Move -lc++experimental before -lc++abi (that was forgotten in the original patch), and mark a test as UNSUPPORTED on AIX. I contacted the owners of the AIX bot that failed because I was unable to reproduce the issue locally.
-
Jay Foad authored
Change a couple of RUN lines to not depend on the presence or position of the IR code sinking pass in the codegen pipeline, since it does not belong in there anyway.
-
Philip Reames authored
An srem or sdiv has two cases which can cause undefined behavior, not just one. The existing code did not account for this, and as a result, we miscompiled when we encountered e.g. a srem i64 %v, -1 in a conditional block. Instead of hand rolling the logic, just use the utility function which exists exactly for this purpose. Differential Revision: https://reviews.llvm.org/D130106
-
Carlos Alberto Enciso authored
As discussed on: https://discourse.llvm.org/t/build-llvm-release-bat-script-options/63146/6 Giving: call :function if errorlevel 1 exit /b 1 Due to a missing new line, the error code returned by the function is taking as another argument. Changed to use standard '||' to exit if the errorlevel greater than zero. call :function || exit /b 1 Reviewed By: hans Differential Revision: https://reviews.llvm.org/D130154
-
Nicolai Hähnle authored
When F calls G calls H, G is nounwind, and G is inlined into F, then the inlined call-site to H should be effectively nounwind so as not to lose information during inlining. If H itself is nounwind (which often happens when H is an intrinsic), we no longer mark the callsite explicitly as nounwind. Previously, there were cases where the inlined call-site of H differs from a pre-existing call-site of H in F *only* in the explicitly added nounwind attribute, thus preventing common subexpression elimination. v2: - just check CI->doesNotThrow v3 (resubmit after revert at 34437880): - update Clang tests Differential Revision: https://reviews.llvm.org/D129860
-
Max Kazantsev authored
In fact, in unreached code we can say that every fact is true. So do not waste time trying to do something smarter. Formally it's not an NFC because it may change query results in unreached code, but they won't have any impact on execution. Hypothetical CT boost expected but not measured in practice. Differential Revision: https://reviews.llvm.org/D129878
-
Nicolai Hähnle authored
-
Andrzej Warzynski authored
This update makes sure that `flang-new -O2 -O0` will run at `-O0` rather than `-O2`. This bug was identified and originally fixed by Vyacheslav Zakharin in https://reviews.llvm.org/D130035. I've extracted the fix into a separate patch. co-authored by: Vyacheslav Zakharin <vyacheslav.p.zakharin@intel.com> Differential Revision: https://reviews.llvm.org/D130104
-
esmeyi authored
The n_type field in the symbol table entry has two interpretations in XCOFF32, and a single interpretation in XCOFF64. The new interpretation is used in XCOFF32 if the value of the o_vstamp field in the auxiliary header is 2. In XCOFF64 and the new XCOFF32 interpretation, the n_type field is used for the symbol type and visibility. The patch writes the aux header with an o_vstamp field value of 2 when the visibility is specified in XCOFF32 to make the new XCOFF32 interpretation used. Reviewed By: DiggerLin, jhenderson Differential Revision: https://reviews.llvm.org/D128148
-
Simon Pilgrim authored
Similar to what we already do in getNode for basic ADD/SUB nodes, return the X operand directly, but here we know that there will be no/zero overflow as well. As noted on D127115 - this path is being exercised by llvm/test/CodeGen/ARM/dsp-mlal.ll, although I haven't been able to get any codegen without a topological worklist.
-
David Green authored
Given a patch like D129506, using instructions not valid for the current target feature set becomes an error. This fixes an issue in ARMExpandPseudo::ExpandCMP_SWAP where Thumb2 compares were used in Thumb1Only code, such as thumbv8m.baseline targets. Differential Revision: https://reviews.llvm.org/D129695
-
Simon Pilgrim authored
-
Simon Pilgrim authored
-
Simon Pilgrim authored
Noticed while reviewing D129537
-
Florian Hahn authored
This patch introduces some initial def-use verification. This catches cases like the one fixed by D129436. Reviewed By: Ayal Differential Revision: https://reviews.llvm.org/D129717
-
Simon Pilgrim authored
[DAG] PromoteIntRes_BUILD_VECTOR - extend constant boolean vectors according to target BooleanContents PromoteIntRes_BUILD_VECTOR currently always ANY_EXTENDs build vector operands, but if this is a constant boolean vector we're losing the useful ability to keep the vector matching the BooleanContents mode used by the target. This patch extends constant boolean vectors according to target BooleanContents, allowing a number of additional all-bits folds (notable XOR -> NOT conversions) to occur. Differential Revision: https://reviews.llvm.org/D129641
-
Benjamin Kramer authored
-
Nikolas Klauser authored
Reviewed By: Mordante, #libc Spies: h-vetinari, libcxx-commits, arichardson Differential Revision: https://reviews.llvm.org/D129195
-
Nikolas Klauser authored
Reviewed By: Mordante, huixie90, #libc Spies: aheejin, libcxx-commits Differential Revision: https://reviews.llvm.org/D129976
-
Benjamin Kramer authored
For shm_open in orc jit.
-
Nicolai Hähnle authored
There is at least one Clang test (clang/test/CodeGen/arm_acle.c) which has functions guarded by #if's that cause those functions to be compiled only for a subset of RUN lines. This results in a case where one RUN line has a body for the function and another doesn't. Treat this case as a conflict for any prefixes that the two RUN lines have in common. This change exposed a bug where functions with '$' in the name weren't properly recognized in ARM assembly (despite there being a test case that was supposed to catch the problem!). This bug is fixed as well. Differential Revision: https://reviews.llvm.org/D130089
-
Chenbing Zheng authored
-
Chuanqi Xu authored
This reverts commit 57224ff4. This commit may trigger crashes on some workloads. Revert it for clearness.
-
Alexandros Lamprineas authored
Converts concat_vectors((trunc (lshr)), (trunc (lshr))) to UZP2 when the shift amount is half the width of the vector element. Prioritize the ADDHN(2), SUBHN(2) patterns over UZP2. Fixes https://github.com/llvm/llvm-project/issues/52919 Differential Revision: https://reviews.llvm.org/D130061
-
River Riddle authored
There is no benefit to making it public, and the code is much cleaner and easier to follow when inlined. This also matches the pattern within the PDLL lsp server.
-
David Sherwood authored
By default if SVE is enabled we want the select instruction used for reductions to be inside the loop, rather than outside. This makes it possible for the backend to fold the select into the operation to produce a single predicated add, fadd, etc. Differential Revision: https://reviews.llvm.org/D129763
-
Lorenzo Albano authored
Add promotion and expansion of integer operands for experimental_vp_strided SelectionDAG nodes; the expansion is actually just a truncation of the stride operand. Reviewed By: simoll Differential Revision: https://reviews.llvm.org/D123112
-
Anush Elangovan authored
Fix shared library names on macOS for execution_engine.py test. Reviewed By: stellaraccident Differential Revision: https://reviews.llvm.org/D130143
-
Chenbing Zheng authored
-
Xi Ruoyao authored
Initial libsanitizer support for LoongArch. It survived all GCC UBSan tests. Major changes: 1. LoongArch port of Linux kernel only supports `statx` for `stat` and its families. So we need to add `statx_to_stat` and use it for `stat`-like libcalls. The logic is "borrowed" from Glibc. 2. `sanitizer_syscall_linux_loongarch64.inc` is mostly duplicated from RISC-V port, as the syscall interface is almost same. Reviewed By: SixWeining, MaskRay, XiaodongLoong, vitalybuka Differential Revision: https://reviews.llvm.org/D129371
-
Luo, Yuanke authored
The test case focus on shuffle which can be transformed to select or blend.
-
Kazu Hirata authored
-
jacquesguan authored
This patch adds constant folder for Log1pOp which only supports single and double precision floating-point. Differential Revision: https://reviews.llvm.org/D129979
-
Fangrui Song authored
Following recent changes removing non-core features of the legacy PM/optimization pipeline.
-
Carlos Alberto Enciso authored
As discussed on: https://discourse.llvm.org/t/build-llvm-release-bat-script-options/63146/6 - In stage1 use the following binaries from stage0: lld-link, llvm-lib and llvm-windres Reviewed By: hans Differential Revision: https://reviews.llvm.org/D130067
-
Mahesh Ravishankar authored
[mlir][TilingInterface] Add support for interchange to tiling patterns that use the `TilingInterface`. Differential Revision: https://reviews.llvm.org/D129956
-
Kazu Hirata authored
Flang C++ Style Guide tells us to use x.value() when no presence test is obviously protecting the reference.
-
Vitaly Buka authored
This patches exposed existing incorectness of swapcontext imlementation. swapcontext does not set oucp->uc_stack. Unpoisoning works if ucp is from makecontext, but may try to use garbage pointers if it's from previos swapcontext or from getcontext. Existing limit reduces probability of garbage pointers are used. I restore behavour which we had for years, and will look to improve swapcontext support. This reverts commit d0751c97.
-