- Oct 22, 2021
-
-
Balázs Kéri authored
Fix for importing functions where the TypeSourceInfo is set and the exception specification information contains reference to the function declaration itself. Reviewed By: martong, steakhal Differential Revision: https://reviews.llvm.org/D112013
-
Kristof Beyls authored
Differential Revision: https://reviews.llvm.org/D111134
-
Chen Zheng authored
-
Chen Zheng authored
This is to improve compiling time. Differential Revision: https://reviews.llvm.org/D112196 Reviewed By: jsji
-
David Blaikie authored
-
Chuanqi Xu authored
When I playing with Coroutines, I found that it is possible to generate following IR: ``` %struct = alloca ... %sub.element = getelementptr %struct, i64 0, i64 index ; index is not %zero lifetime.marker.start(%sub.element) % use of %sub.element lifetime.marker.end(%sub.element) store %struct to xxx ; %struct is escaping! <suspend points> ``` Then the AllocaUseVisitor would collect the lifetime marker for sub.element and treat it as the lifetime markers of the alloca! So it judges that the alloca could be put on the stack instead of the frame by judging the lifetime markers only. The root cause for the bug is that AllocaUseVisitor collects wrong lifetime markers. This patch fixes this. Reviewed By: lxfind Differential Revision: https://reviews.llvm.org/D112216
-
LLVM GN Syncbot authored
-
Vitaly Buka authored
-
Vitaly Buka authored
Transformations may strip the attribute from the argument, e.g. for unused, which will result in shadow offsets mismatch between caller and callee. Stripping noundef for used arguments can be a problem, as TLS is not going to be set by caller. However this is not the goal of the patch and I am not aware if that's even possible. Differential Revision: https://reviews.llvm.org/D112197
-
Stanislav Mekhanoshin authored
In a kernel which does not have calls or AGPR usage we can allocate the whole vector register budget for VGPRs and have no AGPRs as long as VGPRs stay addressable (i.e. below 256). Differential Revision: https://reviews.llvm.org/D111764
-
Matthias Springer authored
This commit adds support for scf::IfOp to comprehensive bufferization. Support is currently limited to cases where both branches yield tensors that bufferize to the same buffer. To keep the analysis simple, scf::IfOp are treated as memory writes for analysis purposes, even if no op inside any branch is writing. (scf::ForOps are handled in the same way.) Differential Revision: https://reviews.llvm.org/D111929
-
Nico Weber authored
That way, the headers in llvm/utils/gn/secondary/compiler-rt/include are copied when running `ninja compiler-rt`. (Previously, they were only copied when running `check-hwasan` or when building the compiler-rt/include target.) (Since they should be copied only once, depend on the target in the host toolchain. I think default_toolchain should work just as well, it just needs to be a single fixed toolchain. check-hwasan depends through host_toolchain, so let's use that here too.) Prevents errors like testing/fuzzed_data_provider.h:8:10: fatal error: 'fuzzer/FuzzedDataProvider.h' file not found when building with locally-built clang. (For now, you still have to explicitly build the 'compiler-rt' target. Maybe we should make the clang target depend on that in the GN build?) Differential Revision: https://reviews.llvm.org/D112238 -
Luís Ferreira authored
This patch is a refactor to implement prepend afterwards. Since this changes a lot of files and to conform with guidelines, I will separate this from the implementation of prepend. Related to the discussion in https://reviews.llvm.org/D111414 , so please read it for more context. Reviewed By: #libc_abi, dblaikie, ldionne Differential Revision: https://reviews.llvm.org/D111947
-
Jonas Devlieghere authored
-
Jack Anderson authored
Some dwarf loaders in LLVM are hard-coded to only accept 4-byte and 8-byte address sizes. This patch generalizes acceptance into `DWARFContext::isAddressSizeSupported` and provides a common way to generate rejection errors. The MSP430 target has been given new tests to cover dwarf loading cases that previously failed due to 2-byte addresses. Reviewed By: dblaikie Differential Revision: https://reviews.llvm.org/D111953
-
Jonas Devlieghere authored
-
Tom Stellard authored
Reviewed By: MaskRay Differential Revision: https://reviews.llvm.org/D110377
-
Craig Topper authored
Zvamo is not part of the 1.0 V spec. Remove the intrinsics for now. This helps reduce clang binary size and lit test time. Reviewed By: HsiangKai Differential Revision: https://reviews.llvm.org/D111692
-
Tom Stellard authored
Does anyone still use these? I want to make some changes to the sphinx html generation and I don't want to have to implement the changes in two places. Reviewed By: sylvestre.ledru, #libc, ldionne Differential Revision: https://reviews.llvm.org/D112030
-
Craig Topper authored
There is no need to return a bool and have an SDValue output parameter. Just return the SDValue and let the caller check if it is null. I have another patch to add more callers of these so I thought I'd clean up the interface first. Reviewed By: RKSimon Differential Revision: https://reviews.llvm.org/D112267
-
Valentin Clement authored
-
Craig Topper authored
By expanding early it allows the shifts to be custom lowered in LegalizeVectorOps. Then a DAG combine is able to run on them before LegalizeDAG handles the BUILD_VECTORS for the masks used. v16Xi8 shift lowering on X86 requires a mask to be applied to a v8i16 shift. The BITREVERSE expansion applied an AND mask before SHL ops and after SRL ops. This was done to share the same mask constant for both shifts. It looks like this patch allows DAG combine to remove the AND mask added after v16i8 SHL by X86 lowering. This maintains the mask sharing that BITREVERSE was trying to achieve. Prior to this patch it looks like we kept the mask after the SHL instead which required an extra constant pool or a PANDN to invert it. This is dependent on D112248 because RISCV will end up scalarizing the BSWAP portion of the BITREVERSE expansion if we don't disable BSWAP scalarization in LegalizeVectorOps first. Reviewed By: RKSimon Differential Revision: https://reviews.llvm.org/D112254
-
Stanislav Mekhanoshin authored
-
Volodymyr Sapsai authored
We keep using the first encountered definition and need to take into account visibility from subsequent definitions. For example, if the first definition is hidden and the second is visible, we need to make the first one visible too. rdar://82263843 Differential Revision: https://reviews.llvm.org/D110453
-
Martin Storsjö authored
This test doesn't fail in mingw mode (which uses the same Itanium name mangling and ABI as other platforms). Differential Revision: https://reviews.llvm.org/D112210
-
David Blaikie authored
It isn't really pulling its weight and I think splitting it out from -Wweak-vtables was the wrong call: I think it was just a bug in the original warning, which was trying to not diagnose template instantiations, implicit or explicit.
-
Mogball authored
ConstantOp should be used instead of ConstantIntOp to be able to support index type. Reviewed By: Mogball Differential Revision: https://reviews.llvm.org/D112191
-
Matthias Kramm authored
The summary can contain references to e.g. attribute defaults, which can contain special characters. So these strings need to be C++ escaped. Reviewed By: Mogball Differential Revision: https://reviews.llvm.org/D112249
-
David Blaikie authored
Differential Revision: https://reviews.llvm.org/D112265
-
Craig Topper authored
It's better to do the ands, shifts, ors in the vector domain than to scalarize it and do those operations on each element. Reviewed By: RKSimon Differential Revision: https://reviews.llvm.org/D112248
-
Matthias Kramm authored
When we escape strings for C++, make sure we use C++ escape sequences. (In particular, \x22 instead of \22) Reviewed By: Mogball Differential Revision: https://reviews.llvm.org/D112269
-
-
thomasraoux authored
Handle contraction op like all the other generic op reductions. This simpifies the code. We now rely on contractionOp canonicalization to keep the same code quality. Differential Revision: https://reviews.llvm.org/D112171
-
thomasraoux authored
add several patterns that will simplify contraction vectorization in the future. With those canonicalizationns we will be able to remove the special case for contration during vectorization and rely on those transformations to avoid materizalizing broadcast ops. Differential Revision: https://reviews.llvm.org/D112121
-
Jessica Paquette authored
G_ICMP is selected to an arithmetic overflow op (ADDS/SUBS/etc) with a dead destination + a CSINC instruction. We have a fold which allows us to combine 32-bit adds with G_ICMP. The problem with G_ICMP is that we model it as always having a 32-bit destination even though it can be a 64-bit operation. So, we were missing some opportunities for 64-bit folds. This patch teaches the fold to recognize 64-bit G_ICMPs + refactors some of the code surrounding CSINC accordingly. (Later down the line, I think we should probably change the way we handle G_ICMP in general.) Differential Revision: https://reviews.llvm.org/D111088
-
Valentin Clement authored
This test is makeing one buildbot fail for unknown reason. Remove it until we can investifate further.
-
Martin Storsjö authored
This issue only occurs when linked statically in MinGW configurations, and has been fixed for Clang 14 by https://reviews.llvm.org/D109651. Differential Revision: https://reviews.llvm.org/D112214
-
Martin Storsjö authored
MinGW headers/libs lack timespec_get. Differential Revision: https://reviews.llvm.org/D112213
-
David Blaikie authored
-
Stanislav Mekhanoshin authored
The pattern became optimized after b92412fb. Differential Revision: https://reviews.llvm.org/D112258
-