- Apr 14, 2022
-
-
Jonas Devlieghere authored
-
Mehdi Amini authored
-
Mehdi Amini authored
-
Damian Rouson authored
Add a test with a range of num_images() intrinsic function invocations, including the standard-conforming but previously untested 'team' argument. Also test that several non-conforming num_images() invocations generate the correct error messages. Differential Revision: https://reviews.llvm.org/D121938
-
Peter Klausler authored
When padding is required in a COMMON block to ensure alignment of a component, emit a portability warning. Differential Revision: https://reviews.llvm.org/D123706
-
Christopher Bate authored
This change adds three new operations to the GPU dialect: gpu.mma.sync, gpu.mma.ldmatrix, and gpu.lane_id. The former two are meant to target the lower level nvvm.mma.sync and nvvm.ldmatrix instructions, respectively. Lowerings are added for the new GPU operations for conversion to NVVM. Reviewed By: ThomasRaoux Differential Revision: https://reviews.llvm.org/D123647
-
Julian Lettner authored
This piece of code tries to implement the semantics "cross compile?" to determine CFLAGS used for test binary compilation. ``` if(ANDROID OR ${arch} MATCHES "arm|aarch64|riscv32|riscv64") ``` Since Apple Silicon, macOS runs on arm64e, so we take the wrong branch when compiling and running tests locally "on the host" on an AS machine. Furthermore, for Apple code, we use the separate `get_test_cflags_for_apple_platform` function to determine these test compiliation flags and `get_test_cc_for_arch` is only ever used in the "compile & run on host" case, so we can short-curcuit the "cross compile?" check here. rdar://91446703 Differential Revision: https://reviews.llvm.org/D123633 -
Jonas Devlieghere authored
This changes the decorator helper `_match_decorator_property` to consider `None` as the actual value as not a match. Using `None` for the pattern continues to be considered a match. I discovered the issue because marking a test as NO_DEBUG_INFO_TESTCASE will cause the call to `self.getDebugInfo()` to return `None` and incorrectly skip or XFAIL the corresponding test. I used the above scenario to create a test for the decorators. Differential revision: https://reviews.llvm.org/D123401
-
Martin Sebor authored
Run update_test_checks.py after parameter renaming in r03b807d3 (NFC).
-
Jonas Devlieghere authored
Jason removed the include guards in 681f6c2f. This patch removes the corresponding CMake logic as well. Differential revision: https://reviews.llvm.org/D123616
-
Stanislav Mekhanoshin authored
Fixes: SWDEV-327053 Differential Revision: https://reviews.llvm.org/D123687
-
Sanjay Patel authored
-
Sanjay Patel authored
Also, make test names more descriptive - additional coverage for D122485
-
Corentin Jabot authored
Implement P2036R3. Captured variables by copy (explicitely or not), are deduced correctly at the point we know whether the lambda is mutable, and ill-formed before that. Up until now, the entire lambda declaration up to the start of the body would be parsed in the parent scope, such that captures would not be available to look up. The scoping is changed to have an outer lambda scope, followed by the lambda prototype and body. The lambda scope is necessary because there may be a template scope between the start of the lambda (to which we want to attach the captured variable) and the prototype scope. We also need to introduce a declaration context to attach the captured variable to (and several parts of clang assume captures are handled from the call operator context), before we know the type of the call operator. The order of operations is as follow: * Parse the init capture in the lambda's parent scope * Introduce a lambda scope * Create the lambda class and call operator * Add the init captures to the call operator context and the lambda scope. But the variables are not capured yet (because we don't know their type). Instead, explicit captures are stored in a temporary map that conserves the order of capture (for the purpose of having a stable order in the ast dumps). * A flag is set on LambdaScopeInfo to indicate that we have not yet injected the captures. * The parameters are parsed (in the parent context, as lambda mangling recurses in the parent context, we couldn't mangle a lambda that is attached to the context of a lambda whose type is not yet known). * The lambda qualifiers are parsed, at this point, we can switch (for the second time) inside the lambda context, unset the flag indicating that we have not parsed the lambda qualifiers, record the lambda is mutable and capture the explicit variables. * We can parse the rest of the lambda type, transform the lambda and call operator's types and also transform the call operator to a template function decl where necessary. At this point, both captures and parameters can be injected in the body's scope. When trying to capture an implicit variable, if we are before the qualifiers of a lambda, we need to remember that the variables are still in the parent's context (rather than in the call operator's). This is a recommit of adff142d after a fix in d8d793f2 Reviewed By: aaron.ballman, #clang-language-wg, ChuanqiXu Differential Revision: https://reviews.llvm.org/D119136
-
Martin Sebor authored
-
Corentin Jabot authored
Referring to capture in parameter list is now ill-formed. This change is made to prepare for https://reviews.llvm.org/D119136
-
Nikolas Klauser authored
Fixes https://github.com/llvm/llvm-project/issues/10686 Reviewed By: Mordante, ldionne, var-const, #libc Spies: jloser, libcxx-commits, arphaman Differential Revision: https://reviews.llvm.org/D122092
-
Matt Arsenault authored
This testcase fails register allocation, but at the failure point there were also new split virtual registers. Previously this was assigning the failing register and not enqueueing the newly created split virtual registers. These would then never be allocated and assert in VirtRegRewriter.
-
Jez Ng authored
Follow-on to {D123276}. Now that we work with an internal representation of compact unwind entries, we no longer need to template our UnwindInfoSectionImpl code based on the pointer size of the target architecture. I've still kept the split between `UnwindInfoSectionImpl` and `UnwindInfoSection`. I'd introduced that split in order to do type erasure, but I think it's still useful to have in order to keep `UnwindInfoSection`'s definition in the header file clean. Reviewed By: #lld-macho, oontvoo Differential Revision: https://reviews.llvm.org/D123277 -
Vitaly Buka authored
Breaks android and iOS bots. https://green.lab.llvm.org/green/job/clang-san-iossim/5229/consoleFull#711521816a1ca8a51-895e-46c6-af87-ce24fa4cd561 https://lab.llvm.org/buildbot/#/builders/77/builds/16456 This reverts commit 6345d7f2.
-
Jonas Devlieghere authored
Unlike for any of the other shells, we were escaping $ when using tcsh. There's nothing special about $ in tcsh and this prevents you from expanding shell variables, one of the main reasons this functionality exists in the first place. Differential revision: https://reviews.llvm.org/D123690
-
Vladislav Khmelevsky authored
The ld might relax ADRP+ADD or ADRP+LDR sequences to the ADR+NOP, add the new case to the skipRelocation for aarch64. Vladislav Khmelevsky, Advanced Software Technology Lab, Huawei Differential Revision: https://reviews.llvm.org/D123334
-
Martin Sebor authored
-
Yitzhak Mandelbaum authored
Currently, when the framework is used with an analysis that does not override `compareEquivalent`, it does not terminate for most loops. The root cause is the interaction of (the default implementation of) environment comparison (`compareEquivalent`) and the means by which locations and values are allocated. Specifically, the creation of certain values (including: reference and pointer values; merged values) results in allocations of fresh locations in the environment. As a result, analysis of even trivial loop bodies produces different (if isomorphic) environments, on identical inputs. At the same time, the default analysis relies on strict equality (versus some relaxed notion of equivalence). Together, when the analysis compares these isomorphic, yet unequal, environments, to determine whether the successors of the given block need to be (re)processed, the result is invariably "yes", thus preventing loop analysis from reaching a fixed point. There are many possible solutions to this problem, including equivalence that is less than strict pointer equality (like structural equivalence) and/or the introduction of an explicit widening operation. However, these solutions will require care to be implemented correctly. While a high priority, it seems more urgent that we fix the current default implentation to allow termination. Therefore, this patch proposes, essentially, to change the default comparison to trivally equate any two values. As a result, we can say precisely that the analysis will process the loop exactly twice -- once to establish an initial result state and the second to produce an updated result which will (always) compare equal to the previous. While clearly unsound -- we are not reaching a fix point of the transfer function, in practice, this level of analysis will find many practical issues where a single iteration of the loop impacts abstract program state. Note, however, that the change to the default `merge` operation does not affect soundness, because the framework already produces a fresh (sound) abstraction of the value when the two values are distinct. The previous setting was overly conservative. Differential Revision: https://reviews.llvm.org/D123586
-
Thomas Raoux authored
Support unrolling for vector.transpose following the same interface as other vector unrolling ops. Differential Revision: https://reviews.llvm.org/D123688
-
Mehdi Amini authored
This reverts commit adff142d. This broke clang bootstrap: it made existing C++ code in LLVM invalid: llvm/include/llvm/CodeGen/LiveInterval.h:630:53: error: captured variable 'Idx' cannot appear here [=](std::remove_reference_t<decltype(*Idx)> V, ^
-
Eli Friedman authored
We were generating wrong code for cxx20-consteval-crash.cpp: instead of loading a value of a variable, we were using its address as the initializer. Found while adding code to verify the size of constant initializers. Differential Revision: https://reviews.llvm.org/D123648
-
Matt Arsenault authored
The set of interfering virtual registers obviously only includes virtual registers.
-
Matt Arsenault authored
Try to match tN and pointer for asserts and non-assert builds.
-
serge-sans-paille authored
Running iwyu-diff on LLVM codebase since a96638e5 detected a few regressions, fixing them.
-
Congzhe Cao authored
Refactor from iteratively using BitCastInst::getOperand() to using stripPointerCasts() instead. This is an improvement since now we are able to analyze more cases, please refer to test cases added in this patch. Reviewed By: Meinersbur, #loopoptwg Differential Revision: https://reviews.llvm.org/D123559
-
Amir Ayupov authored
Missed these two tests in D123329 in a rebase.
-
Vitaly Buka authored
Usually when we generated stacktraces the process is in error state, so running hooks may crash the process and prevent meaningfull error report. Symbolizer, unwinder and pthread are potential source of mallocs. https://b.corp.google.com/issues/228110771 Reviewed By: kda Differential Revision: https://reviews.llvm.org/D123566
-
Aaron Ballman authored
The call and the function name don't line up correctly, so this was accidentally using an implicit function declaration when it didn't intend to.
-
Amir Ayupov authored
Align with an upstream change D120305 to make PIE the default on linux-gnu. Add `-no-pie` to tests that require it. Reviewed By: maksfb, yota9 Differential Revision: https://reviews.llvm.org/D123329
-
Corentin Jabot authored
-
Florian Hahn authored
This reverts commit 4bf3b7dc. This might be causing another buildbot failure.
-
Maksim Panchenko authored
BOLT expects PC-relative relocations in data sections to reference code and the relocated data to form a jump table. However, there are cases where PC-relative addressing is used for data-to-data references (e.g. clang-15 can generate such code). BOLT should recognize and ignore such relocations. Otherwise, they will be considered relocations not claimed by any jump table and cause a failure in the strict mode. Reviewed By: yota9, Amir Differential Revision: https://reviews.llvm.org/D123650
-
Amir Ayupov authored
Address ThreadSanitizer warning Reviewed By: maksfb Differential Revision: https://reviews.llvm.org/D121338
-
Erich Keane authored
-