- Dec 17, 2022
-
-
Fangrui Song authored
-
Mitch Phillips authored
This reverts commit cc9d9df7. Reason: This change is dependent on a commit that needs to be rolled back because it broke the ASan buildbot. See https://reviews.llvm.org/rGfc21f2d7bae2e0be630470cc7ca9323ed5859892 for more information.
-
Mitch Phillips authored
This reverts commit fc21f2d7. This patch broke the ASan buildbot. See https://reviews.llvm.org/rGfc21f2d7bae2e0be630470cc7ca9323ed5859892 for more information.
-
Mitch Phillips authored
This reverts commit 07c37534. Reason: This change is dependent on a commit that needs to be rolled back because it broke the ASan buildbot. See https://reviews.llvm.org/rGfc21f2d7bae2e0be630470cc7ca9323ed5859892 for more information.
-
Mitch Phillips authored
This reverts commit 4a5d0d87. Reason: This change is dependent on a commit that needs to be rolled back because it broke the ASan buildbot. See https://reviews.llvm.org/rGfc21f2d7bae2e0be630470cc7ca9323ed5859892 for more information.
-
Mitch Phillips authored
This reverts commit 2ac37df5. Reason: This change is dependent on a commit that needs to be rolled back because it broke the ASan buildbot. See https://reviews.llvm.org/rGfc21f2d7bae2e0be630470cc7ca9323ed5859892 for more information.
-
Mitch Phillips authored
This reverts commit 88f9b525. Reason: This change is dependent on a commit that needs to be rolled back because it broke the ASan buildbot. See https://reviews.llvm.org/rGfc21f2d7bae2e0be630470cc7ca9323ed5859892 for more information.
-
Mitch Phillips authored
This reverts commit 88db516a. Reason: This change is dependent on a commit that needs to be rolled back because it broke the ASan buildbot. See https://reviews.llvm.org/rGfc21f2d7bae2e0be630470cc7ca9323ed5859892 for more information.
-
Mitch Phillips authored
This reverts commit 12696d30. Reason: This change is dependent on a commit that needs to be rolled back because it broke the ASan buildbot. See https://reviews.llvm.org/rGfc21f2d7bae2e0be630470cc7ca9323ed5859892 for more information.
-
Mitch Phillips authored
This reverts commit 179ed887. Reason: This change is dependent on a commit that needs to be rolled back because it broke the ASan buildbot. See https://reviews.llvm.org/rGfc21f2d7bae2e0be630470cc7ca9323ed5859892 for more information.
-
Fangrui Song authored
value() has undesired exception checking semantics and calls __throw_bad_optional_access in libc++. Moreover, the API is unavailable without _LIBCPP_NO_EXCEPTIONS on older Mach-O platforms (see _LIBCPP_AVAILABILITY_BAD_OPTIONAL_ACCESS). This fixes check-llvm.
-
ziqingluo-90 authored
Add an unsafe Gadget in the Unsafe Buffer Usage anslysis to represent (and search (via matchers) for) unsafe buffer-accessing array subscript operations. Reviewed By: NoQ, jkorous, aaron.ballman, xazax.hun Differential Revision: https://reviews.llvm.org/D137379
-
Nico Weber authored
-
Peter Klausler authored
When an ELEMENTAL subroutine is erroneously declared with alternate return arguments, don't crash when checking the ranks of the actual arguments. Differential Revision: https://reviews.llvm.org/D140143
-
Kevin Sala authored
This patch applies the clang-format to the recent changes on OMPGridValues introduced by commit 2e9c3fe6.
-
Fangrui Song authored
value() has undesired exception checking semantics and calls __throw_bad_optional_access in libc++. Moreover, the API is unavailable without _LIBCPP_NO_EXCEPTIONS on older Mach-O platforms (see _LIBCPP_AVAILABILITY_BAD_OPTIONAL_ACCESS). This fixes clang.
-
Kevin Sala authored
Differential Revision: https://reviews.llvm.org/D140174
-
Siva Chandra Reddy authored
-
Mircea Trofin authored
This reverts commit a00aaf2b. Example failures: https://lab.llvm.org/buildbot#builders/68/builds/44933 https://lab.llvm.org/buildbot#builders/230/builds/6938
-
ibricchi authored
Adds the ability to load InlineAdvisors as plugins. This allows developing and distributing inlining heuristics outside of tree. The PluginInlineAdvisorAnalysis class serves as the entry point for dynamic advisors. Plugins must register instances of this class to provide their own InliningAdvisor. Reviewed By: mtrofin Differential Revision: https://reviews.llvm.org/D139644
-
Mircea Trofin authored
Snatched from D139644, but because it'd also need a fix in Passes/CMakeLists.txt, decided to peel it off.
-
Fangrui Song authored
-
Fangrui Song authored
value() has undesired exception checking semantics and calls __throw_bad_optional_access in libc++. Moreover, the API is unavailable without _LIBCPP_NO_EXCEPTIONS on older Mach-O platforms (see _LIBCPP_AVAILABILITY_BAD_OPTIONAL_ACCESS). This fixes LLVMMIRParser, LLVMGlobalISel, LLVMAsmPrinter, LLVMSelectionDAG.
-
David Blaikie authored
-
Fangrui Song authored
value() has undesired exception checking semantics and calls __throw_bad_optional_access in libc++. Moreover, the API is unavailable without _LIBCPP_NO_EXCEPTIONS on older Mach-O platforms (see _LIBCPP_AVAILABILITY_BAD_OPTIONAL_ACCESS).
-
David Blaikie authored
These were inconsistent (one `touch` line listed all the files in a single `touch` invocation, but the other listed them as separate commands with `&&`) and incorrect (one `&&` was missing, causing `touch` to try to touch a file called `touch` in the cwd, which might not be accessible/relevant to test execution) So make them consistent and simpler by using the "list all the files on a line in a single `touch` invocation" reducing the visual noise/clutter/etc.
-
Arthur Eubanks authored
-
Murali Vijayaraghavan authored
This is mostly going to be used for linalg transformations - to make pooling ops similar to convolution ops. Differential Revision: https://reviews.llvm.org/D140186
-
Peter Klausler authored
Extend the descriptor creation function for components to allow unlimited polymorphic components (CLASS(*)) and to also properly set the attributes of the established descriptors. Differential Revision: https://reviews.llvm.org/D140141
-
Artem Dergachev authored
This patch introduces a hierarchy of Gadget classes, which are going to be the core concept in the somewhat sophisticated machine behind the upcoming -Wunsafe-buffer-usage fix-it hints. A gadget is a rigid code pattern that constitutes an operation that the fixit machine "understands" well enough to work with. A gadget may be "unsafe" (i.e., constitute a raw buffer access) or "safe" (constitute a use of a pointer or array variable that isn't unsafe per se, but may need fixing if the participating variable changes type to a safe container/view). We'll be able to make decisions about how to fix the code depending on the set of gadgets that we've enumerated. Basically, in order to fix a type of a variable, each use of that variable has to participate in a gadget, and each such gadget has to consent to fixing itself according to the variable's new type. Differential Revision: https://reviews.llvm.org/D137348
-
Kevin Sala authored
This commit adds the AMDGPU NextGen plugin inheriting from PluginInterface's classes. It also implements the asynchronous behavior in the plugin operations: kernel launches and memory transfers. To this end, it implements the concept of streams of asynchronous operations. The streams are implemented using the HSA signals to define input and output dependencies between asynchronous operations. Missing features: - Retrieve the maximum number of threads per group that a kernel can run. This requires reading the image. - Implement __tgt_rtl_sync_event, not used on the libomptarget side. Differential Revision: https://reviews.llvm.org/D138389 -
Kevin Sala authored
This patch prepares for the new AMDGPU NextGen plugin. Differential Revision: https://reviews.llvm.org/D140213
-
Fangrui Song authored
value() has undesired exception checking semantics and calls __throw_bad_optional_access in libc++. Moreover, the API is unavailable without _LIBCPP_NO_EXCEPTIONS on older Mach-O platforms (see _LIBCPP_AVAILABILITY_BAD_OPTIONAL_ACCESS).
-
Fangrui Song authored
value() has undesired exception checking semantics and calls __throw_bad_optional_access in libc++. Moreover, the API is unavailable without _LIBCPP_NO_EXCEPTIONS on older Mach-O platforms (see _LIBCPP_AVAILABILITY_BAD_OPTIONAL_ACCESS). This commit fixes LLVMAnalysis and its dependencies.
-
Adrian Prantl authored
-
Dave Lee authored
Update the Clang diagnostic consumer (in ClangModulesDeclVendor) to report progress on Clang module builds, as both progress events and expression logs. Module build remarks are enabled by with clang's `-Rmodule-build` flag. With this change, command line users of lldb will see progress events showing which modules are being built, and - by how long they stay on screen - how much time it takes to build them. IDEs that show progress events can show these updates if desired. This does not show module-import remarks, although that may be added as a future change. Differential Revision: https://reviews.llvm.org/D140056
-
Peter Klausler authored
There was a falsely known case with a polymorphic type. Differential Revision: https://reviews.llvm.org/D140140
-
Jacques Pienaar authored
Following DenseElementsAttr pattern. Differential Revision: https://reviews.llvm.org/D140189
-
Emilia Dreamer authored
The C++ standard doesn't require that class template deduction guides be templates themselves, but previously `isDeductionGuide` would assert for the existence of a template closer or requires clause closer before the deduction guide declaration. This patch simply removes that check. Because of this, a test which asserted that `x()->x<1>;` *isn't* a deduction guide failed, as it is now formatted as a deduction guide. However, as @JohelEGP demonstrated, it is [possible to make that a viable deduction guide][1]. Thus, that test has been removed, but other tests related to non-template class template deduction guides have been added. Fixes https://github.com/llvm/llvm-project/issues/55142 [1]: https://compiler-explorer.com/z/Wx3K6d5K9 Reviewed By: HazardyKnusperkeks, owenpan Differential Revision: https://reviews.llvm.org/D139416
-
Hanhan Wang authored
The main issue of tiling unpack op is about incomplete tile. Since all the dimensions are orthogonal, discussing 1-d unpack case is enough. The core idea is to make the input slice have complete tiles. In this case, a larger unpacked tile will be created. We'll need an extract_slice op to shift and truncate the output. Take Nn_to_N as an example. Say that N=32, n=8, and tiling_size=15. The coordinates of second tile (i.e., result[15..31]) are [(1, 7), (2, 0,), (2, 1) ... (3, 6), (3, 7)]. The first row and the last row are incomplete in terms of inputs. It's impossible to represent an unpack op using the coordinates. Because the input has higher rank and the math computation of coordinate is using mod and ceilDiv. That's very tricky. To represent the unpack op, we have to complete the rows. I.e., the input coordinates would start with (1, 0); end with (3, 7). In this context, the tiled unpack produces a (3 * n) elements because there are 3 rows in total. Follow by a tensor.extract_slice op, we can get the actual result. If the tiling sizes are multiple of inner tile sizes, it is a perfect tiling case. In this context, the larger input and output is not needed. Reviewed By: chelini Differential Revision: https://reviews.llvm.org/D139362
-