- Mar 07, 2023
-
-
wangpc authored
Like what has been done in AArch64 (D125335). We enable this under `-O2` to show the codegen diffs here but we may only do this under `-O3` like AArch64. There are two cases that we may produce these eliminable copies: 1. ISel of `FrameIndex`. Like `rvv/fixed-vectors-calling-conv.ll`. 2. Tail duplication. Like `select-optimize-multiple.ll`. Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D144535
-
wangpc authored
SchedWrites are relevant to LMUL for most instructions, so we have to enumerate all defined SchedWrites when defining ReadAdcance. This patch adds some classes to simplify these definitions. Reviewed By: michaelmaitland Differential Revision: https://reviews.llvm.org/D145041
-
Nikita Popov authored
This patch enables --function-signature by default under --version 2 and makes --version 2 the default. This means that all newly created tests will check the function signature, while leaving old tests alone. There's two motivations for this change: * Without --function-signature, the generated check lines may fail in a very hard to understand way if the test both includes a function definition and a call to that function. (Though we could address this by making the CHECK-LABEL stricter, without checking the full signature.) * This actually checks that uses of the arguments in the function body use the correct argument, instead of matching against any variable. This is a replacement for D139006 and D140212 based on the --version mechanism. I did not include an opt-out flag --no-function-signature because I'm not sure we need it. Would be happy to include it though, if desired. Differential Revision: https://reviews.llvm.org/D145149
-
Anonymous authored
run-clang-tidy.py should only search for the clang-apply-replacements if really needed. Reviewed By: carlosgalvezp Differential Revision: https://reviews.llvm.org/D145477
-
Dmitry Makogon authored
-
sgokhale authored
This forms the base for upcoming patch to generate pseudo instructions for MLA/MAD/MLS/MSB. Differential Revision: https://reviews.llvm.org/D142998
-
Jean Perier authored
I missed `addCharSymbol` in the patch adding the hlfir.declare in internal procedures for "captured" entities (https://reviews.llvm.org/D143481). Differential Revision: https://reviews.llvm.org/D145361
-
Siva Chandra Reddy authored
-
danix800 authored
If ignored, the subexpr is a UnaryOperator (&) which cannot be evaluated (assertion failed). #define offsetof(type,memb) ((unsigned long)&((type*)0)->memb) Patch By danix800! Differential Revision: https://reviews.llvm.org/D144780
-
Chuanqi Xu authored
definition correctly Close https://github.com/llvm/llvm-project/issues/61067 Previously we will only handle the defaulted member functions as discardable ODR. But we need to handle defaulted friend function in this way too. Otherwise we may run into the problems the above issue report mentions.
-
Mehdi Amini authored
The concept of the ActionManager acts as a sort of "Hub" that can receive various types of action and dispatch them to a set of registered handlers. One handler will handle the action or it'll cascade to other handlers. This model does not really fit the current evolution of the Action tracing and debugging: we can't foresee a good case where this behavior compose with the use-case behind the handlers. Instead we simplify it with a single callback installed on the Context. Differential Revision: https://reviews.llvm.org/D144811
-
Adrian Kuegel authored
-
Fangrui Song authored
-
Jun Sha (Joshua) authored
This patch implements experimental support for the RISCV Zfa extension as specified here: https://github.com/riscv/riscv-isa-manual/releases/download/draft-20221119-5234c63/riscv-spec.pdf, Ch. 25. This extension has not been ratified. Once ratified, it'll move out of experimental status. This change adds codegen support for load-immediate instructions (fli.s/fli.d/fli.h). Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D141560
-
Jun Sha (Joshua) authored
Add missing roundtointegral builtin functions for some FP instructions to be generated from C-written codes To generate FROUND instructions in https://reviews.llvm.org/D143982, we need to use llvm intrinsics in IR files. Now I add some corresponding builtin functions to make sure these roundtointegral instructions can be generated from C codes. Reviewed By: efriedma Differential Revision: https://reviews.llvm.org/D144935
-
Jun Sha (Joshua) authored
This implements experimental support for the RISCV Zfa extension as specified here: https://github.com/riscv/riscv-isa-manual/releases/download/draft-20221119-5234c63/riscv-spec.pdf, Ch. 25. This extension has not been ratified. Once ratified, it'll move out of experimental status. This change adds assembly support for load-immediate instructions (fli.s/fli.d/fli.h). The assembly prefers decimal constants in C-like syntax. In my implementation, an integer encoding ranging from 0 to 31 can also be accepted, but for the MCInst printer, the constant is specified in decimal notation by default. Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D140460
-
Fangrui Song authored
-
Tue Ly authored
[libc][math] Switch math functions to use libc_errno and fix some errno and floating point exceptions. Switch math functions to use libc_errno and fix some errno and floating point exceptions Reviewed By: sivachandra Differential Revision: https://reviews.llvm.org/D145349
-
Fangrui Song authored
These are unfortunately untested. I'll add some tests in a subsequent change.
-
Craig Topper authored
I believe this implies relationship is documented in the current spec but may have been less clear in an older spec. We used to report an error so I think it should be ok to change this. Only someone expecting the error should be impacted. Reviewed By: asb, luismarques Differential Revision: https://reviews.llvm.org/D145125
-
Craig Topper authored
Record::getName only works for named records. Use getNameInitAsString to handle anonymous records without crashing.
-
Leonard Chan authored
Differential Revision: https://reviews.llvm.org/D145459
-
Kazu Hirata authored
This patch precommits a test for: https://github.com/llvm/llvm-project/issues/61073
-
Vitaly Buka authored
Similar to compiler-rt/test/asan/TestCases/default_options.cpp
-
Kazu Hirata authored
This patch fixes: llvm/lib/DebugInfo/GSYM/GsymCreator.cpp:117:18: error: unused variable 'MaxAddressOffset' [-Werror,-Wunused-variable]
-
Haohai Wen authored
This reverts commit 3083b65c. Since latency from intel doc doesn't reflect worst case.
-
Noah Goldstein authored
This is generally done by the InstCombine, but can be emitted as an intermediate step and is cheap to handle. Reviewed By: RKSimon Differential Revision: https://reviews.llvm.org/D145177
-
Noah Goldstein authored
This is generally done by the InstCombine, but can be emitted as an intermediate step and is cheap to handle. Differential Revision: https://reviews.llvm.org/D145143
-
Noah Goldstein authored
Differential Revision: https://reviews.llvm.org/D145142
-
Noah Goldstein authored
shl : https://alive2.llvm.org/ce/z/_B7Qca lshr: https://alive2.llvm.org/ce/z/6eXz_W ashr: https://alive2.llvm.org/ce/z/oGEx-q Reviewed By: nikic Differential Revision: https://reviews.llvm.org/D145326
-
Noah Goldstein authored
Differential Revision: https://reviews.llvm.org/D145334
-
Noah Goldstein authored
https://alive2.llvm.org/ce/z/uFy5zT Reviewed By: nikic, spatel Differential Revision: https://reviews.llvm.org/D145327
-
Noah Goldstein authored
Differential Revision: https://reviews.llvm.org/D145335
-
Noah Goldstein authored
EQ: https://alive2.llvm.org/ce/z/TESofr NE: https://alive2.llvm.org/ce/z/mwloaT Reviewed By: nikic Differential Revision: https://reviews.llvm.org/D145339
-
Noah Goldstein authored
Differential Revision: https://reviews.llvm.org/D145338
-
Sam Clegg authored
See https://reviews.llvm.org/D109572 for the original ELF version. Differential Revision: https://reviews.llvm.org/D145431
-
Muhammad Omair Javaid authored
LLDB WoA buildbot is failing due to pid_t redefinition after recent changes in lldb/source/Plugins/ScriptInterpreter/Python/ScriptedProcessPythonInterface.cpp. Process.h includes PosixApi.h which defines pid_t. Python.h on windows also typedefs pid_t. To make sure that we include Python.h before PosixApi this patch renforces the workaround previously set up to guard this issue. https://lab.llvm.org/buildbot/#/builders/219 Reviewed By: mib Differential Revision: https://reviews.llvm.org/D145446
-
Igor Zhukov authored
Fixes #60975 Reviewed By: bogner Differential Revision: https://reviews.llvm.org/D144835
-
Alex Langford authored
-
Dave MacLachlan authored
`__sanitizer_report_error_summary` is declared `llvm/llvm-project/compiler-rt/lib/sanitizer_common/sanitizer_interface_internal.h` as being able to be overridden by the client. On darwin the sanitizer runtime uses this symbol to find references to the sanitizer libraries, so if you override it you end up with the error `=ERROR: Interceptors are not working. This may be because AddressSanitizer is loaded too late (e.g. via dlopen). Please launch the executable with:` at launch time. Replace uses of `__sanitizer_report_error_summary` for finding the sanitizer libraries with using the address of a local function. Reviewed By: yln, vitalybuka Differential Revision: https://reviews.llvm.org/D144830
-