Skip to content

Merge tag 'llvmorg-11.0.0-rc3' into rustc/11.0-2020-08-20 #75

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
110 commits
Select commit Hold shift + click to select a range
1708358
lld: link libatomic if needed for Timer
cuviper Aug 17, 2020
0c37a91
[LLD][COFF] Reset outputSections for successive runs
baszalmstra Aug 22, 2020
82e48a5
Disable use of _ExtInt with '__atomic' builtins
jtmott-intel Jul 17, 2020
dcdf2af
[PowerPC] Fix a typo for InstAlias of mfsprg
zhangkangcool Aug 21, 2020
d6d03d0
[ELF][test] Fix some llvm-objdump RUN lines which don't actually test…
MaskRay Aug 20, 2020
c4e2167
[ELF] Keep st_type for symbol assignment
MaskRay Aug 24, 2020
6406b6f
Instantiate Error in Target::GetEntryPointAddress() only when necessary
DimitryAndric Aug 21, 2020
0c001a1
[clang][Driver] Implement AddClangSystemIncludeArgs and HasNativeLLVM…
brad0 Aug 24, 2020
e4f4d48
[clang][Driver] Implement addLibCxxIncludePaths and getCompilerRT for…
brad0 Aug 24, 2020
90c2c51
Revert "Switch to using -debug-info-kind=constructor as default (from…
amykhuang Jul 28, 2020
83338be
[libunwind] Make findUnwindSectionsByPhdr static
rprichard Aug 23, 2020
c160ff1
PR37556: Don't diagnose conflicts between instantiated unqualified
zygoloid Aug 25, 2020
9f4a92a
Reuse OMPIRBuilder `struct ident_t` handling in Clang
jdoerfert May 28, 2020
1274d83
Do not use TBAA in type punning reduction GPU code PR46156
jdoerfert Aug 15, 2020
4557452
OpenMP: Fix for PR46868: Incorrect target map
zmodem Aug 25, 2020
4d16d8d
[DAGCombine] Remove dead node when it is created by getNegatedExpression
Aug 24, 2020
03c8e1c
ReleaseNotes: removal of llgo
zmodem Aug 26, 2020
21d01a6
[ELF] --gdb-index: skip SHF_GROUP .debug_info
MaskRay Aug 13, 2020
ce9f3f1
[Docs] Document --lto-whole-program-visibility
teresajohnson Mar 4, 2020
6f2ba83
[release][SVE] Move notes for SVE ACLE to the release notes of clang.
Aug 26, 2020
46f3aed
Bump -len_control value in fuzzer-custommutator.test (PR47286)
zmodem Aug 26, 2020
04d70cd
[ELF] -r: allow SHT_X86_64_UNWIND to be merged into SHT_PROGBITS
MaskRay Aug 13, 2020
761cd1c
[X86] Correct the implementation of the testFeature macro in getIntel…
topperc Aug 21, 2020
124e825
ReleaseNotes: mention the build preferring python 3
zmodem Aug 26, 2020
29e94dd
[MC][SVE] Fix data operand for instruction alias of `st1d`.
Aug 26, 2020
6325525
Default to -fuse-init-array on OpenBSD.
brad0 Aug 27, 2020
522d80a
[OpenMP] Fix import library installation with MinGW
AndreyChurbanov Aug 26, 2020
2eab0b4
[X86] Update release notes.
topperc Aug 28, 2020
f81c617
ReleaseNotes: add some clang items
MaskRay Aug 28, 2020
5d21aed
Add release note for RecoveryExpr.
hokein Aug 28, 2020
b931e22
[PowerPC] PPCBoolRetToInt: Don't translate Constant's operands
Aug 28, 2020
aa0dcfb
[release][docs] Add -mtls-size= option to the release note
kawashima-fj Aug 28, 2020
ba34139
[CodeGen] Properly propagating Calling Convention information when lo…
pratlucas Aug 27, 2020
dae9fe4
[OpenCL][Docs] 10.x release notes
Aug 28, 2020
bc14250
[Clang][SVE] NFC: Move info about ACLE types into separate function.
sdesmalen-arm Aug 19, 2020
2bde101
[AArch64][SVE] Fix calculation restore point for SVE callee saves.
sdesmalen-arm Aug 19, 2020
f5c02e4
[AArch64][SVE] Add missing debug info for ACLE types.
sdesmalen-arm Aug 27, 2020
e37a52f
[clang] Exclude invalid destructors from lookups.
gislan Aug 26, 2020
5b08e49
[analyzer] NFC: Store the pointee/referenced type for dynamic type tr…
Aug 27, 2020
22bce84
[analyzer] pr47037: CastValueChecker: Support for the new variadic is…
Aug 27, 2020
97ac9e8
[SSP] Restore setting the visibility of __guard_local to hidden for b…
brad0 Aug 27, 2020
2c6a593
ReleaseNotes: add lld/ELF notes
MaskRay Aug 29, 2020
db16ab4
[Flang] Move markdown files(.MD) from documentation/ to docs/
Aug 18, 2020
e6b4ec9
[FLANG] Pick `.md` files when building sphinx documentation.
Sameeranjoshi Aug 24, 2020
d98e4c0
Add a few more release notes for ARM and AArch64.
kbeyls Aug 31, 2020
defbc77
[DAGCombine] Don't delete the node if it has uses immediately
Aug 28, 2020
7166d26
[cmake] Don't build with -O3 -fPIC on Solaris/sparcv9
rorth Aug 28, 2020
981192d
Remove OpenBSD/sparc support
brad0 Aug 30, 2020
3d27de6
[Flang][NFC] Remove license comments from files in docs/ folder.
Aug 31, 2020
2526d8c
[InstSimplify] Protect against more poison in SimplifyWithOpReplaced …
nikic Aug 29, 2020
7569e8c
[PowerPC] Set v1i128 to expand for SETCC to avoid crash
zhangkangcool Jul 29, 2020
f5df584
[flang] Version information in flang/f18
coti Aug 25, 2020
7030fc5
ReleaseNotes: Add RISC-V updates
asb Sep 5, 2020
919f9c2
Eliminate the sizing template parameter N from CoalescingBitVector
DimitryAndric Sep 2, 2020
8399522
[WebAssembly] Fix incorrect assumption of simple value types
tlively Sep 6, 2020
56a7fe3
[GCDAProfiling] Suppress -Wprio-ctor-dtor for GCC>=9 and remove unuse…
MaskRay Sep 2, 2020
6b98995
[PowerPC] Do not legalize vector FDIV without VSX
nemanjai Sep 2, 2020
b8fe222
[PowerPC] Fix broken kill flag after MI peephole
nemanjai Sep 2, 2020
ba6a10d
[MachineCopyPropagation] In isNopCopy, check the destination register…
topperc Sep 1, 2020
0d8feb5
[PowerPC] Provide vec_cmpne on pre-Power9 architectures in altivec.h
nemanjai Sep 5, 2020
96b8fd7
Set InvalidDecl directly when deserializing a Decl
aaronpuchert Sep 5, 2020
7d4d7a7
[compiler-rt] Implement __clear_cache() on OpenBSD/arm
brad0 Sep 6, 2020
9e6b164
[Sparc] Select the UltraSPARC instruction set with the external assem…
brad0 Sep 7, 2020
e7e6335
ReleaseNotes: Add updates in LangRef related with undef/poison
aqjune Sep 8, 2020
6d762fd
[PowerPC] Allow const pointers for load builtins in altivec.h
nemanjai Sep 4, 2020
2ffe0ee
Provide anchor for compiler extensions
Jun 25, 2020
42ee33c
[clang-format] Handle shifts within conditions
mydeveloperday Sep 8, 2020
6f1dbbc
[X86] SSE4_A should only imply SSE3 not SSSE3 in the frontend.
topperc Sep 8, 2020
d1cdc6d
[PowerPC] Set setMaxAtomicSizeInBitsSupported appropriately for 32-bi…
brad0 Sep 9, 2020
8ae3293
Revert D86875 "[Flang][NFC] Remove license comments from files in doc…
SouraVX Sep 10, 2020
9ad89a8
[flang] Convert release notes to markdown
RichBarton-Arm Sep 3, 2020
d024df4
[compiler-rt] [netbsd] Reintroduce __sanitizer_protoent
krytarowski Sep 10, 2020
29d700a
[DebugInfo] Fixing CodeView assert related to lowerBound field of DIS…
alokkrsharma Sep 11, 2020
bff8d98
[clang][aarch64] Fix mangling of bfloat16 neon vectors
c-rhodes Sep 10, 2020
01be54e
[flang] Add new documentation main page
RichBarton-Arm Sep 11, 2020
b3fb40b
[AMDGPU] Fix for folding v2.16 literals.
dfukalov Sep 4, 2020
2d61b5e
Reduce code duplication in simplifySelectWithICmpCond (NFC)
nikic Aug 29, 2020
d720e58
Add test for PR47322 (NFC)
nikic Sep 10, 2020
be31896
Fix incorrect SimplifyWithOpReplaced transform (PR47322)
nikic Sep 10, 2020
88e17a8
[SelectionDAG] Remove unused FP constant in getNegatedExpression
ecnelises Sep 15, 2020
d754173
[clangd] Use string[] for allCommitCharacters
kirillbobyrev Aug 26, 2020
2ec7739
[FastISel] Bail out of selectGetElementPtr for vector GEPs.
topperc Sep 14, 2020
274bb3f
Clang release notes: mention the max_tokens_here pragma
zmodem Sep 15, 2020
1a8e450
[analyzer] Add documentation for alpha.fuchsia.Lock and alpha.core.C1…
Szelethus Aug 25, 2020
e62452b
Revert "Double check that passes correctly set their Modified status"
zmodem Sep 15, 2020
791b7e9
[release][docs] Add 11.0.0. release notes for the Clang Static Analyzer
Szelethus Aug 25, 2020
22dab21
Revert "[SelectionDAG] Remove unused FP constant in getNegatedExpress…
ecnelises Sep 15, 2020
d3f1f58
[Docs] Add/update release notes for D71913 (LTO WPD changes)
teresajohnson Sep 1, 2020
1596c2d
Fix -allow-enabling-analyzer-alpha-checkers always being passed to ru…
Aug 20, 2020
4b23932
[OPENMP][NFC]Release notes for OpenMP in clang (11.x).
zmodem Sep 15, 2020
6e04286
Revert "RegAllocFast: Record internal state based on register units"
zmodem Sep 15, 2020
1585817
ReleaseNotes: PowerPC changes
zmodem Sep 15, 2020
8f2c296
[flang] Fix docs build
RichBarton-Arm Sep 16, 2020
4a26e3b
[clangd] Actually parse Index section of the YAML file.
gislan Sep 15, 2020
339a0e2
llvm release notes: drop in-progress warnings; minor cleanups
zmodem Sep 16, 2020
1a51c11
clang release notes: drop in-progress warnings; minor cleanups
zmodem Sep 16, 2020
19d7a9f
clang-tools-extra release notes: drop in-progress warnings; minor cle…
zmodem Sep 16, 2020
6afefb4
lld release notes: drop in-progress warnings; minor cleanups
zmodem Sep 16, 2020
34c21f8
flang release notes: drop in-progress warnings; minor cleanups
zmodem Sep 16, 2020
952e7c3
libc++ release notes: drop in-progress warnings; minor cleanups
zmodem Sep 16, 2020
f9572ab
openmp release notes: drop in-progress warnings; minor cleanups
zmodem Sep 16, 2020
c2f4de3
polly release notes: drop in-progress warnings; minor cleanups
zmodem Sep 16, 2020
80e2fc1
[X86][ELF] Prefer lowering MC_GlobalAddress operands to .Lfoo$local f…
bd1976bris Aug 13, 2020
4fe4e35
[Flang] Add GettingInvolved documentation page and sidebar.
Sep 13, 2020
b78e5de
[SelectionDAG] Check any use of negation result before removal
ecnelises Sep 17, 2020
410b0dc
[llvm] Add contains(KeyType) -> bool methods to SmallPtrSet
dwblaikie Jul 17, 2020
6250d49
PR47468: Fix findPHICopyInsertPoint, so that copies aren't incorrectl…
jyknight Sep 17, 2020
b513e19
[CodeGen] Fixing inconsistent ABI mangling of vlaues in SelectionDAGB…
pratlucas Sep 17, 2020
8aca41f
[clang][docs] Fix documentation of -O
jrtc27 Sep 17, 2020
d5e220f
Merge tag 'llvmorg-11.0.0-rc3' into rustc/11.0-2020-08-20
cuviper Sep 22, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion clang-tools-extra/clang-tidy/tool/run-clang-tidy.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def get_tidy_invocation(f, clang_tidy_binary, checks, tmpdir, build_path,
extra_arg, extra_arg_before, quiet, config):
"""Gets a command line for clang-tidy."""
start = [clang_tidy_binary]
if allow_enabling_alpha_checkers is not None:
if allow_enabling_alpha_checkers:
start.append('-allow-enabling-analyzer-alpha-checkers')
if header_filter is not None:
start.append('-header-filter=' + header_filter)
Expand Down
5 changes: 4 additions & 1 deletion clang-tools-extra/clangd/ClangdLSPServer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,10 @@ void ClangdLSPServer::onInitialize(const InitializeParams &Params,
{"codeActionProvider", std::move(CodeActionProvider)},
{"completionProvider",
llvm::json::Object{
{"allCommitCharacters", " \t()[]{}<>:;,+-/*%^&#?.=\"'|"},
{"allCommitCharacters",
{" ", "\t", "(", ")", "[", "]", "{", "}", "<",
">", ":", ";", ",", "+", "-", "/", "*", "%",
"^", "&", "#", "?", ".", "=", "\"", "'", "|"}},
{"resolveProvider", false},
// We do extra checks, e.g. that > is part of ->.
{"triggerCharacters", {".", "<", ">", ":", "\"", "/"}},
Expand Down
1 change: 1 addition & 0 deletions clang-tools-extra/clangd/ConfigYAML.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ class Parser {
DictParser Dict("Config", this);
Dict.handle("If", [&](Node &N) { parse(F.If, N); });
Dict.handle("CompileFlags", [&](Node &N) { parse(F.CompileFlags, N); });
Dict.handle("Index", [&](Node &N) { parse(F.Index, N); });
Dict.parse(N);
return !(N.failed() || HadError);
}
Expand Down
30 changes: 29 additions & 1 deletion clang-tools-extra/clangd/test/initialize-params.test
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,35 @@
# CHECK-NEXT: "capabilities": {
# CHECK-NEXT: "codeActionProvider": true,
# CHECK-NEXT: "completionProvider": {
# CHECK-NEXT: "allCommitCharacters": " \t()[]{}<>:;,+-/*%^&#?.=\"'|",
# CHECK-NEXT: "allCommitCharacters": [
# CHECK-NEXT: " ",
# CHECK-NEXT: "\t",
# CHECK-NEXT: "(",
# CHECK-NEXT: ")",
# CHECK-NEXT: "[",
# CHECK-NEXT: "]",
# CHECK-NEXT: "{",
# CHECK-NEXT: "}",
# CHECK-NEXT: "<",
# CHECK-NEXT: ">",
# CHECK-NEXT: ":",
# CHECK-NEXT: ";",
# CHECK-NEXT: ",",
# CHECK-NEXT: "+",
# CHECK-NEXT: "-",
# CHECK-NEXT: "/",
# CHECK-NEXT: "*",
# CHECK-NEXT: "%",
# CHECK-NEXT: "^",
# CHECK-NEXT: "&",
# CHECK-NEXT: "#",
# CHECK-NEXT: "?",
# CHECK-NEXT: ".",
# CHECK-NEXT: "=",
# CHECK-NEXT: "\"",
# CHECK-NEXT: "'",
# CHECK-NEXT: "|"
# CHECK-NEXT: ],
# CHECK-NEXT: "resolveProvider": false,
# CHECK-NEXT: "triggerCharacters": [
# CHECK-NEXT: ".",
Expand Down
17 changes: 11 additions & 6 deletions clang-tools-extra/clangd/unittests/ConfigYAMLTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,16 +47,21 @@ CompileFlags: { Add: [foo, bar] }
Add: |
b
az
---
Index:
Background: Skip
)yaml";
auto Results = Fragment::parseYAML(YAML, "config.yaml", Diags.callback());
EXPECT_THAT(Diags.Diagnostics, IsEmpty());
ASSERT_EQ(Results.size(), 2u);
EXPECT_FALSE(Results.front().If.HasUnrecognizedCondition);
EXPECT_THAT(Results.front().If.PathMatch, ElementsAre(Val("abc")));
EXPECT_THAT(Results.front().CompileFlags.Add,
ElementsAre(Val("foo"), Val("bar")));
ASSERT_EQ(Results.size(), 3u);
EXPECT_FALSE(Results[0].If.HasUnrecognizedCondition);
EXPECT_THAT(Results[0].If.PathMatch, ElementsAre(Val("abc")));
EXPECT_THAT(Results[0].CompileFlags.Add, ElementsAre(Val("foo"), Val("bar")));

EXPECT_THAT(Results[1].CompileFlags.Add, ElementsAre(Val("b\naz\n")));

EXPECT_THAT(Results.back().CompileFlags.Add, ElementsAre(Val("b\naz\n")));
ASSERT_TRUE(Results[2].Index.Background);
EXPECT_EQ("Skip", *Results[2].Index.Background.getValue());
}

TEST(ParseYAML, Locations) {
Expand Down
60 changes: 3 additions & 57 deletions clang-tools-extra/docs/ReleaseNotes.rst
Original file line number Diff line number Diff line change
@@ -1,19 +1,13 @@
====================================================
Extra Clang Tools 11.0.0 (In-Progress) Release Notes
====================================================
======================================
Extra Clang Tools 11.0.0 Release Notes
======================================

.. contents::
:local:
:depth: 3

Written by the `LLVM Team <https://llvm.org/>`_

.. warning::

These are in-progress notes for the upcoming Extra Clang Tools 11 release.
Release notes for previous releases can be found on
`the Download Page <https://releases.llvm.org/download.html>`_.

Introduction
============

Expand All @@ -27,23 +21,13 @@ For more information about Clang or LLVM, including information about
the latest release, please see the `Clang Web Site <https://clang.llvm.org>`_ or
the `LLVM Web Site <https://llvm.org>`_.

Note that if you are reading this file from a Git checkout or the
main Clang web page, this document applies to the *next* release, not
the current one. To see the release notes for a specific release, please
see the `releases page <https://llvm.org/releases/>`_.

What's New in Extra Clang Tools 11.0.0?
=======================================

Some of the major new features and improvements to Extra Clang Tools are listed
here. Generic improvements to Extra Clang Tools as a whole or to its underlying
infrastructure are described first, followed by tool-specific sections.

Major New Features
------------------

...

Improvements to clangd
----------------------

Expand Down Expand Up @@ -238,21 +222,6 @@ Miscellaneous

- Too many stability and correctness fixes to mention.

Improvements to clang-doc
-------------------------

The improvements are...

Improvements to clang-query
---------------------------

The improvements are...

Improvements to clang-rename
----------------------------

The improvements are...

Improvements to clang-tidy
--------------------------

Expand Down Expand Up @@ -439,26 +408,3 @@ Other improvements

- For `run-clang-tidy.py` add option to use alpha checkers from
`clang-analyzer`.

Improvements to include-fixer
-----------------------------

The improvements are...

Improvements to clang-include-fixer
-----------------------------------

The improvements are...

Improvements to modularize
--------------------------

The improvements are...

Improvements to pp-trace
------------------------

The improvements are...

Clang-tidy visual studio plugin
-------------------------------
2 changes: 1 addition & 1 deletion clang/docs/CommandGuide/clang.rst
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ Code Generation Options
:option:`-Og` Like :option:`-O1`. In future versions, this option might
disable different optimizations in order to improve debuggability.

:option:`-O` Equivalent to :option:`-O2`.
:option:`-O` Equivalent to :option:`-O1`.

:option:`-O4` and higher

Expand Down
10 changes: 10 additions & 0 deletions clang/docs/LTOVisibility.rst
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,16 @@ other classes receive hidden LTO visibility. Classes with internal linkage
(e.g. classes declared in unnamed namespaces) also receive hidden LTO
visibility.

During the LTO link, all classes with public LTO visibility will be refined
to hidden LTO visibility when the ``--lto-whole-program-visibility`` lld linker
option is applied (``-plugin-opt=whole-program-visibility`` for gold). This flag
can be used to defer specifying whether classes have hidden LTO visibility until
link time, to allow bitcode objects to be shared by different LTO links.
Due to an implementation limitation, symbols associated with classes with hidden
LTO visibility may still be exported from the binary when using this flag. It is
unsafe to refer to these symbols, and their visibility may be relaxed to hidden
in a future compiler release.

A class defined in a translation unit built without LTO receives public
LTO visibility regardless of its object file visibility, linkage or other
attributes.
Expand Down
Loading