- Nov 02, 2022
-
-
Jan Svoboda authored
In D106876, we stopped serializing module map files that didn't affect compilation of the current module. However, since each `SourceLocation` is simply an offset into `SourceManager`'s global buffer of concatenated input files in, these need to be adjusted during serialization. Otherwise, they can incorrectly point after the buffer or into subsequent input file. This patch starts adjusting `SourceLocation`s, `FileID`s and other `SourceManager` offsets in `ASTWriter`. Reviewed By: dexonsmith Differential Revision: https://reviews.llvm.org/D136624
-
Jan Svoboda authored
This patch delays some `ASTWriter` logic until after we've checked whether the source location entry we're serializing as an affecting file or not. Depends on D137214. Reviewed By: dexonsmith Differential Revision: https://reviews.llvm.org/D137216
-
Konstantin Varlamov authored
This makes the tests more minimal, and in particular it avoids relying on a complete `<cstdlib>`, which may not be available on all platforms. Differential Revision: https://reviews.llvm.org/D137188
-
Jan Svoboda authored
This is a prep-patch for D136624 which allows querying `SourceManager` with raw offsets instead of `SourceLocation`s. Reviewed By: dexonsmith Differential Revision: https://reviews.llvm.org/D137215
-
Jan Svoboda authored
This patch is a NFC prep for D136624, where we start adjusting offsets into `SourceManager`. Depends on D137213. Reviewed By: dexonsmith Differential Revision: https://reviews.llvm.org/D137214
-
Jan Svoboda authored
For pragma diagnostic mappings, we always write/read `SourceLocation` with offset 0. This is equivalent to just writing a `FileID`, which is exactly what this patch starts doing. Depends on D137211. Reviewed By: dexonsmith Differential Revision: https://reviews.llvm.org/D137213
-
Jan Svoboda authored
This patch adds new functions for writing/reading `FileID`s and uses them to replace some ad-hoc code. Reviewed By: dexonsmith Differential Revision: https://reviews.llvm.org/D137211
-
Matt Arsenault authored
Some work will be needed to comply with these rules for non-integral pointers.
-
Vitaly Buka authored
We need to land asan_allocator.h patches first. This reverts commit 75a8cdbc.
-
bixia1 authored
Reviewed By: aartbik Differential Revision: https://reviews.llvm.org/D137210
-
Jan Svoboda authored
-
Hongtao Yu authored
As titled. The change should have minimal impact since the targets of branch samples are mostly covered by range samples. Reviewed By: wenlei, wlei Differential Revision: https://reviews.llvm.org/D137203
-
Weverything authored
The empty key value for APInt was colliding with a valid zero-width APInt. Change the internal value of empty key and tombstone values for APInt to avoid this collision. Fixes: https://github.com/llvm/llvm-project/issues/58013 Differential Revision: https://reviews.llvm.org/D135741
-
Siva Chandra Reddy authored
-
Siva Chandra Reddy authored
-
Amara Emerson authored
This does some trivial cross-regclass folding, where we can either do some extra constraining to eliminate the copy or modify uses to use a smaller regclass. There are minor code size improvements on average. Program size.__text before after diff tramp3d-v4/tramp3d-v4 366000.00 366012.00 0.0% mafft/pairlocalalign 248196.00 248188.00 -0.0% 7zip/7zip-benchmark 568612.00 568592.00 -0.0% kimwitu++/kc 434704.00 434676.00 -0.0% Bullet/bullet 456128.00 456096.00 -0.0% sqlite3/sqlite3 284136.00 284100.00 -0.0% ClamAV/clamscan 381492.00 381396.00 -0.0% SPASS/SPASS 412052.00 411944.00 -0.0% lencod/lencod 428060.00 427912.00 -0.0% consumer-typeset/consumer-typeset 413148.00 411116.00 -0.5% Geomean difference -0.1% Differential Revision: https://reviews.llvm.org/D136793 -
Siva Chandra Reddy authored
Reviewed By: michaelrj Differential Revision: https://reviews.llvm.org/D137147
-
bixia1 authored
Reviewed By: aartbik Differential Revision: https://reviews.llvm.org/D136301
-
serge-sans-paille authored
Some distribution install libraries under lib64. LLVM supports this through LLVM_LIBDIR_SUFFIX, have bolt do the same. Differential Revision: https://reviews.llvm.org/D137039
-
Eric Kunze authored
The implementation_attrs attr allows passing of backend specific attributes to TOSA custom ops. Also adds a config option to avoid namespace collisions on the identifier. Reviewed By: rsuderman Differential Revision: https://reviews.llvm.org/D137133
-
Aaron Puchert authored
Some places were using unwrap<T>(x) = cast<T>(unwrap(x)), even though the unwrapped value already had type T. Removing the template argument makes it clear that no cast is intended. Other places were using cast<T>(unwrap(x)), we replace that with the shorthand unwrap<T>(x) for consistency.
-
bipmis authored
-
Nicolas Vasilache authored
This is on a path to deprecation. Context: https://discourse.llvm.org/t/psa-retire-tileandfuselinalgops-method/63850 As the interface-based transformation is more generic, some additional folding of AffineMin/MaxOp and some extra canonicalizations are needed. This can be further evolved. Differential Revision: https://reviews.llvm.org/D137195
-
Paul Robinson authored
-
Felipe de Azevedo Piovezan authored
The packet was introduced in 106d0286. Differential Revision: https://reviews.llvm.org/D136958
-
Aaron Ballman authored
-
Katherine Rasmussen authored
Add the atomic subroutine, atomic_or, to the list of intrinsic subroutines, add its last dummy argument to a check for a coindexed-object, and update test. Reviewed By: PeteSteinfeld Differential Revision: https://reviews.llvm.org/D137097
-
Paul Robinson authored
These weren't running anywhere because of bad specifications. One test has bit-rotted and had to be XFAILed, the rest are okay. Differential Revision: https://reviews.llvm.org/D136612
-
Kirill Stoimenov authored
This change will switch SizeClassAllocator32 to SizeClassAllocator64 on ARM. This might potentially affect ARM platforms with 39-bit address space. This addresses [[ https://github.com/google/sanitizers/issues/703 | issues/703 ]], but unlike [[ https://reviews.llvm.org/D60243 | D60243 ]] it defaults to 64 bit allocator. Reviewed By: vitalybuka, MaskRay Differential Revision: https://reviews.llvm.org/D137136
-
Sanjay Patel authored
This should prevent crashing for the example in issue #58552 by not matching a select-of-vectors-with-scalar-condition. A similar change is likely needed for the related fold to properly fix that kind of bug. The test that shows a regression seems unlikely to occur in real code. This also picks up an optimization in the case where a real (bitwise) logic op is used. We could already convert some similar select ops to real logic via impliesPoison(), so we don't see more diffs on commuted tests. Using commutative matchers (when safe) might also handle one of the TODO tests.
-
Sanjay Patel authored
-
Valentin Clement authored
This patch forces pointer and allocatable polymorphic entities to be tracked as descriptor. It also enables the pointer assignment between polymorphic entities. Pointer association between a non-polymorphic pointer and a polyrmophic target might require some more work as per 10.2.2.3 point 1. Reviewed By: PeteSteinfeld Differential Revision: https://reviews.llvm.org/D137150
-
Philip Reames authored
It was pointed out the verifier rejects inttoptr and ptrtoint casts with inputs and outputs whose scalability doesn't match. As such, checking the input type separately from the type of the cast itself is redundant.
-
Arthur Eubanks authored
In https://reviews.llvm.org/D80833, there were concerns about determinism emitting the commandline into CodeView. We're actually hitting these when running clang-cl on Linux (cross compiling) versus on Windows (e.g. -fmessage-length being inferred on terminals). Add -g[no-]codeview-command-line to enable/disable this feature. It's still on by default to preserve the current state of clang. Reviewed By: thakis, rnk Differential Revision: https://reviews.llvm.org/D136474
-
Arthur Eubanks authored
Varargs and inalloca have a weird interaction where varargs are actually passed via the inalloca alloca. Removing inalloca breaks the varargs because they're still not passed as separate arguments. Fixes #58718 Reviewed By: rnk Differential Revision: https://reviews.llvm.org/D137182
-
Mark de Wever authored
Makes sure headers having a xxx_result as return type export the proper header. Without exporting these modularized headers are not self contained. This is related to D136045. Reviewed By: #libc, ldionne Differential Revision: https://reviews.llvm.org/D136711
-
Mark de Wever authored
Claim some tasks for formatting and mark some parts as complete, which was missed in the commits completing the task. Reviewed By: #libc, ldionne Differential Revision: https://reviews.llvm.org/D137014
-
Mark de Wever authored
Fixes https://llvm.org/PR58315 Reviewed By: #libc, ldionne Differential Revision: https://reviews.llvm.org/D137017
-
Mark de Wever authored
No code changes, but only increased the range in the tests. Completes: - LWG3273. Specify weekday_indexed to range of [0, 7] Reviewed By: #libc, ldionne Differential Revision: https://reviews.llvm.org/D137015
-
Erich Keane authored
Based on discussion on the core reflector, it was made clear that a concept that depends on itself should be a hard error, not a constraint failure. This patch implements a stack of constraint-checks-in-progress to make sure we quit, rather than hitting stack-exhaustion. Note that we DO need to be careful to make sure we still check constraints properly that are caused by a previous constraint, but not derived from (such as when a check causes us to check special member function generation), so we cannot use the existing logic to see if this is being instantiated. This fixes https://github.com/llvm/llvm-project/issues/44304 and https://github.com/llvm/llvm-project/issues/50891. Differential Revision: https://reviews.llvm.org/D136975
-