- Aug 25, 2022
-
-
Dmitry Preobrazhensky authored
Differential Revision: https://reviews.llvm.org/D132549
-
Dmitry Preobrazhensky authored
Update assembler tests for FLAT instructions; remove redundant gfx11_asm_flat_mnemonic.s. Differential Revision: https://reviews.llvm.org/D132556
-
ZHU Zijia authored
Update `llvm/test/CodeGen/RISCV/branch-relaxation.ll` with `update_llc_test_checks.py`, according to https://reviews.llvm.org/D130560#3746417: >>! In D130560#3746417, @luismarques wrote: >>>! In D130560#3746379, @luismarques wrote: >> The tests don't seem to have been properly updated with >> `update_llc_test_checks.py`. >> `llvm/test/CodeGen/RISCV/branch-relaxation.ll` contains RV64 RUN >> lines but the corresponding CHECK lines are missing in >> some functions. > > Looking more closely at this, I guess you tried to only include the > `CHECK-RV64` and `CHECK-RV32` checks when relevant. That's a good > instinct but I guess it goes a bit against how we normally use > `update_llc_test_checks.py`. My understanding of the trade-off of > using that tool is that the test updates are much easier, even if > sometimes the CHECKs aren't as tight as something more tailormade. Reviewed By: luismarques Differential Revision: https://reviews.llvm.org/D132625
-
Martin Storsjö authored
When an object file contains an export directive, we normally do some amount of deferred processing of them at the end of the linking process. The -includeoptional option was handled after this, and any object files (defining new exports) weren't handled. Move the handling of the -includeoptional into the same late loop which does the fixups for e.g. export directives. Ideally, this would also be done for object files that are pulled in by the wrap options, and for mingw autoimports, but those changes require more modifications, to make them safe for potentially being executed multiple times. This fixes https://github.com/llvm/llvm-project/issues/57243. Differential Revision: https://reviews.llvm.org/D132361
-
Martin Storsjö authored
Check whether `F_OK` et al are defined before redefining them; mingw headers do define them, so check before providing the windows fallback defines. Also check `_WIN32` instead of `WIN32`; this is how it's consistently done in the rest of llvm. (The former is a compiler builtin define, while the latter isn't, but it's commonly set by e.g. build systems.) Differential Revision: https://reviews.llvm.org/D132481
-
ZHU Zijia authored
Update `llvm/test/CodeGen/RISCV/branch-relaxation.ll` with `update_llc_test_checks.py`, according to https://reviews.llvm.org/D130560#3746417: >>! In D130560#3746417, @luismarques wrote: >>>! In D130560#3746379, @luismarques wrote: >> The tests don't seem to have been properly updated with >> `update_llc_test_checks.py`. >> `llvm/test/CodeGen/RISCV/branch-relaxation.ll` contains RV64 RUN >> lines but the corresponding CHECK lines are missing in >> some functions. > > Looking more closely at this, I guess you tried to only include the > `CHECK-RV64` and `CHECK-RV32` checks when relevant. That's a good > instinct but I guess it goes a bit against how we normally use > `update_llc_test_checks.py`. My understanding of the trade-off of > using that tool is that the test updates are much easier, even if > sometimes the CHECKs aren't as tight as something more tailormade.
-
Alexander Potapenko authored
Simplify InitializeOsSupport() by separating code for detecting and enabling the tagged address ABI. Also drop the unnecessary errno checks (regardless of errno value, we cannot assume that tagging works if the system call failed) and ensure prctl(PR_SET_TAGGED_ADDR_CTRL) is only called on Android, not on x86 (where arch_prctl(ARCH_ENABLE_TAGGED_ADDR, kTagBits) is used). Depends on D132544 Differential Revision: https://reviews.llvm.org/D132545
-
Denis Revunov authored
Fix BinaryContext::handleAddressRef to properly detect references to other function's Constant islands. Revieved By: rafauler, yota9 Differential Revision: https://reviews.llvm.org/D132376
-
Alexander Potapenko authored
Use a helper function to print an error message and die in the case flags()->fail_without_syscall_abi is set. Because x86 doesn't have `sysctl abi.tagged_addr_disabled`, do not mention it in the error message for non-Android runtime. Depends on D132543 Differential Revision: https://reviews.llvm.org/D132544
-
Matthias Springer authored
This helper function computes the dimensions of a tensor value as OpFoldResults. Differential Revision: https://reviews.llvm.org/D132475
-
Guillaume Chatelet authored
-
Guillaume Chatelet authored
-
Balázs Kéri authored
Add a test to cert-dcl58-cpp.cpp to verify that crash in github issue #56902 does not happen. Reviewed By: njames93 Differential Revision: https://reviews.llvm.org/D131686
-
Alexander Potapenko authored
Move the definitions outside InitializeOsSupport(). Also remove the undefs, as these constants won't be visible outside the .cpp file anyway. Differential Revision: https://reviews.llvm.org/D132543
-
Alexander Batashev authored
With the transition to opaque pointers, type information has been transferred to function parameter attributes. This patch adds correct parsing for some of those arguments and fixes some tests, that previously used UnitAttr for those. Differential Revision: https://reviews.llvm.org/D132366
-
Tobias Hieta authored
-
Pavel Samolysov authored
The ArgumentPromotion pass uses Mem2Reg promotion at the end to cutting down generated `alloca` instructions as well as meaningless `store`s and this behavior can leave unused (dead) arguments. To eliminate the dead arguments and therefore let the DeadCodeElimination remove becoming dead inserted `GEP`s as well as `load`s and `cast`s in the callers, the DeadArgumentElimination pass should be run after the ArgumentPromotion one. Differential Revision: https://reviews.llvm.org/D128830
-
Michael Buch authored
This test simply checks whether we can print an optimized function argument. With recent changes to Clang the assumption that we don't generate a `DW_AT_location` attribute for the unused funciton parameter breaks. This patch tries harder to get Clang to drop the location from DWARF by making it generate an `undef` for `unused1`. Drop the check for `unused2` since it adds no benefit. Differential Revision: https://reviews.llvm.org/D132635
-
H. Vetinari authored
This reverts commit bc39d7bd. rename CLANG_SONAME to LIBCLANG_SOVERSION [clang][cmake] introduce option CLANG_FORCE_MATCHING_LIBCLANG_SOVERSION Differential Revision: https://reviews.llvm.org/D132486
-
Roy Jacobson authored
See bug report here: https://github.com/llvm/llvm-project/issues/57351 This reverts commit 71716150.
-
Dan McGregor authored
Match Clang's sorting, so that longer (more specific) prefix paths will match before less specific paths. Reviewed By: MaskRay, raj.khem, #debug-info Differential Revision: https://reviews.llvm.org/D132390
-
wanglian authored
Reviewed By: RKSimon Differential Revision: https://reviews.llvm.org/D132439
-
Ben Langmuir authored
The invocation is only ever used to serialize cc1 arguments from, so instead serialize the arguments inside the dep scanner to simplify the interface. Differential Revision: https://reviews.llvm.org/D132616
-
Ben Langmuir authored
ToolInvocation is useful even if you already have a -cc1 invocation, since it provides a standard way to setup diagnostics, parse arguments, and handoff to a ToolAction. So teach it to support -cc1 commands by skipping the driver bits. Differential Revision: https://reviews.llvm.org/D132615
-
Chenbing Zheng authored
This patch complete TODO left in D66965, and achieve related pattern for bitreverse. Reviewed By: RKSimon Differential Revision: https://reviews.llvm.org/D132431
-
Chenbing Zheng authored
Reviewed By: RKSimon, spatel Differential Revision: https://reviews.llvm.org/D132343
-
LLVM GN Syncbot authored
-
Nico Weber authored
-
Matthias Braun authored
D132080 introduced a bug leading to `RegisterClassInfo` caches not getting invalidated when there was exactly one more CSR register added. Differential Revision: https://reviews.llvm.org/D132606
-
Fabian Parzefall authored
To generate all symbols correctly, it is necessary to record the address of each fragment. This patch moves the address info for the main and cold fragments from BinaryFunction to FunctionFragment, where this data is recorded for all fragments. Reviewed By: rafauler Differential Revision: https://reviews.llvm.org/D132051
-
Fabian Parzefall authored
This changes `FunctionFragment` from being used as a temporary proxy object to access basic block ranges to a heap-allocated object that can store fragment-specific information. Reviewed By: rafauler Differential Revision: https://reviews.llvm.org/D132050
-
Matthias Braun authored
This reverts commit 73a9dfce. We started to hit assertions when compiling & assembling separately. See comments in https://reviews.llvm.org/D131270
-
Mircea Trofin authored
Missed a few tests in D119507
-
Valery N Dmitriev authored
The goal is to separate collecting items for post-processing and processing them. Post processing also outlined as dedicated method. Differential Revision: https://reviews.llvm.org/D132603
-
Jeff Niu authored
The element type enum is not needed to differentiate dense array kinds because the element type of the shaped type can be used instead. Reviewed By: mehdi_amini, rriddle Differential Revision: https://reviews.llvm.org/D132535
-
Fabian Parzefall authored
A const-qualified reference to function layout allows accessing non-const qualified basic blocks on a const-qualified function. This patch adds or removes const-qualifiers where necessary to indicate where basic blocks are used in a non-const manner. Reviewed By: rafauler Differential Revision: https://reviews.llvm.org/D132049
-
Usman Nadeem authored
[AArch64][DAGCombine] Fix a bug in performBuildVectorCombine where it could produce an invalid EXTRACT_SUBVECTOR EXTRACT_SUBVECTOR requires that Idx be a constant multiple of ResultType's known minimum vector length. Something like this will produce an invalid extract_subvector: t1: v4i16 = ..... t2: i32 = extract_vector_elt t1, Constant:i64<1> t3: i32 = extract_vector_elt t1, Constant:i64<2> t4: v2i32 = BUILD_VECTOR t2, t3 // produces t5: v2i32 = extract_subvector t...., Constant:i64<1> Differential Revision: https://reviews.llvm.org/D132517 Change-Id: I7a5acf054edee3e89c0f85a28d8869256403ce08
-
Mircea Trofin authored
TLite is a lightweight, statically linkable[1], model evaluator, supporting a subset of what the full tensorflow library does, sufficient for the types of scenarios we envision having. It is also faster. We still use saved models as "source of truth" - 'release' mode's AOT starts from a saved model; and the ML training side operates in terms of saved models. Using TFLite solves the following problems compared to using the full TF C API: - a compiler-friendly implementation for runtime-loadable (as opposed to AOT-embedded) models: it's statically linked; it can be built via cmake; - solves an issue we had when building the compiler with both AOT and full TF C API support, whereby, due to a packaging issue on the TF side, we needed to have the pip package and the TF C API library at the same version. We have no such constraints now. The main liability is it supporting a subset of what the full TF framework does. We do not expect that to cause an issue, but should that be the case, we can always revert back to using the full framework (after also figuring out a way to address the problems that motivated the move to TFLite). Details: This change switches the development mode to TFLite. Models are still expected to be placed in a directory - i.e. the parameters to clang don't change; what changes is the directory content: we still need an `output_spec.json` file; but instead of the saved_model protobuf and the `variables` directory, we now just have one file, `model.tflite`. The change includes a utility showing how to take a saved model and convert it to TFLite, which it uses for testing. The full TF implementation can still be built (not side-by-side). We intend to remove it shortly, after patching downstream dependencies. The build behavior, however, prioritizes TFLite - i.e. trying to enable both full TF C API and TFLite will just pick TFLite. [1] thanks to @petrhosek's changes to TFLite's cmake support and its deps!
-
Zequan Wu authored
`CommandObject::CheckRequirements()` requires m_exe_ctx being cleaned up. Differential Revision: https://reviews.llvm.org/D132397
-