- Mar 16, 2023
-
-
Shao-Ce SUN authored
Fix build error in D145883. Thanks @awarzynski! Reviewed By: awarzynski Differential Revision: https://reviews.llvm.org/D146204
-
Nikita Popov authored
-
Nikita Popov authored
These are not used and should not be used (just like anything that creates a constant expression only due to lack of DL-awareness).
-
Nikita Popov authored
This removes the select constant expression, as part of https://discourse.llvm.org/t/rfc-remove-most-constant-expressions/63179. Uses of this expressions have already been removed in advance, so this just removes related infrastructure and updates tests. Differential Revision: https://reviews.llvm.org/D145382
-
Dmitry Polukhin authored
The issue was introduced in D135801. When there are only header maps in the SearchDirs, the out of bounds value is assigned to FirstNonHeaderMapSearchDirIdx. Test Plan: check-clang Differential Revision: https://reviews.llvm.org/D146156
-
Mikhail R. Gadelha authored
This patch enables the remaining calls from unistd. The test cases had to be updated to: 1. Use SYS_symlinkat if SYS_symlink is not available 2. Use SYS_readlinkat if SYS_readlink is not available 3. Use SYS_unlinkat if SYS_unlink is not available 4. Use SYS_openat if SYS_open is not available We also abort compilation if neither of the syscalls mentioned above are available. Differential Revision: https://reviews.llvm.org/D146161
-
Mikhail R. Gadelha authored
In this patch we add support for the spawn lib in riscv. Only small changes were required, the biggest one was to use of dup3 instead of dup2, if the latter is not available. This follows our implementation of dup2. Differential Revision: https://reviews.llvm.org/D146145
-
Mikhail R. Gadelha authored
This patch removes some duplicated libs added to entrypoints.txt, adds new libs supported to entrypoints.txt and updates header.txt Differential Revision: https://reviews.llvm.org/D146065
-
Max Kazantsev authored
Guards can be represented differently (as intrinsic calls and as explicit branches), and the expectation is that Guard Widening should do the same things for them, no matter what form it was suggested. Currently it seems to be not so. We also don't want LICM to prevent guard widening.
-
Max Kazantsev authored
This should improve readability of metarenamed code. Differential Revision: https://reviews.llvm.org/D145896 Reviewed By: nikic
-
Nikita Popov authored
We currently already canonicalize icmp eq (%x & Pow2), Pow2 to icmp ne (%x & Pow2), 0. This patch generalizes the fold based on known bits. In particular, this allows us to handle comparisons against !range !{i64 0, i64 2} loads, which addresses an optimization regression in Rust caused by 8df376db. Differential Revision: https://reviews.llvm.org/D146149 -
Martin Braenne authored
As designated initializers show up only in the syntactic form of the InitListExpr, we need to make sure we're searching both forms of the InitListExpr when determining successors in the evaluation order. This fixes a bug in bugprone-use-after-move where previously we erroneously concluded that two designated initializers were unsequenced. The newly added tests fail without the fix. Differential Revision: https://reviews.llvm.org/D145906
-
Jeff Niu authored
`select` has fastmath flags, which were missing from the LLVM dialect op definition. Reviewed By: ftynse, dcaballe, gysit Differential Revision: https://reviews.llvm.org/D145829
-
WANG Xuerui authored
It seems the ISA manual's pseudo-code description for the `BYTEPICK.[WD]` instructions is inaccurate; the behavior described here should be correct though. The instructions' names are misleading too (they pick full GRLen-wide words instead of bytes; they just index by bytes) but let's stick to the official names for now. Reviewed By: SixWeining Differential Revision: https://reviews.llvm.org/D143880
-
WANG Xuerui authored
Reviewed By: SixWeining Differential Revision: https://reviews.llvm.org/D143879
-
Jacques Pienaar authored
There was accidentally a different form used for printing and parsing.
-
Kazu Hirata authored
-
Kirill Stoimenov authored
Reviewed By: vitalybuka Differential Revision: https://reviews.llvm.org/D146098
-
Kirill Stoimenov authored
Reviewed By: vitalybuka Differential Revision: https://reviews.llvm.org/D146180
-
Ben Shi authored
Reviewed By: reames Differential Revision: https://reviews.llvm.org/D146108
-
Ben Shi authored
Reviewed By: reames Differential Revision: https://reviews.llvm.org/D146015
-
Siva Chandra Reddy authored
Fixes #59277 - The main part of that bug has already been addressed. This commit just adds documentation. Reviewed By: jeffbailey Differential Revision: https://reviews.llvm.org/D146115
-
Siva Chandra Reddy authored
Also, fixed a minor typo in compiler_support.rst. Reviewed By: jeffbailey, gchatelet Differential Revision: https://reviews.llvm.org/D146112
-
Douglas Yung authored
This will fix buildbots that fail because they do not have ZLIB installed such as https://lab.llvm.org/buildbot/#/builders/216/builds/18424
-
Joseph Huber authored
Summary: I forgot to add return statements to these memory comparison functions. This should hopefully resolve some BB errors.
-
LiaoChunyu authored
This patch reduces the number of unpredictable branches. Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D146117
-
Joseph Huber authored
Summary: We don't use these features in the GPU build, trying to determine them can cause errors. We should just return early if this is the case.
-
WANG Xuerui authored
Similar to D98610 for RISCV. This is going to be required by the upcoming Linux/LoongArch [[ https://git.kernel.org/linus/4733f09d88074 | support for dynamic ftrace ]]. Reviewed By: SixWeining, MaskRay Differential Revision: https://reviews.llvm.org/D141785
-
Joseph Huber authored
The integration tests require the C memory functions as the compiler may emit calls to them directly. The tests normally use the `__internal__` variant that is built for testing, but these memory functions were linked directly to preserve the entrypoint. Instead, we forward delcare the internal versions and map the entrypoints to them manually inside the integration test. This allows us to use the internal versions of these files like the rest of the test objects. Reviewed By: sivachandra Differential Revision: https://reviews.llvm.org/D146177
-
Kazu Hirata authored
-
Kazu Hirata authored
-
Kazu Hirata authored
-
William Huang authored
[llvm-profdata] Add more unit tests to check --output-size-limit feature when compression is enabled Add unit tests for ExtBinary format with compression. This patch doesn't imply there's a bug in the existing implementation, but as a precaution that planned changes to SampleProfileReader may cause it to break. Reviewed By: snehasish Differential Revision: https://reviews.llvm.org/D144524
-
Christopher Ferris authored
The force flag to releaseToOSMaybe does not release everything since it is an expensive operation. Modify the release flag to have three states: normal, force, forceall. Force behaves the same as setting Force to true from before this change. Forceall will release everything regardless of how much time it takes, or how much there is to release. In addition, add a new mallopt that will call the release function with the forceall flag set. Reviewed By: Chia-hungDuan Differential Revision: https://reviews.llvm.org/D146106
-
Jakub Kuderski authored
Add `template` to fix a buildbot: https://lab.llvm.org/buildbot/#/builders/199/builds/18363. This is a post-commit fix for https://reviews.llvm.org/D144503, submitted as a0a76804.
-
Jim Ingham authored
Command Interpreter mechanism. Differential Revision: https://reviews.llvm.org/D145136
-
Jakub Kuderski authored
This does not work by a mere composition of `enumerate` and `zip_equal`, because C++17 does not allow for recursive expansion of structured bindings. This implementation uses `zippy` to manage the iteratees and adds the stream of indices as the first zipped range. Because we have an upfront assertion that all input ranges are of the same length, we only need to check if the second range has ended during iteration. As a consequence of using `zippy`, `enumerate` will now follow the reference and lifetime semantics of the `zip*` family of functions. The main difference is that `enumerate` exposes each tuple of references through a new tuple-like type `enumerate_result`, with the familiar `.index()` and `.value()` member functions. Because the `enumerate_result` returned on dereference is a temporary, enumeration result can no longer be used through an lvalue ref. Reviewed By: dblaikie, zero9178 Differential Revision: https://reviews.llvm.org/D144503
-
Michael Francis authored
The current implementation of `-p` does not claim the argument once it is passed. Since it pushes `-pg` directly, it is only ever referred to again when linking. As a result, when compiling with `-S`, the compiler warns that `-p` goes unused even though that is not the case. With this patch, if both `-p` and `-pg` are passed, the argument that is passed second will take precedence. `-p` will still throw an error on unsupported platforms, regardless of precedence. This revision includes a test case, which has been placed in `clang/test/Driver/zos-profiling-error.c`. As a result, `zos-profiling-error.c` has been renamed to `ibm-profiling.c`. This revision also passes `clang/test/Driver/aix-ld.c`. Differential Revision: https://reviews.llvm.org/D145021
-
Jonas Devlieghere authored
PythonDataObjectsTest.TestExceptions started failing because the output of the python traceback printers is now consistent between python and cpython [1]. Work around the issue by supporting both variants. Thanks to Ismail for identifying the root cause. [1] https://github.com/python/cpython/issues/85203
-
Tue Ly authored
Clean up some warnings from running libc-lint for these folders. Reviewed By: michaelrj, sivachandra Differential Revision: https://reviews.llvm.org/D146048
-