- Oct 09, 2021
-
-
mydeveloperday authored
-
mydeveloperday authored
[clang-format][docs][NFC] correct the "first supported versions" of some of the clang-format options Some of the first supported version field were incorrectly attributed to a later branch. It wasn't possible to correctly determine the "introduced version" with my naive implementation using git blame alone, (especially if the type had been changed from a bool -> enum) I saw more things attributed to clang-format 13 than I remembered and reviewed those options to determine their introduced version. Reviewed By: HazardyKnusperkeks Differential Revision: https://reviews.llvm.org/D110803
-
Nikita Popov authored
This is only used by a handful of methods working on fltSemantics, and having these defined inline in the header does not look particularly important.
-
Nikita Popov authored
This was including various things that don't appear to be used in the header at all.
-
luxufan authored
The bug was reported here https://bugs.llvm.org/show_bug.cgi?id=52030 This patch follows the idea that @lhames commented in the above webpage. Reviewed By: lhames Differential Revision: https://reviews.llvm.org/D110990
-
Max Kazantsev authored
Adds support for selects for which we know value on the 1st iteration. Differential Revision: https://reviews.llvm.org/D104111 Reviewed By: nikic
-
Max Kazantsev authored
Test by Arthur Eubanks!
-
luxufan authored
There is a bug reported at https://bugs.llvm.org/show_bug.cgi?id=48938 After looking through the glibc, I found the `atexit(f)` is the same as `__cxa_atexit(f, NULL, NULL)`. In orc runtime, we identify different JITDylib by their dso_handle value, so that a NULL dso_handle is invalid. So in this patch, I added a `PlatformJDDSOHandle` to ELFNixRuntimeState, and functions which are registered by atexit will be registered at PlatformJD. Reviewed By: lhames Differential Revision: https://reviews.llvm.org/D111413
-
william woodruff authored
The current code checks whether the vector's element type is a valid structure element type, rather than a valid vector element type. The two have separate implementations and but only accept very slightly different sets of types, which is probably why this wasn't caught before. Differential Revision: https://reviews.llvm.org/D109655
-
Brad Smith authored
-
hsmahesha authored
CodeGenFunction::InitTempAlloca() inits the static alloca within the entry block which may *not* necessarily be correct always. For example, the current instruction insertion point (pointed by the instruction builder) could be a program point which is hit multiple times during the program execution, and it is expected that the static alloca is initialized every time the program point is hit. Hence remove CodeGenFunction::InitTempAlloca(), and initialize the static alloca where the instruction insertion point is at the moment. This patch, as a starting attempt, removes the calls to CodeGenFunction::InitTempAlloca() which do not have any side effect on the lit tests. Reviewed By: rjmccall Differential Revision: https://reviews.llvm.org/D111293
-
Michael Kruse authored
Commit 573531fb fixed the colon at the end of a CHECK line (was a semicolon by mistake). With the check enabled, it turned out that it was failing. Check for the correct content. Also add the missing colon to the next CHECK line.
-
Qiu Chaofan authored
Commit 573531fb changes the behavior of the test, revert it back.
-
Mehdi Amini authored
This test is crashing 9 out of 10 runs in CI, but I can't reproduce locally right now. Disabling to get the CI back to green and avoid backsliding with more ASAN issues that would go unnoticed.
-
Richard Smith authored
In this case, we know statically that we're destroying the most-derived class, so the vptr must already point to the current class and never needs to be updated.
-
Qiu Chaofan authored
fae0dfa6 implemented the new __ibm128 type, this patch enables its complex form. Reviewed By: rjmccall Differential Revision: https://reviews.llvm.org/D109948
-
Qiu Chaofan authored
Currently, there're multiple float types that can be represented by __attribute__((mode(xx))). It's parsed, and then a corresponding type is created if available. This refactor moves the enum for mode into a global enum class visible to ASTContext. Reviewed By: aaron.ballman, erichkeane Differential Revision: https://reviews.llvm.org/D111391
-
Joseph Huber authored
This patch adds support for the `__kmpc_get_hardware_num_threads_in_block` function that returns the number of threads. This was missing in the new runtime and was used by the AMDGPU plugin which prevented it from using the new runtime. This patchs also unified the interface for getting the thread numbers in the frontend. Originally authored by jdoerfert. Reviewed By: JonChesterfield Differential Revision: https://reviews.llvm.org/D111475
-
Qiu Chaofan authored
566690b0 uses size information in float semantics, but PPCDoubleDouble left them empty. As follow-up, we can consider remove PPCDoubleDoubleLegacy and fill other fields in the future. Reviewed By: foad Differential Revision: https://reviews.llvm.org/D111398
-
Qiu Chaofan authored
-
Joseph Huber authored
Until we hit the first barrier we should not call `mapping::isSPMDMode` with all threads. Instead, we now have (and use during initialization) a `mapping::isMainThreadInGenericMode` overload that takes the known SPMD-mode state and one that queries it. Reviewed By: tianshilei1992 Differential Revision: https://reviews.llvm.org/D111381
-
Richard Smith authored
being not trivially destructible when determining if we can skip calling their thread wrapper function.
-
Michael Kruse authored
When the option -polly-loopfusion-greedy is set, the ScheduleOptimizer tries to aggressively fuse any band it can and does not violate any dependences. As part if the implementation, the functionalty for copying a band into an new schedule was extracted out of the ScheduleTreeRewriter.
-
Arthur Eubanks authored
-
John Ericson authored
We have a string litteral (via CPP) used to construct `StringRef`, which is used to construct a `SmallString`. Just construct the latter directly. Differential Revision: https://reviews.llvm.org/D111322
-
Aditya Kumar authored
There are functions where we do not want function instrumentation which is why we have `__attribute__((no_instrument_function))`. Extending this functionality to disable instrumentation for Objective-C methods as well. Objective C methods like `+load` run premain and having instrumentation on them causes runtime errors depending on the implementation of `__cyg_profile_func_enter` etc. functions Reviewed By: rjmccall, aaron.ballman Differential Revision: https://reviews.llvm.org/D111286
-
Leonard Chan authored
This reverts commit 1dba6b37. Reverting because the ClangReplInterpreterExceptionTests test fails on our builders with this patch.
-
Yuanfang Chen authored
-
Arthur Eubanks authored
Followup to D110451.
-
Kent Ross authored
Implement parts of P1614, including three-way comparison for tuples, and expand testing. Reviewed By: ldionne, Mordante, #libc Differential Revision: https://reviews.llvm.org/D108250
-
Reid Kleckner authored
-
Nick Desaulniers authored
llvm.is.constant* intrinsics are evaluated to 0 or 1 integral values. A common use case for llvm.is.constant comes from the higher level __builtin_constant_p. A common usage pattern of __builtin_constant_p in the Linux kernel is: void foo (int bar) { if (__builtin_constant_p(bar)) { // lots of code that will fold away to a constant. } else { // a little bit of code, usually a libcall. } } A minor issue in InlineCost calculations is when `bar` is _not_ Constant and still will not be after inlining, we don't discount the true branch and the inline cost of `foo` ends up being the cost of both branches together, rather than just the false branch. This leads to code like the above where inlining will not help prove bar Constant, but it still would be beneficial to inline foo, because the "true" branch is irrelevant from a cost perspective. For example, IPSCCP can sink a passed constant argument to foo: const int x = 42; void bar (void) { foo(x); } This improves our inlining decisions, and fixes a few head scratching cases were the disassembly shows a relatively small `foo` not inlined into a lone caller. We could further improve this modeling by tracking whether the argument to llvm.is.constant* is a parameter of the function, and if inlining would allow that parameter to become Constant. This idea is noted in a FIXME comment. Link: https://github.com/ClangBuiltLinux/linux/issues/1302 Reviewed By: kazu Differential Revision: https://reviews.llvm.org/D111272 -
Vedant Kumar authored
This allows the overlaps() predicate to be used on a const IntervalMap. Tested by building ADTTests, llc, and lldb-test.
-
Reid Kleckner authored
They all must depend on MC now that the target registry is in MC. Also fix llvm-cxxdump
-
Reid Kleckner authored
-
Reid Kleckner authored
This moves the registry higher in the LLVM library dependency stack. Every client of the target registry needs to link against MC anyway to actually use the target, so we might as well move this out of Support. This allows us to ensure that Support doesn't have includes from MC/*. Differential Revision: https://reviews.llvm.org/D111454
-
Fangrui Song authored
-
Vitaly Buka authored
-
Vitaly Buka authored
-
Richard Smith authored
Unfortunately I've not found a way to exercise this code that doesn't crash elsewhere yet, due to unrelated bugs in how Sema incorrectly instantiates lambdas in function template signatures.
-