- Jan 16, 2023
-
-
Nikita Popov authored
-
Benjamin Maxwell authored
Public getters are provided for other similar members of both the CIE and FDE, these fields are also displayed by the llvm-drawfdump tool, so it seems like not exposing them was likely an oversight. These are needed for tools based on LLVM that need access to all the parsed DWARF data. Differential Revision: https://reviews.llvm.org/D141475
-
Matthias Springer authored
All `apply...` functions now return a LogicalResult indicating whether the iterative process converged or not. Differential Revision: https://reviews.llvm.org/D141845
-
Matthias Springer authored
It is not necessary to override `eraseOp`, we can use the existing `notifyOperationRemoved`. Differential Revision: https://reviews.llvm.org/D141844
-
Mehdi Amini authored
This is an attempt to fix a build failure: llvm/lib/Object/ELFObjectFile.cpp:300:12: error: call to deleted constructor of 'llvm::Error' return E; -
Francesco Petrogalli authored
1. Make explicit that the folder where to build a subproject in stand-alone mode can not be the same folder where LLVM was build. 2. Add a cut 'n paste example for building stand-alone `clang`. Differential Revision: https://reviews.llvm.org/D141825
-
Freddy Ye authored
This patch is to fix regression of D122875. X86 has fpext instructions supporting rmb form, which takes advantage of fpext(fplat(X)) than splat(fpext(X)). Reviewed By: RKSimon, skan Differential Revision: https://reviews.llvm.org/D141657
-
Luo, Yuanke authored
-
Guillaume Chatelet authored
Differential Revision: https://reviews.llvm.org/D141840
-
Felipe de Azevedo Piovezan authored
With codegen prior to this patch, truly indirect arguments -- i.e. those that are not `byval` -- can have their debug information lost even at O0. Because indirect arguments are passed by pointer, and this pointer is likely placed in a register as per the function call ABI, debug information is lost as soon as the register gets clobbered. This patch solves the issue by storing the address of the parameter on the stack, using a similar strategy employed when C++ references are passed. In other words, this patch changes codegen from: ``` define @foo(ptr %arg) { call void @llvm.dbg.declare(%arg, [...], metadata !DIExpression()) ``` To: ``` define @foo(ptr %arg) { %ptr_storage = alloca ptr store ptr %arg, ptr %ptr_storage call void @llvm.dbg.declare(%ptr_storage, [...], metadata !DIExpression(DW_OP_deref)) ``` Some common cases where this may happen with C or C++ function calls: 1. "Big enough" trivial structures passed by value under the ARM ABI. 2. Structures that are non-trivial for the purposes of call (as per the Itanium ABI) when passed by value. A few tests were matching the wrong alloca (matching against the new alloca, instead of the old one), so they were updated to either match both allocas or include a `,` right after the alloca type, to prevent matching against a pointer type. Differential Revision: https://reviews.llvm.org/D141381 -
Elena Lepilkina authored
Differential Revision: https://reviews.llvm.org/D139553
-
Ed Maste authored
__config defines _LIBCPP_DEPRECATED_ABI_DISABLE_PAIR_TRIVIAL_COPY_CTOR on FreeBSD, which conflicts with a command-line definition used by the non_trivial_copy_move_ABI test. Add -Wno-macro-redefined to ADDITIONAL_COMPILE_FLAGS in this test. Reviewed By: philnik Differential Revision: https://reviews.llvm.org/D141774
-
Alexey Lapshin authored
generation code from DWARFLinker. It adds command line option: --build-accelerator [none,DWARF] Build accelerator tables(default: none) =none - Do not build accelerators =DWARF - Build accelerator tables according to the resulting DWARF version DWARFv4: .debug_pubnames and .debug_pubtypes DWARFv5: .debug_names Differential Revision: https://reviews.llvm.org/D139638 -
Sergei Barannikov authored
Reviewed By: MaskRay Differential Revision: https://reviews.llvm.org/D141788
-
Guillaume Chatelet authored
-
Guillaume Chatelet authored
-
Florian Hahn authored
There is no need to update the DT here, because there must be a unique latch. Hence if the latch is not exiting it must directly branch back to the original loop header and does not dominate any nodes. Skipping a DT update here simplifies D141487. Reviewed By: nikic Differential Revision: https://reviews.llvm.org/D141810
-
Haojian Wu authored
-
Sergey Kachkov authored
This reverts commit fc7cdaa3.
-
Zain Jaffal authored
Currently we only reduce vector.reduce.add to sdot if the vectors are either <8 x i8> or <16 x i8>. Reviewed By: fhahn Differential Revision: https://reviews.llvm.org/D141692
-
Max Kazantsev authored
Jump threading can replace select and unconditional branch with conditional branch, but when doing so loses profile information. This destructive transform can eventually lead to a performance degradation due to folding of branches in shouldFoldCondBranchesToCommonDestination as branch probabilities are no longer known. The first version was reverted due to assert caused by i32 overflow, fixed in this version. Patch by Roman Paukner! Differential Revision: https://reviews.llvm.org/D138132 Reviewed By: mkazantsev
-
Haojian Wu authored
-
Kerry McLaughlin authored
Adds an instruction mapping to SMEInstrFormats which matches SME pseudos with the real instructions they are transformed to. A new flag is also added to AArch64Inst (SMEMatrixType), which is used to indicate the base register required when emitting many of the SME instructions. This reduces the number of pseudos handled by the switch statement in EmitInstrWithCustomInserter. Reviewed By: david-arm Differential Revision: https://reviews.llvm.org/D136856
-
Jolanta Jensen authored
Fixed minor typo in clang help docs. Differential Revision: https://reviews.llvm.org/D141507
-
Sven van Haastregt authored
`opencl-c-base.h` always defines 5 particular feature macros for SPIR-V, making it impossible to disable those features. To allow disabling any of those features, let the header recognize `__undef_<feature>` macros. The user can then pass the `-D__undef_<feature>` flag on the command line to disable a specific feature. The __undef macro could potentially also be set from `-cl-ext=-feature`, but for now only change the header and only provide __undef macros for the 5 features that are always enabled in `opencl-c-base.h`. Differential Revision: https://reviews.llvm.org/D141297
-
Utkarsh Saxena authored
The one introduced in D140547 was brittle. Fixing max template depth to a small value would still test the same issue without causing actual stack exhaustion. Differential Revision: https://reviews.llvm.org/D141818
-
Nikita Popov authored
A very annoying update, because some but now all of the zero-index GEPs are omitted with opaque pointers.
-
Sergey Kachkov authored
This patch introduces new type of memory dependency - Select to consistently handle it like Def/Clobber dependency. Differential Revision: https://reviews.llvm.org/D141619
-
Markus Böck authored
[mlir][NFC] Set `useFoldAPI` to `kEmitRawAttributesFolder` value for some dialects missed previously Found these while working on https://reviews.llvm.org/D141604. These were previously not found due to the old implementation only emitting warnings if an Op has a `fold`. Changing these values both avoid the deprecation warning and if new `fold`s were added to ops of these dialects, that they are already using the new API. Differential Revision: https://reviews.llvm.org/D141795
-
David Green authored
This is an extension to the code for sinking splats to multiplies, where if we can detect that the top bits are known-zero we can treat the instruction like a zext. The existing code was also adjusted in the process to make it more precise about only sinking if both operands are zext or sext. Differential Revision: https://reviews.llvm.org/D141275
-
Florian Hahn authored
Various places in the code where still using the VPRecipeBase:: prefix for VPDef IDs or not prefix at all. Now that the VPDef IDs have been moved to VPDef, use this prefix instead and consistently use it.
-
Max Kazantsev authored
Make it available for external use. Differential Revision: https://reviews.llvm.org/D141457 Reviewed By: lebedev.ri
-
Matt Devereau authored
Repeated floating-point complex patterns in dupqlane such as (f32 a, f32 b, f32 a, f32 b) can be simplified to shufflevector(f64(a, b), undef, 0)
-
Benjamin Kramer authored
This change makes StringRefTest fail in some configuration. Might be a standard library issue or miscompile.
-
Timm Bäder authored
-
David Spickett authored
This claims to take a platform name argument but doesn't. That was probably the intent in fbb76349 but it has only ever worked with the current platform. Reviewed By: clayborg Differential Revision: https://reviews.llvm.org/D136928
-
Nikita Popov authored
This test was testing both typed and opaque pointers. Remove the typed pointer check lines, and update the input IR to use opaque pointers. Note that with opaque pointers, the "bitcast" is not explicit, but rather just a mismatch in function type between the call and the declaration.
-
Nikita Popov authored
add-prototype.ll has since been converted.
-
Nikita Popov authored
-
Haojian Wu authored
Fixes https://github.com/llvm/llvm-project/issues/59927 Differential Revision: https://reviews.llvm.org/D141670
-