- Jul 18, 2022
-
-
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
-
Haojian Wu authored
-
Kristina Bessonova authored
If DISubpogram was not cloned (e.g. we are cloning a function that has other functions inlined into it, and subprograms of the inlined functions are not supposed to be cloned), it doesn't make sense to clone its DILexicalBlocks as well. Otherwise we'll get duplicated DILexicalBlocks that may confuse debug info emission in AsmPrinter. I believe it also makes no sense cloning any DILocalVariables or maybe other local entities, if their parent subprogram was not cloned, cause they will be dangling and will not participate in futher emission. Reviewed By: aprantl Differential Revision: https://reviews.llvm.org/D127102
-
Igor Kudrin authored
The current implementation assumes that all pointers used in the initialization of an aggregate are aligned according to the pointer size of the target; that might not be so if the object is packed. In that case, an array of .u8 should be used and pointers should be decorated with the mask() operator. The operator was introduced in PTX ISA 7.1, so an error is issued if the case is detected for an earlier version. Differential Revision: https://reviews.llvm.org/D127504
-
Igor Kudrin authored
This simplifies NVPTXAsmPrinter::AggBuffer and its usage. It is also a preparation for D127504. Differential Revision: https://reviews.llvm.org/D129773
-
Graham Hunter authored
This builds on the previous forked pointers patch, which only accepted a single select as the pointer to check. A recursive function to walk through IR has been added, which searches for either a loop-invariant or addrec SCEV. This will only handle a single fork at present, so selects of selects or a GEP with a select for both the base and offset will be rejected. There is also a recursion limit with a cli option to change it. Reviewed By: fhahn, david-arm Differential Revision: https://reviews.llvm.org/D108699
-
Dmitry Preobrazhensky authored
Update FLAT LDS syntax (see https://reviews.llvm.org/D125126).
-
Dmitry Preobrazhensky authored
Update FLAT LDS syntax (see https://reviews.llvm.org/D125126).
-
serge-sans-paille authored
Some code [0] consider that trailing arrays are flexible, whatever their size. Support for these legacy code has been introduced in f8f63249 but it prevents evaluation of __builtin_object_size and __builtin_dynamic_object_size in some legit cases. Introduce -fstrict-flex-arrays=<n> to have stricter conformance when it is desirable. n = 0: current behavior, any trailing array member is a flexible array. The default. n = 1: any trailing array member of undefined, 0 or 1 size is a flexible array member n = 2: any trailing array member of undefined or 0 size is a flexible array member This takes into account two specificities of clang: array bounds as macro id disqualify FAM, as well as non standard layout. Similar patch for gcc discuss here: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101836 [0] https://docs.freebsd.org/en/books/developers-handbook/sockets/#sockets-essential-functions
-
Ivan Kosarev authored
Reviewed By: arsenm Differential Revision: https://reviews.llvm.org/D129381
-
Nikita Popov authored
As callbr is now allowed to have duplicate destinations, we can have a callbr with a unique successor. Make sure it doesn't get dropped, as we still need to preserve the side-effect.
-
Ivan Kosarev authored
Saves some add instructions on a couple Rage 2 shaders and is also a prerequisite for a coming-soon change matching (register + immediate) offsets. Reviewed By: foad, arsenm Differential Revision: https://reviews.llvm.org/D129095
-
David Spickett authored
This reverts commit 81bffdf6, the machine is back online. Differential Revision: https://reviews.llvm.org/D129987
-
Nikita Popov authored
We only need to check the block for the normal/default destination, not for other destinations. Using the value in those would be illegal anyway. The callbr case cannot actually happen here, because callbr is currently limited to inline asm. Retaining it to match the spirit of the original code.
-
Nikita Popov authored
-
Utkarsh Saxena authored
This first version only uses bracket matching. We plan to extend this to use DirectiveTree as well. Also includes changes to Token to allow retrieving corresponding token in token stream of original source file. Differential Revision: https://reviews.llvm.org/D129648
-
Max Kazantsev authored
Undef tokens may appear in unreached code as result of RAUW of some optimization, and it should not be considered as bad IR. Patch by Dmitry Bakunevich! Differential Revision: https://reviews.llvm.org/D128904 Reviewed By: mkazantsev
-