- Jul 28, 2022
-
-
David Blaikie authored
Vtables will be emitted in fewer places than ctors (every ctor references the vtable, so at worst it's the same places - but at best the type has a non-inline key function and the vtable is emitted in one place) Pulling this fix out of 517bbc64 which was reverted in 4821508d
-
Amaury Séchet authored
-
Lei Zhang authored
This commit extends UnifyAliasedResourcePass to handle the case where aliased resources have different vector sizes. (It still requires all scalar types to be of the same bitwidth.) This is effectively reusing the code for handling different-bitwidth scalar types. Reviewed By: ThomasRaoux Differential Revision: https://reviews.llvm.org/D130671
-
Lei Zhang authored
This commit fixes spv.CompositeConstruct to assembly to list operand types to enable vector construction out of smaller vectors. Validation is also fixed to properly check the cases for vector construction. Reviewed By: ThomasRaoux Differential Revision: https://reviews.llvm.org/D130669
-
Matt Arsenault authored
tryLastChanceRecoloring iterates over the set of LiveInterval pointers and used that to seed the recoloring stack, which was nondeterministic. Fixes a future test failing about 20% of the time. This just takes the order the interfering vreg was encountered. Not sure if we should try to order this more intelligently.
-
Shafik Yaghmour authored
Revert "[Clang] Diagnose ill-formed constant expression when setting a non fixed enum to a value outside the range of the enumeration values" This reverts commit a3710589.
-
Jonas Devlieghere authored
Xcode 14 no longer puts the Rosetta expanded shared cache in a directory named "16.0". Instead, it includes the real version number (e.g. 13.0), the build string and the architecture, similar to the device support directory names for iOS, tvOS and watchOS. Currently, when there are multiple directories, we might end up picking the wrong one in GetSDKDirectoryForCurrentOSVersion. The problem is that without the build string we have no way to differentiate between multiple directories with the same version number. This patch fixes the problem by using GetOSBuildString which, as the name implies, returns the build string if known. This also adds a test for Rosetta debugging on Apple Silicon. Depending on whether the Rosetta expanded shared cache is present, the test ensures that there is or isn't a diagnostic about reading out of memory. rdar://97576121 Differential revision: https://reviews.llvm.org/D130540
-
Craig Topper authored
Similar to what was done for VRGATHER*_VL recently. This will be used in D130659.
-
Jim Ingham authored
I noticed that the test TestSetWatchpoint.py was failing every so often on macOS. The failure was in the last assert, that after destroying the SBTarget containing it, the SBWatchpoint was still saying it was valid. IsValid in this case just meant the watchpoint weak pointer could be turned into a shared pointer. The watchpoint shared pointers have two strong references in general, one to the "Target::m_last_created_watchpoint", and one in the Target::m_watchpoint_list. Target::Destroy reset the last created watchpoint but neglected to call RemoveAll on the watchpoint list (it does the analogous work for the internal & external breakpoint lists...) This patch does the equivalent cleanup for the watchpoint list.
-
Shafik Yaghmour authored
[Clang] Diagnose ill-formed constant expression when setting a non fixed enum to a value outside the range of the enumeration values DR2338 clarified that it was undefined behavior to set the value outside the range of the enumerations values for an enum without a fixed underlying type. We should diagnose this with a constant expression context. Differential Revision: https://reviews.llvm.org/D130058
-
LLVM GN Syncbot authored
-
bixia1 authored
Modify an existing test to test the situation. Reviewed By: Peiming Differential Revision: https://reviews.llvm.org/D130658
-
Paul Kirth authored
This reverts commit 300c9a78. We will reland once these issues are ironed out.
-
Paul Kirth authored
In this patch we replace common code patterns with the use of utility functions for dealing with profiling metadata. There should be no change in functionality, as the existing checks should be preserved in all cases. Reviewed By: bogner, davidxl Differential Revision: https://reviews.llvm.org/D128860
-
Paul Kirth authored
Currently, there is significant code duplication for dealing with MD_prof metadata throughout the compiler. These utility functions can improve code reuse and simplify boilerplate code when dealing with profiling metadata, such as branch weights. The inent is to provide a uniform set of APIs that allow common tasks, such as identifying specific types of MD_prof metadata and extracting branch weights. Future patches can build on this initial implementation and clean up the different implementations across the compiler. Reviewed By: bogner Differential Revision: https://reviews.llvm.org/D128858
-
Adrian Prantl authored
Currently, the IR to MIR translator can only handle two kinds of constant inputs to dbg.values intrinsics: constant integers and constant floats. In particular, it cannot handle pointers created from IntToPtr ConstantExpression objects. This patch addresses the limitation above by replacing the IntToPtr with its input integer prior to converting the dbg.value input. Patch by Felipe Piovezan! Differential Revision: https://reviews.llvm.org/D130642
-
Arthur Eubanks authored
Fixes a FIXME Reviewed By: zequanwu Differential Revision: https://reviews.llvm.org/D130504
-
Tom Stellard authored
-
Slava Gurevich authored
SymbolVendorPECOFF object is leaked on early return at line 110 Differential Revision: https://reviews.llvm.org/D130655
-
Tom Stellard authored
This was broken by 17d4796c.
-
Joseph Huber authored
Summary: Linkers use `--verbose` to let users investigate search libraries among other things. The linker wrapper was incorrectly not forwarding this to the linker job. This patch simply renames this so users can still see verbose messages from the linker if it was passed.
-
Prabhdeep Singh Soni authored
This patch adds support for AsmPrinter `-mmlir` options to the Flang driver. Reviewed By: awarzynski Differential Revision: https://reviews.llvm.org/D130598
-
Mark de Wever authored
Since the calendar is added in C++20 the existing operators are removed. Implements part of: - P1614R2 The Mothership has Landed Reviewed By: #libc, ldionne Differential Revision: https://reviews.llvm.org/D129887
-
Arthur Eubanks authored
simplified_template_names_noncanonical_type_units.cpp uses split-file. Reviewed By: dblaikie Differential Revision: https://reviews.llvm.org/D130656
-
Philip Reames authored
This change enables vectorization (using scalable vectorization only, fixed vectors are not yet enabled) for RISCV when vector instructions are available for the target configuration. At this point, the resulting configuration should be both stable (e.g. no crashes), and profitable (i.e. few cases where scalar loops beat vector ones), but is not going to be particularly well tuned (i.e. we emit the best possible vector loop). The goal of this change is to align testing across organizations and ensure the default configuration matches what downstreams are using as closely as possible. This exposes a large amount of code which hasn't otherwise been on by default, and thus may not have been fully exercised. Given that, having issues fall out is not unexpected. If you find issues, please make sure to include as much information as you can when reverting this change. Differential Revision: https://reviews.llvm.org/D129013
-
Denis Fatkulin authored
Lambdas with trailing return type 'auto' are annotated incorrectly. It causes a misformatting. The simpliest code to reproduce is: ``` auto list = {[]() -> auto { return 0; }}; ``` Fixes https://github.com/llvm/llvm-project/issues/54798 Reviewed By: HazardyKnusperkeks, owenpan, curdeius Differential Revision: https://reviews.llvm.org/D130299 -
LLVM GN Syncbot authored
-
Jacob Lambert authored
Lifting the core functionalities of the clang-offload-bundler into a user-facing library/API. This will allow online and JIT compilers to bundle and unbundle files without spawning a new process. This patch lifts the classes and functions used to implement the clang-offload-bundler into a separate OffloadBundler.cpp, and defines three top-level API functions in OfflaodBundler.h. BundleFiles() UnbundleFiles() UnbundleArchives() This patch also introduces a Config class that locally stores the previously global cl::opt options and arrays to allow users to call the APIs in a multi-threaded context, and introduces an OffloadBundler class to encapsulate the top-level API functions. We also lift the BundlerExecutable variable, which is specific to the clang-offload-bundler tool, from the API, and replace its use with an ObjcopyPath variable. This variable must be set in order to internally call llvm-objcopy. Finally, we move the API files from clang/tools/clang-offload-bundler into clang/lib/Driver and clang/include/clang/Driver. Differential Revision: https://reviews.llvm.org/D129873 -
Stanislav Mekhanoshin authored
The instruction is used to modify wave priority with the intent to affect VALU execution and currently we can reschedule VALU around it since that VALU does not have side effects. Differential Revision: https://reviews.llvm.org/D130654
-
Shraiysh Vaishay authored
This patch adds canonicalization conditions for omp.atomic.update thus eliminating it when it becomes just a write or a no-op due to other changes during canonicalization. Reviewed By: ftynse Differential Revision: https://reviews.llvm.org/D126531
-
Jonas Devlieghere authored
Teach libDebugInfo (llvm-dwarfdump) and lldb about DWARF tags and attributes for pointer authentication. These values have been emitted by Apple clang for several releases. Although upstream LLVM doesn't emit these values yet, we hope to upstream that part sometime soon. Differential revision: https://reviews.llvm.org/D130215
-
Philip Reames authored
The problem here is target independent, but particularly painful on RISCV. If we chose to vectorize such that vscale x 2 x i32 is our widest type and fits in a register, a naive expansion of i64 comparisons results in comparisons and index types at <scalabe x 2 x i64>. This requires both an LMUL of 2, and a VSETVLI toggle in the loop. Note that we could have used <vscale x 2 x i32> for the compairons legally given the range of the trip count.
-
Amara Emerson authored
-
Florian Hahn authored
Now that all uses of VPPredInstPHIRecipes are properly modeled, they can be treated as not having side-effects, enabling removal.
-
Nikolas Klauser authored
Reviewed By: #libc, ldionne Spies: mgorny, var-const, ormris, philnik, miscco, hiraditya, steven_wu, jkorous, ldionne, christof, libcxx-commits Differential Revision: https://reviews.llvm.org/D68365
-
Stanislav Mekhanoshin authored
-
Eric Li authored
Use a delegating constructor to remove the last use of the deprecated ctor of `TypeErasedDataflowAnalysis`, and then delete it. Differential Revision: https://reviews.llvm.org/D130653
-
Fangrui Song authored
The test is brittle but it seems unnecessary to remove size check now. Close #56222
-
Mingming Liu authored
Without this, the intrinsic will be expanded to an integer; thereby an explicit copy (from GPR to SIMD register) will be codegen'd. This matches the general convention of using "v1" types to represent scalar integer operations in vector registers. The similar approach is observed in D56616, and the pattern likely applies on other intrinsic that accepts integer scalars (e.g., int_aarch64_neon_sqdmulls_scalar) Differential Revision: https://reviews.llvm.org/D130548
-
Mark de Wever authored
The GDB test was disabled for clang-15, updated the filter since main now is clang-16.
-