- Oct 17, 2020
-
-
George Rokos authored
This patch fixes a problem whereby the pointee object of a PTR_AND_OBJ entry with a `map(to)` motion clause can be overwritten on the device even if its reference counter is >=1. Currently, we check the reference counter of the parent struct in order to determine whether the motion clause should be respected, but since the pointee object is not part of the struct, it's got its own reference counter which should be used to enqueue the copy or discard it. The same behavior has already been implemented in targetDataEnd (omptarget.cpp:539-540), but we somehow missed doing the same in targetDataBegin. Differential Revision: https://reviews.llvm.org/D89597
-
Richard Smith authored
commit 552c6c23.
-
Albion Fung authored
This patch implements 128-bit Binary Vector Rotate builtins for PowerPC10. Differential Revision: https://reviews.llvm.org/D86819
-
Rob Suderman authored
Differential Revision: https://reviews.llvm.org/D89593
-
Richard Smith authored
Old GCC used to aggressively fold VLAs to constant-bound arrays at block scope in GNU mode. That's non-conforming, and more modern versions of GCC only do this at file scope. Update Clang to do the same. Also promote the warning for this from off-by-default to on-by-default in all cases; more recent versions of GCC likewise warn on this by default. This is still slightly more permissive than GCC, as pointed out in PR44406, as we still fold VLAs to constant arrays in structs, but that seems justifiable given that we don't support VLA-in-struct (and don't intend to ever support it), but GCC does. Differential Revision: https://reviews.llvm.org/D89523
-
Peng Guo authored
Before formating ARM64_RELOC_ADDEND relocation target name as a hex number, the architecture need to be checked since other architectures can define a different relocation type with the same integer as ARM64_RELOC_ADDEND. Reviewed By: MaskRay Differential Revision: https://reviews.llvm.org/D89094
-
Dave Lee authored
Implement `GetName` for `ObjCExceptionThrowFrameRecognizer`. Otherwise, `frame recognizer list` shows "(internal)" for the name. Differential Revision: https://reviews.llvm.org/D89589
-
Jameson Nash authored
I messed up one of the tests.
-
Ben Hamilton authored
ClangFormat does not correctly handle an Objective-C interface declaration with both lightweight generics and a protocol conformance. This simple example: ``` @interface Foo : Bar <Baz> <Blech> @end ``` means `Foo` extends `Bar` (a lightweight generic class whose type parameter is `Baz`) and also conforms to the protocol `Blech`. ClangFormat should not apply any changes to the above example, but instead it currently formats it quite poorly: ``` @interface Foo : Bar <Baz> <Blech> @end ``` The bug is that `UnwrappedLineParser` assumes an open-angle bracket after a base class name is a protocol list, but it can also be a lightweight generic specification. This diff fixes the bug by factoring out the logic to parse lightweight generics so it can apply both to the declared class as well as the base class. Test Plan: New tests added. Ran tests with: % ninja FormatTests && ./tools/clang/unittests/Format/FormatTests Confirmed tests failed before diff and passed after diff. Reviewed By: sammccall, MyDeveloperDay Differential Revision: https://reviews.llvm.org/D89496 -
Renato Golin authored
It had already been fixed in a different way.
-
Stanislav Mekhanoshin authored
Differential Revision: https://reviews.llvm.org/D89565
-
Renato Golin authored
Broken in e95f9a23 with path issues.
-
Jameson Nash authored
This lets external consumers customize the output, similar to how AssemblyAnnotationWriter lets the caller define callbacks when printing IR. The array of handlers already existed, this just cleans up the code so that it can be exposed publically. Differential Revision: https://reviews.llvm.org/D74158
-
Richard Smith authored
This addresses a regression where pretty much all C++ compilations using -frounding-math now fail, due to rounding being performed in constexpr function definitions in the standard library. This follows the "manifestly constant evaluated" approach described in https://reviews.llvm.org/D87528#2270676 -- evaluations that are required to succeed at compile time are permitted even in regions with dynamic rounding modes, as are (unfortunately) the evaluation of the initializers of local variables of const integral types. Differential Revision: https://reviews.llvm.org/D89360
-
Richard Smith authored
Aggr{...}. We previously missed these cases due to not stepping over the additional AST nodes representing their syntactic form. -
Artem Belevich authored
We can not bitcast pointers across different address spaces, and VectorCombine should be careful when it attempts to find the original source of the loaded data. Differential Revision: https://reviews.llvm.org/D89577
-
Stanislav Mekhanoshin authored
Differential Revision: https://reviews.llvm.org/D89568
-
Nikita Popov authored
This reverts commit 32b72c31. While better than before, this change still introduces a large compile-time regression (>3% on mafft): https://llvm-compile-time-tracker.com/compare.php?from=fbd62fe60fb2281ca33da35dc25ca3c87ec0bb51&to=32b72c3165bf65cca2e8e6197b59eb4c4b60392a&stat=instructions Additionally, the logic here doesn't look quite right to me, I will comment in more detail on the differential revision.
-
Florian Hahn authored
-
Arthur Eubanks authored
Aborts if we hit the max devirtualization iteration. Will be useful for testing that changes to devirtualization don't cause devirtualization to repeat passes more times than necessary. Reviewed By: rnk Differential Revision: https://reviews.llvm.org/D89519
-
Peter Steinfeld authored
None of the other Fortran compilers allow them. Differential Revision: https://reviews.llvm.org/D89581
-
Austin Kerbow authored
If instructions were removed in peephole passes after the hazard recognizer was run it is possible that new hazards could be introduced. Fixes: SWDEV-253090 Reviewed By: rampitec, arsenm Differential Revision: https://reviews.llvm.org/D89077
-
River Riddle authored
This transforms the symbol lookups to O(1) from O(NM), greatly speeding up both passes. For a large MLIR module this shaved seconds off of the compilation time. Differential Revision: https://reviews.llvm.org/D89522
-
River Riddle authored
The initial goal of this interface is to fix the current problems with verifying symbol user operations, but can extend beyond that in the future. The current problems with the verification of symbol uses are: * Extremely inefficient: Most current symbol users perform the symbol lookup using the slow O(N) string compare methods, which can lead to extremely long verification times in large modules. * Invalid/break the constraints of verification pass If the symbol reference is not-flat(and even if it is flat in some cases) a verifier for an operation is not permitted to touch the referenced operation because it may be in the process of being mutated by a different thread within the pass manager. The new SymbolUserOpInterface exposes a method `verifySymbolUses` that will be invoked from the parent symbol table to allow for verifying the constraints of any referenced symbols. This method is passed a `SymbolTableCollection` to allow for O(1) lookups of any necessary symbol operation. Differential Revision: https://reviews.llvm.org/D89512
-
River Riddle authored
This revision contains two optimizations related to symbol checking: * Optimize SymbolOpInterface to only check for a name attribute if the operation is an optional symbol. This removes an otherwise unnecessary attribute lookup from a majority of symbols. * Add a new SymbolTableCollection class to represent a collection of SymbolTables. This allows for perfoming non-flat symbol lookups in O(1) time by caching SymbolTables for symbol table operations. This class is very useful for algorithms that operate on multiple symbol tables, either recursively or not. Differential Revision: https://reviews.llvm.org/D89505
-
River Riddle authored
(Note: This is a reland of D82597) This class allows for defining thread local objects that have a set non-static lifetime. This internals of the cache use a static thread_local map between the various different non-static objects and the desired value type. When a non-static object destructs, it simply nulls out the entry in the static map. This will leave an entry in the map, but erase any of the data for the associated value. The current use cases for this are in the MLIRContext, meaning that the number of items in the static map is ~1-2 which aren't particularly costly enough to warrant the complexity of pruning. If a use case arises that requires pruning of the map, the functionality can be added. This is especially useful in the context of MLIR for implementing thread-local caching of context level objects that would otherwise have very high lock contention. This revision adds a thread local cache in the MLIRContext for attributes, identifiers, and types to reduce some of the locking burden. This led to a speedup of several seconds when compiling a somewhat large mlir module. Differential Revision: https://reviews.llvm.org/D89504
-
Richard Smith authored
-
Fangrui Song authored
-
Adrian Prantl authored
This patch also avoids hardcoding the clang options, which makes it less likely for them to become out-of-date. rdar://problem/63791367+66927829 Differential Revision: https://reviews.llvm.org/D89428
-
Fangrui Song authored
It needs more work: http://45.33.8.238/win/25999/step_11.txt
-
Amara Emerson authored
We'll need legalizer lower() support for the other types to work. Differential Revision: https://reviews.llvm.org/D89159
-
Arthur Eubanks authored
The NPM prints CGSCCs in a different way.
-
LLVM GN Syncbot authored
-
Nico Weber authored
-
Martin Storsjö authored
Use string() for convenience for testing where possible, but keep using native() for move tests where we want to check that no allocations are made, constructing a reference fs::path::string_type instead. Use the right value_type in a few places. Make the synop test check for the right types and for the expected preferred separator. Differential Revision: https://reviews.llvm.org/D89537
-
Benjamin Kramer authored
This should be semantically identical. Also avoids unused variable warnings in Release builds.
-
Scott Linder authored
Another attempt at this, see D59008 for previous attempt. Reviewed By: kzhuravl, t-tye Differential Revision: https://reviews.llvm.org/D89484
-
Teresa Johnson authored
This should fix a couple of debian bot failures: http://lab.llvm.org:8011/#builders/14/builds/380 http://lab.llvm.org:8011/#builders/109/builds/533 They disable building of the sanitizer, which memprof relies on. So disable building of memprof in that case.
-
Amara Emerson authored
Differential Revision: https://reviews.llvm.org/D89075
-
Amara Emerson authored
NEON is pretty limited in it's reduction support. As a first step add some basic rules for the legal types we can select. Differential Revision: https://reviews.llvm.org/D89070
-