- Dec 09, 2022
-
-
Max Kazantsev authored
Old logic: when loop symbolic max exit count matched *exact* block exit count, assume that all subsequent blocks will do 1 iteration less. New logic: when loop symbolic max exit count matched *symbolic max* block exit count, assume that all subsequent blocks will do 1 iteration less. The new logic is still legal and is more permissive in situations when exact block exit count is not known. Differential Revision: https://reviews.llvm.org/D139692 Reviewed By: nikic
-
Luke Lau authored
The old definition for store was outdated. Differential Revision: https://reviews.llvm.org/D139531
-
Luke Lau authored
Address spaces equal or larger than 1 << 24 don't fit and produce an assertion during debug builds, or worse in release. This causes an error to be reported during parsing instead. Differential Revision: https://reviews.llvm.org/D139528
-
Corentin Jabot authored
-
Max Kazantsev authored
-
Pierre van Houtryve authored
This combine only handled left shifts, but now it can handle right shifts as well. It handles right shifts conservatively and only truncates them to the size returned by TLI. AMDGPU benefits from always lowering shifts to 32 bits for instance, but AArch64 would rather keep them at 64 bits. Reviewed By: arsenm Differential Revision: https://reviews.llvm.org/D136319
-
Guillaume Chatelet authored
This breaks lld. This reverts commit 10c47465.
-
serge-sans-paille authored
Differential Revision: https://reviews.llvm.org/D139274
-
Nikita Popov authored
This uses the default intrinsic attributes (nofree, nosync, nocallback, willreturn) for a subset of the ptrauth intrinsics. Notably, this does not use them for auth and resign, because these intrinsics are specified to trap and as such are not willreturn. As far as I understood, the remaining intrinsics may not trap (or can only trap in cases where behavior is undefined). Differential Revision: https://reviews.llvm.org/D137557
-
Guray Ozen authored
The attribute is translated into LLVM's function attribute 'readonly'. The attribute can be only used for pointers. Reviewed By: nicolasvasilache Differential Revision: https://reviews.llvm.org/D139641
-
Guillaume Chatelet authored
Differential Revision: https://reviews.llvm.org/D139098
-
Vladislav Khmelevsky authored
Use container's reverse iterators, fix iterators types. Reviewed By: Amir Differential Revision: https://reviews.llvm.org/D139335
-
Corentin Jabot authored
Implement https://cplusplus.github.io/CWG/issues/2631.html. Immediate calls in default arguments and defaults members are not evaluated. Instead, we evaluate them when constructing a `CXXDefaultArgExpr`/`BuildCXXDefaultInitExpr`. The immediate calls are executed by doing a transform on the initializing expression. Note that lambdas are not considering subexpressions so we do not need to transform them. As a result of this patch, unused default member initializers are not considered odr-used, and errors about members binding to local variables in an outer scope only surface at the point where a constructor is defined. Reviewed By: aaron.ballman, #clang-language-wg Differential Revision: https://reviews.llvm.org/D136554
-
Elena Lepilkina authored
Precommit for https://reviews.llvm.org/D139553
-
serge-sans-paille authored
This reverts commit 4faf0000.
-
Jean Perier authored
This patch adds support for lowering intrinsics that have no dynamic optionality aspects to handle and that requires argument to be lowered to value, addr, or box. It uses the current intrinsic lowering framework that can be re-used in HLFIR to start with. HLFIR operations for charater/transformational intrinsics will be added as needed from an optimization point of view. The current approach will still create temporary variables for their value directly in lowering. Later patch will still need to add: - support for dynamically optional arguments - inquires - "moving" the in memory computation of character and transformational intrinsics to hlfir.expr. This is not needed from a semantic point of view, but will help optimizing and will probably be required inside hlfir.elemental returning characters so that the returned element type is an hlfir.expr and match the result type of later hlfir.apply. Differential Revision: https://reviews.llvm.org/D139613
-
serge-sans-paille authored
Differential Revision: https://reviews.llvm.org/D139274
-
Nilanjana Basu authored
Adding support for ZExt lowering for destination types beyond the existing support for (8|16) x i32 Patch for lowering zext instructions to 'tbl' for (8|16)xi8 -> (8|16)xi32 conversions in https://reviews.llvm.org/D120571 is extended to support zext to 'tbl' lowering for Y x i8 to Y x i8X where X > 2 and X < 8, that is, any number of vector elements & any destination element type whose size is a multiple of 8 and lies between 16 & 64 is allowed for this transformation. Related microbenchmarks are in https://reviews.llvm.org/D136274 & https://reviews.llvm.org/D138059 Differential Revision: https://reviews.llvm.org/D136722
-
Nilanjana Basu authored
These are unit tests for code generated for zext lowering of vectors. There are tests for different types of vectors, as well as cases where multiple 'zext' instructions of same type occur back-to-back. Testing of Global-ISel path is added. This will help in comparing changes in zext lowering in https://reviews.llvm.org/D136722. Reviewed By: fhahn Differential Revision: https://reviews.llvm.org/D137993
-
Valentin Clement authored
When call an elemental subroutine with a monomorphic or polymorphic passed object, the iteration shape could not be computed. Use the passed object to infer the implicit iteration shape so the loop can be constructed. Reviewed By: PeteSteinfeld Differential Revision: https://reviews.llvm.org/D139635
-
Nikita Popov authored
-
Kazu Hirata authored
These source files no longer use None, so they do not need to include None.h. This is part of an effort to migrate from llvm::Optional to std::optional: https://discourse.llvm.org/t/deprecating-llvm-optional-x-hasvalue-getvalue-getvalueor/63716
-
Kazu Hirata authored
This is part of an effort to migrate from llvm::Optional to std::optional: https://discourse.llvm.org/t/deprecating-llvm-optional-x-hasvalue-getvalue-getvalueor/63716
-
Douglas Yung authored
-
Kazu Hirata authored
This is part of an effort to migrate from llvm::Optional to std::optional: https://discourse.llvm.org/t/deprecating-llvm-optional-x-hasvalue-getvalue-getvalueor/63716
-
liqinweng authored
Reviewed By: david-arm Differential Revision: https://reviews.llvm.org/D134413
-
Jeff Niu authored
Missing two extra parameters.
-
Sameer Sahasrabuddhe authored
AAPointerInfoFloating::updateImpl Move the member function definition out of its class before modifying it. translateAndAddState Split the function definition into two along the FromCallee boolean argument. handleAccess This should only be called when Size is not known. In other cases, replaced with a direct call to addAccess. Reviewed By: jdoerfert Differential Revision: https://reviews.llvm.org/D138645
-
Jeff Niu authored
Reviewed By: rriddle Differential Revision: https://reviews.llvm.org/D139664
-
Paul Kirth authored
This reverts commit e89e8dcf. Some configurations still have references to discarded sections. I'm reverting until these can be addressed.
-
Eric Li authored
This commit resolves the FIXME around the behavior of `Lexer::makeFileCharRange` that `getRangeForEdit` inherits around source locations in macro expansions. We add a flag to `getRangeForEdit` that allows a caller to disable the behavior, and instead uses the spelling location instead, with checks to ensure that the source locations are not within a macro definition. Differential Revision: https://reviews.llvm.org/D139676
-
Chenbing Zheng authored
-
Vy Nguyen authored
Differential Revision: https://reviews.llvm.org/D139572
-
NAKAMURA Takumi authored
Corresponding to CMake change in llvmorg-16-init-13673-g138d5389
-
Jordan Rupprecht authored
Breakpoint option `-t` checks that `option_arg` is empty by checking `option_arg[0] == '\0'`. This is unnecessary: the next two checks for comparing against "current" and calling `getAsInteger` already gracefully handle an empty StringRef. If the `option_arg` string is empty, this crashes (or triggers an assertion failure with asserts enabled). Also, this sets the thread id to `LLDB_INVALID_THREAD_ID` if the thread id is invalid -- it should just not set the thread id. Likewise of `-x` which checks `option_arg[0] == '\n'` unnecessarily. I believe both of these bugs are unreachable via normal LLDB usage, and are only accessible via the fuzzer -- most likely some other CLI parsing is trimming whitespace and rejecting empty inputs. Still, it doesn't hurt to simplify this bit.
-
Paul Kirth authored
In many cases, we can use an alias to avoid a symbolic relocations, instead of using the public, interposable symbol. When the instrumented function is in a COMDAT, we can use a hidden alias, and still avoid references to discarded sections. This version makes the new runtime test a Linux only test. Reviewed By: phosek Differential Revision: https://reviews.llvm.org/D137982
-
Weining Lu authored
LoongArch doesn't use GlobalISel for now.
-
Jordan Rupprecht authored
The breakpoint list is a list of raw pointers. When breakpoints are removed, the memory is not deleted. Switch to unique pointers. I did some minor cleanup while making this change. Found by the LLDB command interpreter fuzzer. The input is `br m G`.
-
LLVM GN Syncbot authored
-
Artem Dergachev authored
This reverts commit bc061779. Be more careful with #includes to avoid linker errors on some buildbots.
-