- Mar 07, 2023
-
-
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
-
Med Ismail Bennani authored
This patch should fix a `stack-use-after-scope` in the helper function `ScriptedInterface::ErrorWithMessage`. Signed-off-by:Med Ismail Bennani <medismail.bennani@gmail.com>
-
Jakub Kuderski authored
These propagate all the way down to SPIR-V and result in some fishy code with large constants. Reviewed By: antiagainst Differential Revision: https://reviews.llvm.org/D145423
-
Yeting Kuo authored
The patch uses declval instead of nullptr to suppress warning for calling member function by nullptr. Also the patch replace is_same<*>::value with is_same_v<*>. Reviewed By: dexonsmith, kuhar Differential Revision: https://reviews.llvm.org/D145388
-
Greg Clayton authored
Some workflows can generate large GSYM files and sharding GSYM files into segments can help some performant workflows that can take advantage of smaller GSYM files. This patch add a new --segment-size option to llvm-gsymutil. This option can specify a rough size in bytes of how large each segment should be. Segmented GSYM files contain only the strings and files that are needed for the FunctionInfo objects that are added to each shard. The output file path gets the first address of the first contained function info appended as a suffix to the filename. If a base address of an image is set in the GsymCreator, then all segments will use this same base address which allows lookups for symbolication to happen correctly when the image has been slid in memory. Code has been addeed to refactor and re-use methods within the GsymCreator to allow for segments to be created easily and tested. Example of segmenting GSYM files: $ llvm-gsymutil --convert llvm-gsymutil.dSYM -o llvm-gsymutil.gsym --segment-size 10485760 $ ls -l llvm-gsymutil.gsym-* -rw-r--r-- 1 gclayton staff 10485839 Feb 9 10:45 llvm-gsymutil.gsym-0x1000030c0 -rw-r--r-- 1 gclayton staff 10485765 Feb 9 10:45 llvm-gsymutil.gsym-0x100668888 -rw-r--r-- 1 gclayton staff 10485881 Feb 9 10:45 llvm-gsymutil.gsym-0x100c948b8 -rw-r--r-- 1 gclayton staff 10485954 Feb 9 10:45 llvm-gsymutil.gsym-0x101659e70 -rw-r--r-- 1 gclayton staff 10485792 Feb 9 10:45 llvm-gsymutil.gsym-0x1022b1dc0 -rw-r--r-- 1 gclayton staff 10485889 Feb 9 10:45 llvm-gsymutil.gsym-0x102a18b10 -rw-r--r-- 1 gclayton staff 10485893 Feb 9 10:45 llvm-gsymutil.gsym-0x1030b05d0 -rw-r--r-- 1 gclayton staff 10485802 Feb 9 10:45 llvm-gsymutil.gsym-0x1037caaac -rw-r--r-- 1 gclayton staff 10485781 Feb 9 10:45 llvm-gsymutil.gsym-0x103e767a0 -rw-r--r-- 1 gclayton staff 10485832 Feb 9 10:45 llvm-gsymutil.gsym-0x10452d0d4 -rw-r--r-- 1 gclayton staff 10485782 Feb 9 10:45 llvm-gsymutil.gsym-0x104b93310 -rw-r--r-- 1 gclayton staff 6255785 Feb 9 10:45 llvm-gsymutil.gsym-0x10526bf34 Differential Revision: https://reviews.llvm.org/D145448
-
Sam Clegg authored
The usage was removed in https://reviews.llvm.org/D119074 Differential Revision: https://reviews.llvm.org/D145434
-
Snehasish Kumar authored
This reverts commit 599b7690. Since adding a cross project dependency is a concern.
-
Arthur Eubanks authored
Typically names longer than -non-global-value-max-name-size will just get renamed if there is a collision after truncating. This is fine since we typically don't reference Values by name. However LLParser does reference Values by name, so report an error when that happens, otherwise weird issues can crop up if there are name collisions (e.g. verifier issues with the changed test case because we end up reusing the same block for `testz` and `testa`). Reviewed By: nikic Differential Revision: https://reviews.llvm.org/D145282
-
Ben Shi authored
Reviewed By: david-arm, fhahn Differential Revision: https://reviews.llvm.org/D145356
-
Chia-hung Duan authored
This reverts commit 436ea548.
-
David Green authored
This extends the patterns for loading into the zeroth lane of a zero vector from D144086 to SVE, which work in the same way as the existing patterns. Only full length vectors are added here, not the narrower floating point vector types.
-
Siva Chandra authored
Memory functions get the basic implementation. They can be tuned as a follow up. Reviewed By: michaelrj, lntue Differential Revision: https://reviews.llvm.org/D145433
-
Siva Chandra Reddy authored
Reviewed By: michaelrj Differential Revision: https://reviews.llvm.org/D145222
-