- Jul 19, 2022
-
-
Fangrui Song authored
D123493 introduced llvm::Module::Min to encode module flags metadata for AArch64 BTI/PAC-RET. llvm::Module::Min does not take effect when the flag is absent in one module. This behavior is misleading and does not address backward compatibility problems (when a bitcode with "branch-target-enforcement"==1 and another without the flag are merged, the merge result is 1 instead of 0). To address the problems, require Min flags to be non-negative and treat absence as having a value of zero. For an old bitcode without "branch-target-enforcement"/"sign-return-address", its value is as if 0. Differential Revision: https://reviews.llvm.org/D129911
-
Arjun P authored
Reviewed By: Groverkss Differential Revision: https://reviews.llvm.org/D129509
-
Arjun P authored
This also adds tests for abs, ceilDiv, floorDiv, mod, gcd and lcm. Reviewed By: Groverkss Differential Revision: https://reviews.llvm.org/D129816
-
Aart Bik authored
The rules in the linalg file were very specific to sparse tensors so will find a better home under sparse tensor dialect than linalg dialect. Also moved some rewriting from sparsification into this new "pre-rewriting" file. Reviewed By: springerm Differential Revision: https://reviews.llvm.org/D129910
-
Itay Bookstein authored
The DAG Combiner unnecessarily restricts commutative CSE to nodes with a single result value. This commit removes that restriction. Signed-off-by:
Itay Bookstein <ibookstein@gmail.com> Reviewed By: RKSimon Differential Revision: https://reviews.llvm.org/D129666
-
Craig Topper authored
We can use lw to load 4 bytes from the stack and sign extend them instead of loading all 8 bytes. Reviewed By: asb Differential Revision: https://reviews.llvm.org/D129948
-
Igor Kudrin authored
The new test fails on BE hosts. This reverts commit 04e978cc.
-
Alexander Batashev authored
SPIR-V specification does not require a function to have a name if it is an entry point. Adjust deserializer to allow those kinds of SPIR-V binaries. Reviewed By: antiagainst Differential Revision: https://reviews.llvm.org/D120181
-
- Jul 18, 2022
-
-
Michele Scuttari authored
When converted to the LLVM dialect, the memref.alloc and memref.free operations were generating calls to hardcoded 'malloc' and 'free' functions. This didn't leave any freedom to users to provide their custom implementation. Those operations now convert into calls to '_mlir_alloc' and '_mlir_free' functions, which have also been implemented into the runtime support library as wrappers to 'malloc' and 'free'. The same has been done for the 'aligned_alloc' function. Reviewed By: ftynse Differential Revision: https://reviews.llvm.org/D128791
-
Nicolai Hähnle authored
This reverts commit 9905c379. Looks like there are Clang changes that are affected in trivial ways. Will look into it.
-
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 Differential Revision: https://reviews.llvm.org/D129860
-
Sanjay Patel authored
-
Lorenzo Albano authored
Add vp_gather and vp_scatter expansion to unpredicated intrinsics. Reviewed By: simoll Differential Revision: https://reviews.llvm.org/D120664
-
Hans Wennborg authored
This caused build failures when building Clang and libc++ together on Mac: fatal error: 'experimental/memory_resource' file not found See the code review for details. Reverting until the problem and how to solve it is better understood. (Updates to some test files were not reverted, since they seemed unrelated and were later updated by 340b48b2.) > This is the first part of a plan to ship experimental features > by default while guarding them behind a compiler flag to avoid > users accidentally depending on them. Subsequent patches will > also encompass incomplete features (such as <format> and <ranges>) > in that categorization. Basically, the idea is that we always > build and ship the c++experimental library, however users can't > use what's in it unless they pass the `-funstable` flag to Clang. > > Note that this patch intentionally does not start guarding > existing <experimental/FOO> content behind the flag, because > that would merely break users that might be relying on such > content being in the headers unconditionally. Instead, we > should start guarding new TSes behind the flag, and get rid > of the existing TSes we have by shipping their Standard > counterpart. > > Also, this patch must jump through a few hoops like defining > _LIBCPP_ENABLE_EXPERIMENTAL because we still support compilers > that do not implement -funstable yet. > > Differential Revision: https://reviews.llvm.org/D128927 This reverts commit bb939931.
-
Ulrich Weigand authored
Fix potential crashes during unwind when checking for signal frames and the current PC is invalid. The same bug was fixed for aarch64 in https://reviews.llvm.org/D126343. Reviewed by: MaskRay Differential Revision: https://reviews.llvm.org/D129856
-
zhijian authored
Reviewers: James Henderson, Fangrui Song Differential Revision: https://reviews.llvm.org/D124865
-
Jeff Bailey authored
The API in StringView.h for remove_prefix was incorrect and was returning a new StringView rather than just altering the view. As part of this, also removed some of the safety features. The comment correctly noted that the behaviour is undefined in some cases, but the code and test cases checked for that. One caller was relying on the old behaviour, so fixed it and added some comments. Tested: check-libc llvmlibc libc-loader-tests Reviewed By: gchatelet Differential Revision: https://reviews.llvm.org/D129950
-
Benjamin Kramer authored
Only gmock.h and gtest.h are supposed to be user-visible.
-
gbreynoo authored
When an invalid shot command line option was used (e.g. -v) llvm-size would hang waiting on input from stdin. This change fixes this issue by bringing llvm-size in line with other llvm tools and exiting early when this error is output. Differential Revision: https://reviews.llvm.org/D129866
-
gbreynoo authored
Recommit after revert. This change adds testing for handling of bitcode files in archives, particularly the creation of symbol tables and through MRI scripts. Although there is some testing of bitcode handling in the archive library testing, this was not covered. Differential Revision: https://reviews.llvm.org/D129088
-
Alex Zinenko authored
Export the __init__.py from _mlir_libs.
-
Nikita Popov authored
This change was included in an unrelated change b57d6138 and was of course not intended for commit...
-
Nikita Popov authored
This can't make use of TestBinaryOpExhaustive, but it can make use of the general TestRange approach that collects the precise elements in a bit vector. This allows us to remove the obsolete "op range gatherer" infrastructure.
-
Brad Smith authored
Reviewed by: Mordante, phosek Differential Revision: https://reviews.llvm.org/D129978
-
Nikita Popov authored
Move testing for add/sub with nowrap flags to TestBinaryOpExhaustive, rather than separate homegrown exhaustive testing functions.
-
Petar Avramovic authored
Parse op_sel for *_e64_dpp VOP3 opcodes. Depends on D129637 and setting of VOP3_OPSEL in dpp pseudos. Differential Revision: https://reviews.llvm.org/D129767
-
Kadir Cetinkaya authored
Differential Revision: https://reviews.llvm.org/D130003
-
David Sherwood authored
In sve-tail-folding-reductions.ll I've also added an extra RUN line to test normal reductions, i.e. not in-loop. This patch is a pre-commit in preparation for a follow-on patch that changes how reduction selects are generated in the vector loop. Differential Revision: https://reviews.llvm.org/D129761
-
LLVM GN Syncbot authored
-
Vaibhav Yenamandra authored
[clang] Emit SARIF Diagnostics: Create clang::SarifDocumentWriter interface Create an interface for writing SARIF documents from within clang: The primary intent of this change is to introduce the interface clang::SarifDocumentWriter, which allows incrementally adding diagnostic data to a JSON backed document. The proposed interface is not yet connected to the compiler internals, which will be covered in future work. As such this change will not change the input/output interface of clang. This change also introduces the clang::FullSourceRange type that is modeled after clang::SourceRange + clang::FullSourceLoc, this is useful for packaging a pair of clang::SourceLocation objects with their corresponding SourceManagers. Previous discussions: RFC for this change: https://lists.llvm.org/pipermail/cfe-dev/2021-March/067907.html https://lists.llvm.org/pipermail/cfe-dev/2021-July/068480.html SARIF Standard (2.1.0): https://docs.oasis-open.org/sarif/sarif/v2.1.0/os/sarif-v2.1.0-os.html Differential Revision: https://reviews.llvm.org/D109701
-
David Sherwood authored
I've simplified all of the SVE vectoriser tail-folding tests to only care about testing the flag: -prefer-predicate-over-epiloge=predicate-else-scalar-epilogue In practice we always want to fall back on unpredicated vector loops if tail-folding is not possible. Differential Revision: https://reviews.llvm.org/D129843
-
Simon Pilgrim authored
[AArch64] isDesirableToCommuteWithShift - add explicit ShiftLHS variable instead of altering a incoming argument variable As discussed on D129995, altering the 'N' variable to point to shift's source value was confusing.
-
Simon Pilgrim authored
[DAG] Add asserts to isDesirableToCommuteWithShift overrides to ensure its being called from a shift. NFC.
-
Simon Pilgrim authored
-
Simon Pilgrim authored
[DAG] Add missing asserts to shouldFoldConstantShiftPairToMask overrides to ensure a shl/srl pair is used. NFC.
-
Nikita Popov authored
This variable was only declared in debug builds, but is needed in release builds as well.
-
Nico Weber authored
-
Benjamin Kramer authored
llvm/lib/Analysis/LoopAccessAnalysis.cpp:916:12: error: no viable conversion from returned value of type 'SmallVector<[...], 2>' to function return type 'SmallVector<[...], (default) CalculateSmallVectorDefaultInlinedElements<T>::value aka 3>' return Scevs; ^~~~~ -
Benjamin Kramer authored
This is a regression from f1879481
-
Valentin Clement authored
Restore the `--dump-symbols` option in the `bbc` tool. Reviewed By: jeanPerier Differential Revision: https://reviews.llvm.org/D129850
-