- Dec 17, 2022
-
-
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
-
Adrian Prantl authored
-
Paul Robinson authored
Fuzzer might decide on a target arch different from the triple.
-
Fangrui Song authored
Some older macOS libc++ report: error: 'value' is unavailable: introduced in macOS 10.13 -
Fangrui Song authored
-
Valentin Clement authored
When generating the `fir.dispatch_table` operation, the name of the parent derived-type needs to be mangled. For this the type instantiation DerivedTypeSpec needs to be retrieved to have the correct kind type parameters. Reviewed By: PeteSteinfeld Differential Revision: https://reviews.llvm.org/D140209
-
Valentin Clement authored
An unlimited polymoprhic entity can be allocated with a derived type spec or an intrinsic type spec. This patch add the generation of the runtime function call when the allocation is done with an intrinsic type spec. Reviewed By: jeanPerier Differential Revision: https://reviews.llvm.org/D140207
-
Jeffrey Byrnes authored
Presently, there is an issue on MI100 (and probably other architecture) where the VGPR used for AGPR copies clobbers VGPR used for AGPR spill. AFAICT this is because in processFunctionBeforeFrameIndicesReplaced we think the VGPR register for AGPR spill is unused. This patch aims to correct that. This is a WIP while I work out issues with producing a good test. For now, I'm curious if this is generally a good / bad idea. Differential Revision: https://reviews.llvm.org/D139673
-
Roman Lebedev authored
While the PPC litte-endian miscompile did get addressed by https://reviews.llvm.org/D140046 the PPV big-endian bots are still unhappy. https://lab.llvm.org/buildbot/#/builders/93/builds/12560 This reverts commit 7bd358bcb4e358b4351c69e02ef76939e08acdc7.
-
Fangrui Song authored
-
Fangrui Song authored
-
Haowei Wu authored
This change adds 'root-relative' option in vfsoverlay YAML file format so the root patchs can be relative to the YAML file directory instead of the current working directory. Differential Revision: https://reviews.llvm.org/D137473
-
Nathan Ridge authored
No one was using it Differential Revision: https://reviews.llvm.org/D139998
-
Peter Klausler authored
Apply some sanity checking to the type size and SIZE= values and avoid crashing on stress tests that attempt to create excessively large results. Differential Revision: https://reviews.llvm.org/D140138
-
Craig Topper authored
The class in InstCombineInternal.h inherits from InstCombiner.h. I think this split was created when target specific InstCombines were moved to go through TTI. I had to update some of the code in InstCombiner.h to match changes that had been made to InstCombineInternal.h. Reviewed By: nikic Differential Revision: https://reviews.llvm.org/D140230
-
Paul Robinson authored
Part of the project to eliminate special handling for triples in lit expressions.
-
Nathan Ridge authored
Fixes https://github.com/clangd/clangd/issues/1379 Differential Revision: https://reviews.llvm.org/D140191
-
Fangrui Song authored
-
Matt Arsenault authored
Try to respect IgnoreLLVMUsed if the function was addrspacecasted to match llvm.used's type.
-
Paul Robinson authored
Part of the project to eliminate special handling for triples in lit expressions.
-