- Jan 29, 2023
-
-
Kazu Hirata authored
-
Akash Banerjee authored
This enables conversion of OpenMP Target Data, Enter Data and Exit Data from FIR Dialect to LLVM IR Dialect. Differential Revision: https://reviews.llvm.org/D142629
-
Kazu Hirata authored
It takes less code (in C++ and the host assembly) to get rid of the trailing zeros and compare against {3,5,9} than divide the immediate by {3,5,9} and check to see if we have a power of 2. -
Amir Ayupov authored
Instead of creating an extra clang-bolt binary and clang++-bolt symlink, replace the original clang binary with BOLT-optimized one. This fixes the issue with installing optimized binary as `install-clang` target now copies the new version. Reviewed By: phosek Differential Revision: https://reviews.llvm.org/D139454
-
Kazu Hirata authored
-
Kazu Hirata authored
-
Peter Klausler authored
A fixed form continuation line should not be the first line of a statement; emit a warning if it looks like one is so that the programmer can look for a missing card. Differential Revision: https://reviews.llvm.org/D142763
-
Peter Klausler authored
A function in a defined operator generic interface will syntactically have one or two arguments. If a defined operator includes a specific function with 0 or more than 2 dummy arguments, there's no way that it could be invoked by way of the interface. Emit a warning. Differential Revision: https://reviews.llvm.org/D142762
-
Florian Hahn authored
Extend the NUW/NSW inference logic add in 72121a20 and cdeaf5f2 to all overflowing binary operators. Reviewed By: nikic Differential Revision: https://reviews.llvm.org/D142721
-
Peter Klausler authored
A dummy argument that appears only in ENTRY statements may not be used in the executable part prior to its first ENTRY statement. Differential Revision: https://reviews.llvm.org/D142758
-
Kazu Hirata authored
-
Mark de Wever authored
LWG3754 Class template expected synopsis contains declarations that do not match the detailed description This parts of the detailed synopsis that is not copied in libc++, so effectively there's nothing to do. Reviewed By: #libc, philnik Differential Revision: https://reviews.llvm.org/D142809
-
Kazu Hirata authored
-
Kazu Hirata authored
-
Kirill Stoimenov authored
I needed that to make -fsanitize-hwaddress-experimental-aliasing work, but it looks like the test pass without it also. This should fix https://lab.llvm.org/buildbot/#/builders/192 failures. Reviewed By: kstoimenov Differential Revision: https://reviews.llvm.org/D142812
-
- Jan 28, 2023
-
-
Hans Wennborg authored
This caused Chromium to crash, see comment on the code review. > Currently both calling conventions preserve registers that are used to > store a return value. This causes the returned value to be lost: > > define i32 @bar() { > %1 = call preserve_mostcc i32 @foo() > ret i32 %1 > } > > define preserve_mostcc i32 @foo() { > ret i32 2 > ; preserve_mostcc will restore %rax, > ; whatever it was before the call. > } > > This contradicts the current documentation (preserve_allcc "behaves > identical to the `C` calling conventions on how arguments and return > values are passed") and also breaks [[clang::preserve_most]]. > > This change makes CSRs be preserved iff they are not used to store a > return value (e.g. %rax for scalars, {%rax:%rdx} for __int128, %xmm0 > for double). For void functions no additional registers are > preserved, i.e. the behaviour is backward compatible with existing > code. > > Differential Revision: https://reviews.llvm.org/D141020 This reverts commit 0276fa89. -
Aaron Ballman authored
This addresses the issue found in: https://lab.llvm.org/buildbot/#/builders/92/builds/39306
-
Matt Arsenault authored
-
Matt Arsenault authored
-
eopXD authored
This patch works towards the simplification proposal [0] of Nick Knight. After this patch, we have reduced the hierarchy of intrinsics from two sets (non-policy and policy) into a single set, with a general assumption that policy behavior is agnostic unless specified. [0] https://gist.github.com/nick-knight/6cb0b74b351a25323dfb1821d3a269b9 Pull Request: riscv-non-isa/rvv-intrinsic-doc#186. Depends on D141796. Reviewed By: craig.topper, kito-cheng Differential Revision: https://reviews.llvm.org/D142016
-
Benjamin Kramer authored
-
Benjamin Kramer authored
This is needed for the AArch64 asm parser after 9ea00fc7
-
Chenguang Wang authored
It was removed in D142272. This commit is manually verified with: bazel test --config=generic_clang @llvm-project//mlir/unittests:ir_tests Reviewed By: bkramer Differential Revision: https://reviews.llvm.org/D142789
-
Kazu Hirata authored
-
Kazu Hirata authored
-
Craig Topper authored
We try to shift both X and C left by 32 to replace the zext.w with a SLLI and use mulhu. If C is already a simm32, this likely makes a constant that is more expensive to materialize.
-
Shivam Gupta authored
-
Noah Goldstein authored
Recommit "Reorder (shl (add/sub (shl x, C0), y), C1) -> (add/sub (shl x, C0 + C1), (shl y, C1))" 2nd Try First time caused build failure: https://lab.llvm.org/buildbot/#/builders/183/builds/10447 but after investigating it seems to be unrelated. The same test/build passed later with the original commit here: https://lab.llvm.org/buildbot/#/builders/183/builds/10448 This is just expanding the existing pattern that exists for AND/XOR/OR and gets a bit more parallelism in from the instruction sequence. Alive2: Add - https://alive2.llvm.org/ce/z/dSmPkV Sub1 - https://alive2.llvm.org/ce/z/6rpi5V Sub2 - https://alive2.llvm.org/ce/z/UfYeUd Reviewed By: spatel Differential Revision: https://reviews.llvm.org/D141875 -
Noah Goldstein authored
First time caused build failure: https://lab.llvm.org/buildbot/#/builders/183/builds/10447 but after investigating it seems to be unrelated. The same test/build passed later with the original commit here: https://lab.llvm.org/buildbot/#/builders/183/builds/10448 1. Add checks if X and/or Y are odd. The Odd values are unnecessary to the icmp: isZero(Odd * N) == isZero(N) 2. If neither X nor Y is known odd, then if X * Y cannot overflow AND if X and/or Y is non-zero, the non-zero values are unnecessary to the icmp. Reviewed By: nikic Differential Revision: https://reviews.llvm.org/D140850 -
Kazu Hirata authored
The argument is known to be nonzero, so we can safely switch to llvm::bit_ceil.
-
Matt Arsenault authored
Allegedly fixes test failure if there are no targets built.
-
Matt Arsenault authored
-
Matt Arsenault authored
For now keep the exising intrinsics working.
-
Mircea Trofin authored
-
Flash Sheridan authored
Differential revision: https://reviews.llvm.org/D140730
-
Flash Sheridan authored
The documentation for code coverage in clang/docs/SourceBasedCodeCoverage.rst omits a couple of crucial steps when using it with Lit. This patch should fix that. Differential revision: https://reviews.llvm.org/D140730
-
River Riddle authored
This makes it a bit easier to share the functionality for building language servers, and makes the API public. No real functional change, as the API was already intended for this anyways. Differential Revision: https://reviews.llvm.org/D142790
-
zhongyunde authored
Fix https://github.com/llvm/llvm-project/issues/59892 Reviewed By: efriedma Differential Revision: https://reviews.llvm.org/D141258
-
Peter Klausler authored
When folding the intrinsic functions CHAR and ACHAR, emit an error message if the argument is out of the valid range for the kind of the result. Differential Revision: https://reviews.llvm.org/D142754
-
LLVM GN Syncbot authored
-