- Apr 14, 2022
-
-
LLVM GN Syncbot authored
-
Fangrui Song authored
Report use of ``std::vector<const T>`` (and similar containers of const elements). These are now allowed in standard C++ due to undefined ``std::allocator<const T>``. They do not compile with libstdc++ or MSVC. Future libc++ will remove the extension (D120996). See docs/clang-tidy/checks/portability-std-allocator-const.rst for detail. I have attempted clean-up in a large code base. Here are some statistics: * 98% are related to the container `std::vector`, among `deque/forward_list/list/multiset/queue/set/stack/vector`. * 24% are related to `std::vector<const std::string>`. * Both `std::vector<const absl::string_view>` and `std::vector<const int>` contribute 2%. The other contributors spread over various class types. The check can be useful to other large code bases and may serve as an example for future libc++ strictness improvement. Reviewed By: sammccall Differential Revision: https://reviews.llvm.org/D123655
-
Ruiling Song authored
The NewDefault was used to simplify the updating of PHI nodes, but it causes some inefficiency for target that will run structurizer later. For example, for a simple two-case switch, the extra NewDefault is causing unstructured CFG like: O / \ O O / \ / \ C1 ND C2 \ | / \ | / D The change is to avoid the ND(NewDefault) block, that is we will get a structured CFG for above example like: O / \ / \ O O / \ / \ C1 \ / C2 \-> D <-/ The IR change introduced by this patch should be trivial to other targets, so I am doing this unconditionally. Fall-through among the cases will also cause unstructured CFG, but it need more work and will be addressed in a separate change. Reviewed by: arsenm Differential Revision: https://reviews.llvm.org/D123607 -
Ruiling Song authored
This is a preliminary change to update the test so that it does not depend on how switch-case will be lowered. The following change will lower switch-case more optimally that will make the test no longer valid. Reviewed by: arsenm Differential Revision: https://reviews.llvm.org/D123606
-
Fangrui Song authored
-
Peter Klausler authored
Correct the implementation of non-advancing I/O after some testing to ensure that T tab edit descriptors are not allowed to back up into positions of a record prior to where it stood at the beginning of the I/O statement. Differential Revision: https://reviews.llvm.org/D123709
-
Stella Laurenzo authored
Differential Revision: https://reviews.llvm.org/D120203
-
Richard Smith authored
This reverts commit c729d5be. This change breaks thread safety annotations on lambdas.
-
joker881 authored
add intrinsic for CLZ Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D121915
-
Blue Gaston authored
[Darwin][ASan][Sanitizer] Fixes Sanitizer NonUnique Identifier to Account for Mac arm64 architectures. Current check assumes iOS as the only Apple devices running arm64. ```#if SANITIZER_MAC && !(defined(__arm64__) && SANITIZER_IOS)``` Stops Apple Silicon from being flagged as requiring unique RTTI. This introduced unexpected behavior within the sanitizer. rdar://91446703 Differential Revision: https://reviews.llvm.org/D123736 -
Stella Laurenzo authored
Since the actual implementation class can arbitrarily shadow parts of the FunctionOpInterface exported API, access the body generically instead of via the use of the interface being defined. Fixes https://github.com/llvm/llvm-project/issues/54807 Differential Revision: https://reviews.llvm.org/D123757
-
Brad Smith authored
Reviewed By: MaskRay Differential Revision: https://reviews.llvm.org/D123438
-
Shoaib Meenai authored
We've found that there are cases where it's useful to be able to include the same target in multiple distributions (e.g. if you want a distribution that's a superset of another distribution, for convenience purposes), and that there are cases where the distribution of a target and its umbrella can legitimately differ (e.g. the LTO library would commonly be distributed alongside your tools, but it also falls under the llvm-libraries umbrella, which would commonly be distributed separately). Relax the restrictions while providing an option to restore them (which is mostly useful to ensure you aren't accidentally placing targets in the wrong distributions). There could be further refinements here (e.g. excluding a target from an umbrella if it's explicitly included in some other distribution, or having variables to control which targets are allowed to be duplicated or placed in a separate distribution than their umbrellas), but we can punt on those until there's an actual need.
-
Arjun P authored
-
Arjun P authored
-
wangpc authored
It seems to be neater. Reviewed By: asb Differential Revision: https://reviews.llvm.org/D123675
-
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
-