- Mar 24, 2022
-
-
Austin Kerbow authored
In some cases padding bubbles between sequential MFMA instructions may lead to increased inter-wave performance. Add option to request to pad some portion of these stall cycles with s_nops. Fixes: SWDEV-326925 Reviewed By: rampitec Differential Revision: https://reviews.llvm.org/D121437
-
Johannes Doerfert authored
There is potential for endless recursion if we try to determine the underlying objects of a load, just to end up with the load as underlying object. A proper solution will require us to pass a visited set around. This will happen as we cleanup genericValueTraversal soon.
-
Nico Weber authored
macOS 12.3 no longer ships non-3 python. Almost all of these scripts were launched by ninja, and the GN files already told it to run them under python3, so this is a fairly small change. The main effect is that if you run them manually, you now get the same behavior. (A small set of scripts, gn.py, gen.py, sync_source_lists_from_cmake.py, are for manual running. For these, it is an actual change.) Differential Revision: https://reviews.llvm.org/D122345
-
Siva Chandra Reddy authored
Reviewed By: jeffbailey, michaelrj Differential Revision: https://reviews.llvm.org/D122272
-
Mogball authored
Emitting at error at EOF will emit the diagnostic past the end of the file. When emitting an error during parsing at EOF, emit it at the previous character. Reviewed By: jpienaar Differential Revision: https://reviews.llvm.org/D122295
-
Nico Weber authored
Differential Revision: https://reviews.llvm.org/D122313
-
Florian Hahn authored
-
Nico Weber authored
It behaves (mostly) like the LLVM_INSTALL_CCTOOLS_SYMLINKS option in cmake. The minor difference is that the llvm-objcopy symlinks bitcode_strip and install_name_tool symlink to llvm-objcopy directly in the GN build, while it's a bitcode_strip -> llvm-bitcode-strip -> objcopy chain in the CMake build (and analogous for install_name_tool). The implementation is very similar to the implementation of the existing llvm_install_binutils_symlinks arg. Differential Revision: https://reviews.llvm.org/D122312
-
Nico Weber authored
-
Erich Keane authored
-
minglotus-6 authored
[ProfSampleLoader] When disable-sample-loader-inlining is true, merge profiles of inlined instances to outlining versions. When --disable-sample-loader-inlining is true, skip inline transformation, but merge profiles of inlined instances to outlining versions. Differential Revision: https://reviews.llvm.org/D121862
-
Nathaniel McVicar authored
Fix warning in clang introduced in D121766. Reviewed By: mehdi_amini Differential Revision: https://reviews.llvm.org/D122333
-
Nico Weber authored
-
Louis Dionne authored
This patch adds a lightweight assertion handler mechanism that can be overriden at link-time in a fashion similar to `operator new`. This is a third take on https://llvm.org/D121123 (which allowed customizing the assertion handler at compile-time), and https://llvm.org/D119969 (which allowed customizing the assertion handler at runtime only). This approach is, I think, the best of all three explored approaches. Indeed, replacing the assertion handler in user code is ergonomic, yet we retain the ability to provide a custom assertion handler when deploying to older platforms that don't have a default handler in the dylib. As-is, this patch provides a pretty good amount of backwards compatibility with the previous debug mode: - Code that used to set _LIBCPP_DEBUG=0 in order to get basic assertions in their code will still get basic assertions out of the box, but those assertions will be using the new assertion handler support. - Code that was previously compiled with references to __libcpp_debug_function and friends will work out-of-the-box, no changes required. This is because we provide the same symbols in the dylib as we used to. - Code that used to set a custom __libcpp_debug_function will stop compiling, because we don't provide that declaration anymore. Users will have to migrate to the new way of setting a custom assertion handler, which is extremely easy. I suspect that pool of users is very limited, so breaking them at compile-time is probably acceptable. The main downside of this approach is that code being compiled with assertions enabled but deploying to an older platform where the assertion handler didn't exist yet will fail to compile. However users can easily fix the problem by providing a custom assertion handler and defining the _LIBCPP_AVAILABILITY_CUSTOM_ASSERTION_HANDLER_PROVIDED macro to let the library know about the custom handler. In a way, this is actually a feature because it avoids a load-time error that one would otherwise get when trying to run the code on the older target. Differential Revision: https://reviews.llvm.org/D121478
-
Sanjay Patel authored
These are based on tests that were included in the abandoned D122299. Comments indicate what should or should not happen if we change behavior in Negator.
-
Med Ismail Bennani authored
This patch introduces 2 new lldb utility functions: - lldbutil.start_listening_from: This can be called in the test setup to create a listener and set it up for a specific event mask and add it to the user-provided broadcaster's list. - lldbutil.fetch_next_event: This will use fetch a single event from the provided istener and return it if it matches the provided broadcaster. The motivation behind this is to easily test new kinds of events (i.e. Swift type-system progress events). However, this patch also updates `TestProgressReporting.py` and `TestDiagnosticReporting.py` to make use of these new helper functions. Differential Revision: https://reviews.llvm.org/D122193 Signed-off-by:
Med Ismail Bennani <medismail.bennani@gmail.com>
-
chenglin.bi authored
When abs source comes from (x - y), check if a "x > y" dominating condition exists. Fixes #54132 Differential Revision: https://reviews.llvm.org/D122013
-
Craig Topper authored
Don't call EltVT.getSizeInBits() or SrcEltVT.getSizeInBits() a second time. They are already in EltSize or SrcEltSize variables. Refactor some comparisons to use multiply instead of division.
-
Simon Pilgrim authored
[InstCombine] Add some initial SimplifyDemandedBits tests for removal of ashr with sufficient signbits We have this in SelectionDAG but it's missing in InstCombine Based off PR21929 test case
-
Daniel Grumberg authored
Before actually executing the ExtractAPIAction, clear the CompilationInstance's input list and replace it with a single synthesized file that just includes (or imports in ObjC) all the inputs. Depends on D122141 Differential Revision: https://reviews.llvm.org/D122175
-
wren romano authored
Work towards: https://github.com/llvm/llvm-project/issues/51652 The new functions fill the gap between `overheadTypeEncoding` and `get{Pointer,Index}OverheadType`. Reviewed By: aartbik Differential Revision: https://reviews.llvm.org/D122056
-
Arthur Eubanks authored
-
Arthur Eubanks authored
Matches other similar tests.
-
Arthur Eubanks authored
CoroSplit lowers various coroutine intrinsics. It's a CGSCC pass and CGSCC passes don't run on unreachable functions. Normally GlobalDCE will come along and delete unreachable functions, but we don't run GlobalDCE under -O0, so an unreachable function with coroutine intrinsics may never have CoroSplit run on it. This patch adds GlobalDCE when coroutines intrinsics are present. It also now runs all coroutine passes conditional when coroutine intrinsics are present. This should also solve the -O0 regression reported in D105877 due to LazyCallGraph construction. Fixes https://github.com/llvm/llvm-project/issues/54117 Reviewed By: ChuanqiXu Differential Revision: https://reviews.llvm.org/D122275
-
Arthur Eubanks authored
Revert "Recommit "[SLP] Fix lookahead operand reordering for splat loads." attempt 2, fixed assertion crash." This reverts commit 27bd8f94. Causes crashes, see comments in D121973
-
Roger Kim authored
`config->priorities` has been used to hold the intermediate state during the construction of the order in which sections should be laid out. This is not a good place to hold this state since the intermediate state is not a "configuration" for LLD. It should be encapsulated in a class for building a mapping from section to priority (which I created in this diff as the `PriorityBuilder` class). The same thing is being done for `config->callGraphProfile`. Reviewed By: #lld-macho, int3 Differential Revision: https://reviews.llvm.org/D122156
-
Sam McCall authored
Actual functionality doesn't seem to work with (default) -fms-compatibility. Not sure why yet...
-
Louis Dionne authored
The way we handle __config_site changed 1-2 years ago, and the documentation was never updated -- this commit does that.
-
Roger Ferrer Ibanez authored
We can reuse the folding of REAL. Differential Revision: https://reviews.llvm.org/D122214
-
Aaron Ballman authored
Currently, Clang handles some qualifiers correctly for __auto_type, but it does not handle the restrict or _Atomic qualifiers in the same way that GCC does. This patch handles those qualifiers so that they attach to the deduced type the same as const and volatile already do. This fixes https://github.com/llvm/llvm-project/issues/53652
-
Louis Dionne authored
The Clang documentation mentions that macosx is supported for backwards compatibility, but it's deprecated.
-
Louis Dionne authored
-
Jonas Devlieghere authored
This patch upstreams support for tagger pointer ISAs.
-
Craig Topper authored
Instead of using operator[], use DenseMap::find to prevent default constructing an entry if it isn't already in the map. Also simplify a condition to check for 0 instead of a virtual register. I'm pretty sure we can only get 0 or a virtual register out of the value map.
-
Valentin Clement authored
This patch adds test for the lowering of Fortran modules. This patch is part of the upstreaming effort from fir-dev branch. Reviewed By: PeteSteinfeld Differential Revision: https://reviews.llvm.org/D122317 Co-authored-by:
Jean Perier <jperier@nvidia.com> Co-authored-by:
Eric Schweitz <eschweitz@nvidia.com>
-
luxufan authored
Differential Revision: https://reviews.llvm.org/D122290
-
luxufan authored
In the past, when construct RISCVAsmBackend, MCTargetOptions.ABIName would be passed and stored in RISCVAsmBackend. But MCTargetOptions.ABIName can only be specified by -target-abi xxx in command line, if the .ll file has target-abi attribute, the codegen module will ignore it. And the generated object file would have incorrect EFlags value. https://github.com/llvm/llvm-project/issues/50591 also caused by this problem. This patch override the AsmPrinter::emitFunctionEntryLabel function and use it to set the target abi value that get from .ll file's target-abi attribute. And storing the target-abi in RISCVTargetStreamer instead of RISCVAsmBackend. Differential Revision: https://reviews.llvm.org/D121183
-
Zixu Wang authored
- Add `StructFieldRecord` and `StructRecord` to store API information for structs - Implement `VisitRecordDecl` in `ExtractAPIVisitor` - Implement Symbol Graph serialization for struct records. - Add test case for struct records. Depends on D121873 Differential Revision: https://reviews.llvm.org/D122202
-
David Green authored
-
Zixu Wang authored
Add support for enum records - Add `EnumConstantRecord` and `EnumRecord` to store API information for enums - Implement `VisitEnumDecl` in `ExtractAPIVisitor` - Implement serializatin for enum records and `MemberOf` relationship - Add test case for enum records - Few other improvements Depends on D122160 Differential Revision: https://reviews.llvm.org/D121873
-