- Apr 07, 2020
-
-
Kadir Cetinkaya authored
-
Nico Weber authored
No intended behavior change.
-
LLVM GN Syncbot authored
-
Kadir Cetinkaya authored
Summary: This is another step for out-of-order preamble builds. To keep the diagnostic behavior same, we only build ASTs either with "usable" preambles, the ones that are fully applicable to a given ParseInput, or after building a new preamble. Which is the same behaviour as what we do today. ASTs built in the latter is called golden ASTs. Reviewers: sammccall Subscribers: ilya-biryukov, javed.absar, MaskRay, jkorous, arphaman, usaxena95, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D76725
-
Kadir Cetinkaya authored
Summary: TUStatus api had a single thread in mind. This introudces a section action to represent state of the preamble thread. In the file status extension, we keep old behavior almost the same. We only prepend current task with a `parsing includes` if preamble thread is working. We omit the idle thread in the output unless both threads are idle. Reviewers: sammccall Subscribers: ilya-biryukov, javed.absar, MaskRay, jkorous, arphaman, usaxena95, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D76304
-
Kadir Cetinkaya authored
Summary: First step to enable deferred preamble builds. Not intending to land it alone, will have follow-ups that will implement full deferred build functionality and will land after all of them are ready. Reviewers: sammccall Subscribers: ilya-biryukov, javed.absar, MaskRay, jkorous, arphaman, usaxena95, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D76125
-
Nathan James authored
-
Nathan James authored
Summary: This adds support for giving hints when using dynamic matchers with enum args. Take this query, I couldn't figure out why the matcher wasn't working: (Turns out it needed to be "IntegralToBoolean", but thats another bug itself) ``` clang-query> match implicitCastExpr(hasCastKind("CK_IntegralToBoolean")) 1:1: Error parsing argument 1 for matcher implicitCastExpr. 1:18: Error building matcher hasCastKind. 1:30: Incorrect type for arg 1. (Expected = string) != (Actual = String) ``` With this patch the new behaviour looks like this: ``` clang-query> match implicitCastExpr(hasCastKind("CK_IntegralToBoolean")) 1:1: Error parsing argument 1 for matcher implicitCastExpr. 1:18: Error building matcher hasCastKind. 1:30: Unknown value 'CK_IntegralToBoolean' for arg 1; did you mean 'IntegralToBoolean' ``` There are no test cases for this yet as there simply isn't any infrastructure for testing errors reported when parsing args that I can see. Reviewers: klimek, jdoerfert, aaron.ballman Reviewed By: aaron.ballman Subscribers: aaron.ballman, dexonsmith, mgorny, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D77499 -
Francesco Petrogalli authored
Reviewers: sdesmalen, efriedma Reviewed By: efriedma Subscribers: hiraditya, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D77317
-
Heejin Ahn authored
Summary: This handles exports of events, which was missing. Reviewers: sbc100 Subscribers: dschuff, jgravelle-google, sunfish, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D77566
-
Reid Kleckner authored
DataTypes.h is meant to wrap the integer type and limits headers, which have some unfortunate variance. The FP math functions declared by math.h are not unnecessary. math.h took a noticeable amount of time to parse (~40ms), but that could be startup costs. Anyway, we don't need to include it, so skipping it can't hurt. This has been present since the initial CMake build was added in 2008.
-
Masoud Ataei jaliseh authored
This pass is created in d6de5f12 and tested for new and legacy pass manager but never added to new pass manager pipeline. I am adding it to new pass manager pipeline. This pass is get used in Vector Function Database (VFDatabase) and without this pass in new pass manager pipeline, none of the vector libraries are work ing with new pass manager. Related passes: 66c120f0 https://reviews.llvm.org/D74944 Differential revision: https://reviews.llvm.org/D75354
-
River Riddle authored
Summary: This revision updates the value numbering when printing to number from the next parent operation that is isolated from above. This is the highest level to number from that still ensures thread-safety. This revision also changes the behavior of Operator::operator<< to use local scope to avoid thread races when numbering operations. Differential Revision: https://reviews.llvm.org/D77525
-
Kadir Cetinkaya authored
Summary: Clang performs expression based completion whenever it can't figure out base of a member reference expression. It might be quite confusing in cases like incomplete types. This patch disables that fallback. Unfortunately `ParsePostfixExpressionSuffix` is quite tangled and this patch adds more to it. Reviewers: sammccall Subscribers: cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D77570
-
Johannes Doerfert authored
Summary: ASTMatchers is used in various places and it now exposes the LLVMFrontendOpenMP library to its users without them needing to depend on it explicitly. Reviewers: lebedev.ri Subscribers: mgorny, yaxunl, bollu, guansong, martong, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D77574
-
Craig Topper authored
The previous code used the type of the first field for the VT passed to getNode for every field. I've based the implementation here off what is done in visitSelect as it removes the need to special case aggregates. Differential Revision: https://reviews.llvm.org/D77093
-
Yaxun (Sam) Liu authored
Differential Revision: https://reviews.llvm.org/D77028
-
Sid Manning authored
When the target is hexagon-unknown-linux-musl select lld as the default linker. Differential Revision: https://reviews.llvm.org/D77498
-
Louis Dionne authored
The LitConfig is shared across the whole test suite. However, since enabling recursive expansion can be a breaking change for some test suites, it's important to confine the setting to test suites that enable it explicitly. Note that other issues were raised with the way recursiveExpansionLimit operates. However, this commit simply moves the setting to the right place -- the mechanism by which it works can be improved independently. Differential Revision: https://reviews.llvm.org/D77415
-
LLVM GN Syncbot authored
-
- Apr 06, 2020
-
-
Konstantin Pyzhov authored
-
- Apr 07, 2020
-
-
Paula Toth authored
Summary: This check makes sure all llvm-libc implementations falls within the `__llvm_libc` namespace. Reviewers: alexfh, aaron.ballman, hokein, njames93 Reviewed By: aaron.ballman Subscribers: Eugene.Zelenko, libc-commits, mgorny, xazax.hun, MaskRay, cfe-commits, sivachandra Tags: #clang-tools-extra, #clang Differential Revision: https://reviews.llvm.org/D76818
-
Kirill Naumov authored
The patch introduces the system to distinctively store the information needed for the Control Flow Graph as well as the instrumentary needed for the follow-up changes: BlockFrequencyInfo and BranchProbabilityInfo. The patch is a part of sequence of three patches, related to graphs Heat Coloring. Reviewers: rcorcs, apilipenko, davidxl, sfertile, fedor.sergeev, eraman, bollu Differential Revision: https://reviews.llvm.org/D76820
-
Reid Kleckner authored
Saves ~400 related LLVM ADT. llvm/ADT/Error.h takes 90ms to parse. $ diff -u <(sort thedeps-before.txt) <(sort thedeps-after.txt) \ | grep '^[-+] ' | sort | uniq -c | sort -nr 403 - /usr/local/google/home/rnk/llvm-project/llvm/include/llvm/Support/Error.h 403 - /usr/local/google/home/rnk/llvm-project/llvm/include/llvm-c/Error.h 397 - /usr/local/google/home/rnk/llvm-project/llvm/include/llvm/Support/Format.h 397 - /usr/local/google/home/rnk/llvm-project/llvm/include/llvm/Support/Debug.h 377 - /usr/local/google/home/rnk/llvm-project/llvm/include/llvm/ADT/StringExtras.h 158 - /usr/local/google/home/rnk/llvm-project/llvm/include/llvm-c/ExternC.h 138 - /usr/local/google/home/rnk/llvm-project/llvm/include/llvm/Support/ErrorOr.h 13 - /usr/local/google/home/rnk/llvm-project/llvm/include/llvm/Support/raw_ostream.h 13 - /usr/local/google/home/rnk/llvm-project/llvm/include/llvm/ADT/SmallString.h 5 - /usr/local/google/home/rnk/llvm-project/llvm/include/llvm/ADT/Twine.h -
Jean-Michel Gorius authored
-
Louis Dionne authored
The new libc++ test format doesn't automatically do this (cause it would be the wrong place to do it).
-
Artem Dergachev authored
Constructors and delete operators cannot return a boolean value. Therefore they cannot possibly follow the NS/CFError-related coding conventions. Patch by Valeriy Savchenko! Differential Revision: https://reviews.llvm.org/D77551
-
Artem Dergachev authored
Detect script locations in a more straightforward way: we don't need to search for them because we know exactly where they are anyway. Fix a file path escaping issue in exploded-graph-rewriter with Windows backslashes in the path. 'REQUIRES: shell' remains in scan-build tests for now, so that to observe the buildbot reaction on removing it in a cleaner experiment. Patch by Denys Petrov! Differential Revision: https://reviews.llvm.org/D76768
-
Reid Kleckner authored
Saves only 36 includes of ASTContext.h and related headers. There are two deps on ASTContext.h: - C++ method overrides iterator types (TinyPtrVector) - getting LangOptions For #1, duplicate the iterator type, which is TinyPtrVector<>::const_iterator. For #2, add an out-of-line accessor to get the language options. Getting the ASTContext from a Decl is already an out of line method that loops over the parent DeclContexts, so if it is ever performance critical, the proper fix is to pass the context (or LangOpts) into the predicate in question. Other changes are just header fixups.
-
Yaxun (Sam) Liu authored
Move function emitDeferredDiags from Sema to DeferredDiagsEmitter since it is only used by DeferredDiagsEmitter. Also skip visited functions to avoid exponential compile time. Differential Revision: https://reviews.llvm.org/D77028
-
- Apr 06, 2020
-
-
Konstantin Pyzhov authored
Reviewers: sameerds, dstuttard Differential Revision: https://reviews.llvm.org/D77228
-
- Apr 07, 2020
-
-
Matt Morehouse authored
-
Matt Morehouse authored
This reverts commit 68d73dfa.
-
Matt Morehouse authored
This reverts commit 98bb7fdb.
-
Fangrui Song authored
So that constant expressions like the following are permitted: and w0, w0, #~(0xfe<<24) and w1, w1, #~(0xff<<24) The behavior matches GNU as (opcodes/aarch64-opc.c:aarch64_logical_immediate_p). Reviewed By: sdesmalen Differential Revision: https://reviews.llvm.org/D75885
-
Florian Hahn authored
This should fix http://lab.llvm.org:8011/builders/sanitizer-x86_64-linux-bootstrap-msan/builds/18569
-
Amy Huang authored
Summary: In constructor type homing mode sometimes complete debug info for constexpr types was missing, because there was not a constructor emitted. This change makes constructor type homing ignore constexpr types. Reviewers: rnk, dblaikie Subscribers: aprantl, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D77432
-
Fangrui Song authored
Fixes https://bugs.llvm.org/show_bug.cgi?id=45391 The LTO code generator happens after version script scanning and may create references which will fetch some lazy symbols. Currently a version script does not assign VER_NDX_LOCAL to lazy symbols and such symbols will be made global after they are fetched. Change findByVersion and findAllByVersion to work on lazy symbols. For unfetched lazy symbols, we should keep them non-local (D35263). Check isDefined() in computeBinding() as a compensation. This patch fixes a companion bug that --dynamic-list does not export libcall fetched symbols. Reviewed By: grimar Differential Revision: https://reviews.llvm.org/D77280
-
Matt Morehouse authored
-
Matt Morehouse authored
-