- Apr 14, 2022
-
-
Florian Mayer authored
Reviewed By: eugenis Differential Revision: https://reviews.llvm.org/D123644
-
Peter Klausler authored
Catch and nicely describe errors in CASE range values that are out of range for the type of the SELECT CASE. Differential Revision: https://reviews.llvm.org/D123708
-
Vitaly Buka authored
Followup to D123566
-
Nico Weber authored
-
Fangrui Song authored
[randstruct] Fix -Wunused-but-set-variable with Clang>=D122271 in -DLLVM_ENABLE_ASSERTIONS=off builds
-
Peter Klausler authored
Implement constant folding of IBITS(); add test. Differential Revision: https://reviews.llvm.org/D123707
-
Okwan Kwon authored
Differential Revision: https://reviews.llvm.org/D123745
-
Fangrui Song authored
[Driver] Change CLANG_ENABLE_OPAQUE_POINTERS_INTERNAL to affect driver default instead of cc1 default The current cc1 CLANG_ENABLE_OPAQUE_POINTERS=on default difference is not ideal in that people contribute %clang_cc1 tests may assume the default ON behavior, which will cause failures on systems set to OFF. cc1 option default dependent on CMake options should be used prudently (generally avoided). We prefer to limit target differences to Driver. Change the CLANG_ENABLE_OPAQUE_POINTERS_INTERNAL mechanism introduced in D123122 to use a driver default instead. This is similar to the mechanism used for the -flegacy-pass-manager transition to new PM transition. Reviewed By: #opaque-pointers, rsmith, aeubanks Differential Revision: https://reviews.llvm.org/D123744
-
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
-
Arthur Eubanks authored
Matches official cmake build.
-
Arthur Eubanks authored
Matches official cmake build.
-
Jonas Devlieghere authored
-
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.
-