SuccessChanges

Changes from Git (git http://labmaster3.local/git/llvm-project.git)

Summary

  1. DebugInfo: Use separate macinfo contributions for each CU (details)
  2. Reland "[clang] Report sanitizer blacklist as a dependency in cc1" (details)
  3. Reland "[clang] Report sanitizer blacklist as a dependency in cc1" (details)
  4. [clang] Fix -fsanitize-system-blacklist processing in cc1 (details)
  5. [llvm-xray] Add basic test for AArch64 support (details)
  6. Basic: fix FileManager invalidation issue for file redirect (details)
  7. Add a testcase for .dSYM path remapping dictionaries. (details)
  8. Don't attempt to upgrade debug-info-tests to Python3. (details)
  9. [TargetLowering][DAGCombine][MSP430] Shift Amount Threshold in (details)
  10. Revert "Reapply "Fix crash on switch conditions of non-integer types in (details)
  11. clang-format: Add to the release notes the new --dry-run/-n option (details)
  12. Revert "Reland "[clang] Report sanitizer blacklist as a dependency in (details)
  13. Reland "[compiler-rt] Fix tests after 03b84e4f6d0" (details)
  14. clang-format: refresh the list of options (details)
  15. [www] More HTTPS and outdated link fixes. (details)
  16. [MC] Emit unused undefined symbol even if its binding is not set (details)
  17. [clangd] NFC, reuse the source manager variable in the RawStringLiteral (details)
  18. Debug Info: Nest Objective-C property function decls inside their (details)
  19. NVPTX: Don't insert an extra empty line at the end of the last section. (details)
  20. llvm-ranlib/nm: Don't print usage message except for usage errors (details)
  21. DebugInfo: Do not create a debug_macinfo section if no CUs have (details)
  22. DebugInfo: Remove redundant conditionals/checks from macro info emission (details)
  23. Test case to verify that lldb falls back to p/P if g is unsupported and (details)
  24. ThinLTO : Import always_inline functions irrespective of the threshold (details)
  25. [clang][IFS] Adds support for more decl types in clang interface stubs. (details)
  26. [clang][IFS][test] Fixing buildbot test fails for clang-ifs. (details)
  27. Revert "Add a testcase for .dSYM path remapping dictionaries." (details)
  28. Temporarily change the default for use-g-packet-for-reading to false, (details)
  29. [analyzer] Nullability: Don't infer nullable when passing as nullable (details)
  30. [analyzer] Fix skipping the call during inlined defensive check (details)
  31. [Diagnostics] Fixed crash with non pointer type (PR43950) (details)
Commit 39c308f6b8f06710b2b98d0b126c9175e4bafc20 by dblaikie
DebugInfo: Use separate macinfo contributions for each CU
The macinfo support was broken for LTO situations, by terminating
macinfo lists only once - multiple macinfo contributions were correctly
labeled, but they all continued/flowed into later contributions until
only one terminator appeared at the end of the section.
Correctly terminate each contribution & fix the parsing to handle this
situation too. The parsing fix is also necessary for dumping linked
binaries - the previous code would stop at the end of the first
contribution - missing all later contributions in a linked binary.
It'd be nice to improve the dumping to print the offsets of each
contribution so it'd be easier to know which CU AT_macro_info refers to
which macinfo contribution.
The file was modifiedllvm/include/llvm/DebugInfo/DWARF/DWARFDebugMacro.h
The file was modifiedllvm/lib/DebugInfo/DWARF/DWARFDebugMacro.cpp
The file was modifiedllvm/test/DebugInfo/NVPTX/debug-info.ll
The file was modifiedllvm/test/DebugInfo/X86/empty_macinfo.ll
The file was modifiedllvm/test/DebugInfo/NVPTX/debug-file-loc.ll
The file was modifiedllvm/test/DebugInfo/NVPTX/cu-range-hole.ll
The file was modifiedllvm/test/MC/WebAssembly/debug-info.ll
The file was modifiedllvm/test/DebugInfo/NVPTX/debug-addr-class.ll
The file was modifiedllvm/test/DebugInfo/X86/debug-macro.ll
The file was modifiedllvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
The file was modifiedllvm/test/DebugInfo/NVPTX/debug-loc-offset.ll
Commit 6d28588cc0f223cc06fc103493b1f16cb7e579f8 by Jan Korous
Reland "[clang] Report sanitizer blacklist as a dependency in cc1"
This reverts commit 9b8413ac6e56e7a6e0ba884773d13bcf9414bd43.
The file was modifiedclang/include/clang/Driver/Options.td
The file was modifiedclang/test/Driver/fsanitize-blacklist.c
The file was modifiedclang/include/clang/Driver/SanitizerArgs.h
The file was modifiedclang/lib/Frontend/CompilerInvocation.cpp
The file was modifiedclang/lib/Driver/SanitizerArgs.cpp
The file was modifiedclang/test/Frontend/dependency-gen.c
Commit cae4a28864f4e8a55920e2b94e2cd43617902dec by Jan Korous
Reland "[clang] Report sanitizer blacklist as a dependency in cc1"
This reverts commit 3182027282c59c51d5080d83365917fccd695854.
The file was modifiedclang/test/Frontend/dependency-gen.c
The file was modifiedclang/include/clang/Driver/SanitizerArgs.h
The file was modifiedclang/include/clang/Driver/Options.td
The file was modifiedclang/lib/Driver/SanitizerArgs.cpp
The file was modifiedclang/test/Driver/fsanitize-blacklist.c
The file was modifiedclang/lib/Frontend/CompilerInvocation.cpp
Commit 555c6be041d468cfc2baaf69a6ae5d1cf889dc9e by Jan Korous
[clang] Fix -fsanitize-system-blacklist processing in cc1
The file was modifiedclang/lib/Frontend/CompilerInvocation.cpp
Commit 56cd447eec8eec71a6e61d2dd142bf5dadfc154a by smeenai
[llvm-xray] Add basic test for AArch64 support
Based on a test provided by Ian Levesque <ianlevesque@fb.com>.
The file was addedllvm/test/tools/llvm-xray/AArch64/extract-instrmap-aarch64.test
The file was addedllvm/test/tools/llvm-xray/AArch64/Inputs/elf64-pic.yaml
Commit b314414570c0db6cd3a2712d7b26942fe38278db by Saleem Abdulrasool
Basic: fix FileManager invalidation issue for file redirect
Insertion into SeenFileEntries can invalidate iterators, we need to do
another lookup on the re-intern path.
The file was modifiedclang/lib/Basic/FileManager.cpp
Commit 2bbc4fdd8fa0ed58d610ab6260cb664c7cfef204 by Adrian Prantl
Add a testcase for .dSYM path remapping dictionaries.
rdar://problem/56924558
The file was addedlldb/packages/Python/lldbsuite/test/macosx/DBGSourcePathRemapping/Makefile
The file was addedlldb/packages/Python/lldbsuite/test/macosx/DBGSourcePathRemapping/TestDSYMSourcePathRemapping.py
The file was addedlldb/packages/Python/lldbsuite/test/macosx/DBGSourcePathRemapping/Inputs/main.c
Commit d0416b91f0390f6e69dacf3d5d076531221e0767 by Adrian Prantl
Don't attempt to upgrade debug-info-tests to Python3.
There was CMake code that would attempt to detect Python 3 even if LLVM
was configured with Python 2, but it messed with the environment for the
other LLVM projects. This commit removes this functionality and just
lkeaves a hard error if Python < 3 is detected and debuginfo-tests are
required.
The file was modifieddebuginfo-tests/CMakeLists.txt
Commit fe0763d28a572f72007637c7bd097bc19cbb58fc by joan.lluch
[TargetLowering][DAGCombine][MSP430] Shift Amount Threshold in
DAGCombine (3) (baseline tests)
Summary: This is baseline tests for D69326
Incorporates a command line flag for the MSP430 and adds a test cases to
help showing the effects of applying D69326
More details and motivation for this patch in D69326
Reviewers: spatel, asl, lebedev.ri
Reviewed By: spatel, asl
Subscribers: hiraditya, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D69975
The file was modifiedllvm/lib/Target/MSP430/MSP430ISelLowering.cpp
The file was addedllvm/test/CodeGen/MSP430/shift-amount-threshold-b.ll
The file was modifiedllvm/lib/Target/MSP430/MSP430ISelLowering.h
Commit d0b3e73175041306474bfb1914ef565e042fb50a by melanie.blower
Revert "Reapply "Fix crash on switch conditions of non-integer types in
templates""
This reverts commit 759948467ea3181615d44d80f74ffeb260180fd0. There were
build bot failures in clang-tidy
The file was modifiedclang-tools-extra/test/clang-tidy/checkers/bugprone-string-integer-assignment.cpp
The file was modifiedclang/lib/Sema/SemaChecking.cpp
The file was modifiedclang/lib/AST/Expr.cpp
The file was modifiedclang/test/SemaTemplate/enum-argument.cpp
The file was modifiedclang/test/SemaCXX/constant-expression-cxx2a.cpp
The file was modifiedclang/test/SemaTemplate/member-access-expr.cpp
The file was removedclang/test/SemaTemplate/non-integral-switch-cond.cpp
The file was modifiedclang/test/SemaTemplate/dependent-names.cpp
The file was modifiedclang-tools-extra/test/clang-tidy/checkers/misc-unused-parameters.cpp
Commit 4c44fd3de374fdce383ca1b0313b2418d1f1d370 by sylvestre
clang-format: Add to the release notes the new --dry-run/-n option
The file was modifiedclang/docs/ReleaseNotes.rst
Commit d52cff88367df4d6bc57949d5e8a61aec0c301e8 by Jan Korous
Revert "Reland "[clang] Report sanitizer blacklist as a dependency in
cc1""
This reverts commit cae4a28864f4e8a55920e2b94e2cd43617902dec.
The file was modifiedclang/include/clang/Driver/SanitizerArgs.h
The file was modifiedclang/include/clang/Driver/Options.td
The file was modifiedclang/lib/Frontend/CompilerInvocation.cpp
The file was modifiedclang/test/Frontend/dependency-gen.c
The file was modifiedclang/lib/Driver/SanitizerArgs.cpp
The file was modifiedclang/test/Driver/fsanitize-blacklist.c
Commit 99e2cba219aea80b3f11de2aa4e0192b28852de4 by Jan Korous
Reland "[compiler-rt] Fix tests after 03b84e4f6d0"
This reverts commit d6be9273c6035c07b25dd1494f76cd61d523b878.
The file was modifiedcompiler-rt/test/asan/TestCases/default_blacklist.cpp
The file was modifiedcompiler-rt/test/msan/default_blacklist.cpp
Commit 3a3255a22398f34dec16b57beef9e2ff60a108e3 by sylvestre
clang-format: refresh the list of options
The file was modifiedclang/docs/ClangFormat.rst
Commit 3a7a22445e806c08f80cf6d83d1760f7ff732ed0 by stl
[www] More HTTPS and outdated link fixes.
Resolves D69981.
The file was modifiedllvm/docs/_templates/layout.html
The file was modifiedpolly/www/index.html
The file was modifiedpolly/www/performance.html
The file was modifiedclang/www/UniversalDriver.html
The file was modifiedclang/www/analyzer/available_checks.html
The file was modifiedpolly/www/contributors.html
The file was modifiedpolly/www/publications.html
Commit 8f089f2099d39021bbfb76a2cd575612382a7cf6 by maskray
[MC] Emit unused undefined symbol even if its binding is not set
Recommit r373168, which was reverted by r373242. This actually exposed a
boringssl bug which has been fixed for more than one month.
For the following two cases, we currently suppress the symbols. This
patch emits them (compatible with GNU as).
* `test2_a = undef`: if `undef` is otherwise unused.
* `.hidden hidden`: if `hidden` is unused. This is the main point of the
patch, because omitting the symbol would cause a linker semantic
difference.
It causes a behavior change that is not compatible with GNU as:
.weakref foo1, bar1
When neither foo1 nor bar1 is used, we now emit bar1, which is arguably
more consistent.
Another change is that we will emit .TOC. for .TOC.@tocbase .  For this
directive, suppressing .TOC. can be seen as a size optimization, but we
choose to drop it for simplicity and consistency.
The file was modifiedllvm/test/MC/ELF/weakref.s
The file was modifiedlld/test/ELF/ppc64-relocs.s
The file was modifiedllvm/lib/MC/ELFObjectWriter.cpp
The file was modifiedlld/test/ELF/ppc64-abs64-dyn.s
The file was modifiedllvm/test/MC/ELF/undef.s
Commit e1b07aac3d1c92f58e05cb5c37c0707842da5839 by Alex Lorenz
[clangd] NFC, reuse the source manager variable in the RawStringLiteral
apply method
Differential Revision: https://reviews.llvm.org/D69544
The file was modifiedclang-tools-extra/clangd/refactor/tweaks/RawStringLiteral.cpp
Commit 901cc4a4bc5257d100338e6c318b96b022d554ee by Adrian Prantl
Debug Info: Nest Objective-C property function decls inside their
container.
This has the nice side-effect of also fixing a crash in Clang.
Starting with DWARF 5 we are emitting ObjC method declarations as
children of their containing entity. This worked for interfaces, but
didn't consider the case of synthessized properties. When a property of
a protocol is synthesized in an interface implementation the
ObjCMethodDecl that was passed to CGF::StartFunction was the property
*declaration* which obviously couldn't have a containing interface. This
patch passes the containing interface all the way through to
CGDebugInfo, so the function declaration can be created with the correct
parent (= the class implementing the protocol).
rdar://problem/53782400
Differential Revision: https://reviews.llvm.org/D66121
The file was modifiedclang/lib/CodeGen/CGDebugInfo.cpp
The file was modifiedclang/lib/CodeGen/CGDebugInfo.h
The file was addedclang/test/CodeGenObjC/debug-info-objc-property-dwarf5.m
Commit 3951245c38ce2bcb4173a99d00278d704fcdeac1 by dblaikie
NVPTX: Don't insert an extra empty line at the end of the last section.
This was arbitrarily appearing in only the last section emitted - which
made tests more sensitive than they needed to be (removing the last
section - like the macinfo section change that's coming after this)
would, surprisingly, move the blank line to the previous section.
The file was modifiedllvm/test/DebugInfo/NVPTX/debug-loc-offset.ll
The file was modifiedllvm/test/DebugInfo/NVPTX/debug-file-loc.ll
The file was modifiedllvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
The file was modifiedllvm/test/DebugInfo/NVPTX/debug-info.ll
The file was modifiedllvm/test/DebugInfo/NVPTX/cu-range-hole.ll
The file was modifiedllvm/test/DebugInfo/NVPTX/debug-addr-class.ll
Commit 6278fba9b11751b97c6091049341c51226c5b434 by sbc
llvm-ranlib/nm: Don't print usage message except for usage errors
Also, fix a bug in ranlib where it didn't correctly detect being run
without any argument and would try to operate on the empty string.
Differential Revision: https://reviews.llvm.org/D70021
The file was addedllvm/test/tools/llvm-ranlib/bad-usage.test
The file was addedllvm/test/tools/llvm-ranlib/help-message.test
The file was modifiedllvm/test/tools/llvm-ar/invalid-object-file.test
The file was modifiedllvm/tools/llvm-ar/llvm-ar.cpp
Commit 736273c7fe3e88baf548cd555f21eb123f81381d by dblaikie
DebugInfo: Do not create a debug_macinfo section if no CUs have
associated macros
Patch based on Sourabh Singh's D69839 patch.
The file was modifiedllvm/test/DebugInfo/NVPTX/debug-loc-offset.ll
The file was modifiedllvm/test/DebugInfo/NVPTX/debug-file-loc.ll
The file was modifiedllvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
The file was modifiedllvm/test/DebugInfo/NVPTX/cu-range-hole.ll
The file was modifiedllvm/test/DebugInfo/X86/empty_macinfo.ll
The file was modifiedllvm/test/MC/WebAssembly/debug-info.ll
The file was modifiedllvm/test/DebugInfo/RISCV/dwarf-riscv-relocs.ll
The file was modifiedllvm/test/DebugInfo/NVPTX/debug-info.ll
The file was modifiedllvm/test/DebugInfo/X86/length_symbol_difference.ll
The file was modifiedllvm/test/DebugInfo/NVPTX/debug-addr-class.ll
Commit db797bfb2bd24e40d8f0ed422fd4087894ed0eab by dblaikie
DebugInfo: Remove redundant conditionals/checks from macro info emission
These checks fall out naturally from the current implementation without
needing to be explicitly considered anymore.
The file was modifiedllvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
Commit 1478f36f27cfe06c5da75ef11fab2d409f2beafe by Jason Molenda
Test case to verify that lldb falls back to p/P if g is unsupported and
that lldb uses the expedited register values in the ? packet aka stop
packet (T11 etc) and does not re-fetch them with the p packet.
This test is currently failing from the "[lldb-server] Add setting to
force 'g' packet use" commit; I'm marking it as @expectedFailureAll
until we can get this fixed.
The file was addedlldb/packages/Python/lldbsuite/test/functionalities/gdb_remote_client/TestNoGPacketSupported.py
Commit b11391bb47d6fb75639c331378440b405e64be7a by tejohnson
ThinLTO : Import always_inline functions irrespective of the threshold
Summary: A user can force a function to be inlined by specifying the
always_inline attribute. Currently, thinlto implementation is not aware
of always_inline functions and does not guarantee import of such
functions, which in turn can prevent inlining of such functions.
Patch by Bharathi Seshadri <bseshadr@cisco.com>
Reviewers: tejohnson
Reviewed By: tejohnson
Subscribers: mehdi_amini, inglorion, hiraditya, steven_wu, dexonsmith,
arphaman, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D70014
The file was modifiedllvm/lib/Bitcode/Writer/BitcodeWriter.cpp
The file was modifiedllvm/test/Assembler/thinlto-summary.ll
The file was modifiedllvm/lib/Bitcode/Reader/BitcodeReader.cpp
The file was modifiedllvm/lib/AsmParser/LLLexer.cpp
The file was modifiedllvm/test/ThinLTO/X86/dot-dumper2.ll
The file was modifiedllvm/lib/Transforms/IPO/FunctionImport.cpp
The file was modifiedllvm/lib/IR/ModuleSummaryIndex.cpp
The file was modifiedllvm/test/ThinLTO/X86/dot-dumper.ll
The file was modifiedllvm/lib/AsmParser/LLParser.cpp
The file was addedllvm/test/ThinLTO/X86/funcimport_alwaysinline.ll
The file was addedllvm/test/ThinLTO/X86/Inputs/funcimport_alwaysinline.ll
The file was modifiedllvm/lib/Analysis/ModuleSummaryAnalysis.cpp
The file was modifiedllvm/lib/IR/AsmWriter.cpp
The file was modifiedllvm/include/llvm/IR/ModuleSummaryIndex.h
The file was modifiedllvm/lib/AsmParser/LLToken.h
Commit 79e345fbcc822e914fac4838dd7a4f2ddbb5fcad by puyan
[clang][IFS] Adds support for more decl types in clang interface stubs.
Adding support for processing the following Decls:
NonTypeTemplateParmDecl, CXXConversionDecl, UnresolvedUsingValueDecl,
UsingDecl, UsingShadowDecl, TypeAliasTemplateDecl, TypeAliasDecl,
VarTemplateDecl, VarTemplateSpecializationDecl, UsingDirectiveDecl,
TemplateTemplateParmDecl, ClassTemplatePartialSpecializationDecl,
IndirectFieldDecl.
Also, this allows for processing NamedDecls that don't have an
identifier and skips over VarDecls that are dependent on template types.
Differential Revision: https://reviews.llvm.org/D69995
The file was addedclang/test/InterfaceStubs/cxx-conversion.cpp
The file was addedclang/test/InterfaceStubs/usings.cpp
The file was addedclang/test/InterfaceStubs/template-template-parm-decl.cpp
The file was modifiedclang/lib/Frontend/InterfaceStubFunctionsConsumer.cpp
The file was addedclang/test/InterfaceStubs/indirect-field-decl.cpp
The file was addedclang/test/InterfaceStubs/trycatch.cpp
The file was addedclang/test/InterfaceStubs/class-template-partial-specialization.cpp
The file was addedclang/test/InterfaceStubs/template-constexpr.cpp
The file was addedclang/test/InterfaceStubs/non-type-template-parm-decl.cpp
The file was addedclang/test/InterfaceStubs/namespace.cpp
The file was addedclang/test/InterfaceStubs/var-template-specialization-decl.cpp
Commit 1257146eb41485e91cb13a6b0ccc2fb7faa68b75 by puyan
[clang][IFS][test] Fixing buildbot test fails for clang-ifs.
Checking for the exact triple fails on many bots. Leaving the triple
check blank.
The file was modifiedclang/test/InterfaceStubs/template-constexpr.cpp
The file was modifiedclang/test/InterfaceStubs/namespace.cpp
The file was modifiedclang/test/InterfaceStubs/indirect-field-decl.cpp
The file was modifiedclang/test/InterfaceStubs/non-type-template-parm-decl.cpp
The file was modifiedclang/test/InterfaceStubs/usings.cpp
The file was modifiedclang/test/InterfaceStubs/template-template-parm-decl.cpp
The file was modifiedclang/test/InterfaceStubs/class-template-partial-specialization.cpp
The file was modifiedclang/test/InterfaceStubs/cxx-conversion.cpp
Commit 441a78533e61cfffb3fd59e2c169ca7ff7b286dc by Jonas Devlieghere
Revert "Add a testcase for .dSYM path remapping dictionaries."
This reverts commit 2bbc4fdd8fa0ed58d610ab6260cb664c7cfef204.
The file was removedlldb/packages/Python/lldbsuite/test/macosx/DBGSourcePathRemapping/Inputs/main.c
The file was removedlldb/packages/Python/lldbsuite/test/macosx/DBGSourcePathRemapping/TestDSYMSourcePathRemapping.py
The file was removedlldb/packages/Python/lldbsuite/test/macosx/DBGSourcePathRemapping/Makefile
Commit 60ab30ebce833c87bd4776f67cd9a82fe162ef9c by Jason Molenda
Temporarily change the default for use-g-packet-for-reading to false,
until we can automatically fall back to p/P if g/G are not supported; it
looks like there is a bug in debugserver's g/G packets taht needs to be
fixed, or debugserver should stop supporting g/G until that bug is
fixed.  But we need lldb to be able to fall back to p/P correctly for
that to be a viable workaround.
The file was modifiedlldb/packages/Python/lldbsuite/test/functionalities/gdb_remote_client/TestGDBRemoteClient.py
The file was modifiedlldb/source/Plugins/Process/gdb-remote/ProcessGDBRemoteProperties.td
The file was modifiedlldb/packages/Python/lldbsuite/test/functionalities/gdb_remote_client/TestNoGPacketSupported.py
Commit 57adc37fe57c6edabc006e6de41523319e874c65 by Artem Dergachev
[analyzer] Nullability: Don't infer nullable when passing as nullable
parameter.
You can't really infer anything from that.
The file was modifiedclang/lib/StaticAnalyzer/Checkers/NullabilityChecker.cpp
The file was addedclang/test/Analysis/nullability.m
Commit e4da37e8a0a3197baca674d683cb05341c6a4097 by Artem Dergachev
[analyzer] Fix skipping the call during inlined defensive check
suppression.
When bugreporter::trackExpressionValue() is invoked on a DeclRefExpr, it
tries to do most of its computations over the node in which this
DeclRefExpr is computed, rather than on the error node (or whatever node
is stuffed into it). One reason why we can't simply use the error node
is that the binding to that variable might have already disappeared from
the state by the time the bug is found.
In case of the inlined defensive checks visitor, the DeclRefExpr node is
in fact sometimes too *early*: the call in which the inlined defensive
check has happened might have not been entered yet.
Change the visitor to be fine with tracking dead symbols (which it is
totally capable of - the collapse point for the symbol is still
well-defined), and fire it up directly on the error node. Keep using
"LVState" to find out which value should we be tracking, so that there
weren't any problems with accidentally loading an ill-formed value from
a dead variable.
Differential Revision: https://reviews.llvm.org/D67932
The file was modifiedclang/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp
The file was modifiedclang/test/Analysis/NSContainers.m
Commit 312c6f699d4c9c26d16c5eb5848cb9107ae8affe by Dávid Bolvanský
[Diagnostics] Fixed crash with non pointer type (PR43950)
The file was modifiedclang/lib/Sema/SemaExpr.cpp