FailedChanges

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

Summary

  1. [FPEnv] PowerPC-specific builtin constrained FP enablement (details)
  2. [Clang] Add support for -Wno-inline-namespace-reopened-noninline (details)
  3. [NewPM] Separate out alias analysis passes in opt (details)
  4. GVN.h - reduce AliasAnalysis.h include to forward declaration. NFC. (details)
  5. [libc++abi] Allow specifying custom Lit config files (details)
  6. [libunwind] Allow specifying custom Lit config files (details)
  7. Change while to do-while (details)
  8. [sve][acle] Add some C intrinsics for brain float types. (details)
  9. [FileCheck][NFC] Remove redundant DumpInputDefault (details)
  10. [lldb/ScriptInterpreter] Extract IO redirection logic (details)
  11. [analyzer] Enable constructor support in evalCall event. (details)
  12. Ensure that default value for -triple is correctly normalizedvalues (details)
  13. [llvm-readobj][COFF] add .llvm.call-graph-profile section dump (details)
  14. [lldb/ScriptInterpreter] Let the IORedirect factory handle IO being disabled. (details)
  15. [lldb/Lua] Redirect Lua stdout/stderr to the CommandReturnObject (details)
  16. [Clang][SourceManager] optimize getFileIDLocal() (details)
  17. [NewPM] Move debugging log printing after PassInstrumentation before-pass-callbacks (details)
  18. Add `CharLiteral` to SyntaxTree (details)
  19. Add StringLiteral to SyntaxTree (details)
  20. Add `FloatingLiteral` to SyntaxTree (details)
  21. [lldb][NFC] Use expect_expr in TestDollarInVariable (details)
Commit 15edd7aaa7142e5db2a6cf9b81e4514967431824 by kevin.neal
[FPEnv] PowerPC-specific builtin constrained FP enablement

This change enables PowerPC compiler builtins to generate constrained
floating point operations when clang is indicated to do so.

A couple of possibly unexpected backend divergences between constrained
floating point and regular behavior are highlighted under the test tag
FIXME-CHECK. This may be something for those on the PPC backend to look
at.

Patch by: Drew Wock <drew.wock@sas.com>

Differential Revision: https://reviews.llvm.org/D82020
The file was modifiedclang/lib/CodeGen/CGBuiltin.cpp
The file was addedclang/test/CodeGen/builtins-ppc-fpconstrained.c
Commit 16501782c8d849bc1812d527dc8466574700663d by andreybokhanko
[Clang] Add support for -Wno-inline-namespace-reopened-noninline

This patch adds the option for disabling warn_inline_namespace_reopened_noninline
warning described here: https://bugs.llvm.org/show_bug.cgi?id=46106

Patch by Elvina Yakubova

Differential Revision: https://reviews.llvm.org/D81825
The file was modifiedclang/include/clang/Basic/DiagnosticGroups.td
The file was modifiedclang/include/clang/Basic/DiagnosticSemaKinds.td
The file was addedclang/test/SemaCXX/warn-inline-namespace-reopened-noninline-disable.cpp
The file was modifiedclang/test/Misc/warning-flags.c
Commit 85ff5b524e4935b9aa0838d72107f1f505684088 by aeubanks
[NewPM] Separate out alias analysis passes in opt

Summary:
This somewhat matches the --aa-pipeline option, which separates out any
AA analyses to make sure they run before other passes.

Makes check-llvm failures under new PM go from 2356 -> 2303.

AA passes are not handled by PassBuilder::parsePassPipeline() but rather
PassBuilder::parseAAPipeline(), which is why this fixes some failures.

Reviewers: asbirlea, hans, ychen, leonardchan

Subscribers: hiraditya, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D82488
The file was modifiedllvm/tools/opt/NewPMDriver.cpp
The file was modifiedllvm/include/llvm/Passes/PassBuilder.h
The file was modifiedllvm/lib/Passes/PassBuilder.cpp
Commit f6329a6875e21bdcfe4791ce46a50bcafca2f007 by llvm-dev
GVN.h - reduce AliasAnalysis.h include to forward declaration. NFC.

Cleanup MemoryDependenceAnalysis.h as well - GVN.h was also implicitly including AliasAnalysis.h via this.

Fix implicit include dependencies in source files and replace legacy AliasAnalysis typedef with AAResults where necessary.
The file was modifiedllvm/lib/Analysis/MemDepPrinter.cpp
The file was modifiedllvm/include/llvm/Analysis/MemoryDependenceAnalysis.h
The file was modifiedllvm/include/llvm/Transforms/Scalar/GVN.h
Commit 33c9c10d183371edc95fa936705bef56f55ab611 by Louis Dionne
[libc++abi] Allow specifying custom Lit config files

This is the libc++abi counterpart of 0c66af970c80.
The file was modifiedlibcxxabi/test/lit.site.cfg.in
The file was removedlibcxxabi/test/lit.cfg
The file was modifiedlibcxxabi/test/CMakeLists.txt
The file was modifiedlibcxx/CMakeLists.txt
The file was addedlibcxxabi/test/lit.cfg.py
The file was modifiedlibcxxabi/CMakeLists.txt
Commit c55051eea5d3cd57abfd9727f519b670517704d9 by Louis Dionne
[libunwind] Allow specifying custom Lit config files

This is the libunwind counterpart of 0c66af970c80.
The file was modifiedlibunwind/CMakeLists.txt
The file was addedlibunwind/test/lit.cfg.py
The file was modifiedlibunwind/test/lit.site.cfg.in
The file was modifiedlibunwind/test/CMakeLists.txt
The file was removedlibunwind/test/lit.cfg
Commit 772f4826465de80d8c7f11b2fb35b92f9fe58f45 by maskray
Change while to do-while

Differential Revision: https://reviews.llvm.org/D70603
The file was modifiedclang/lib/Analysis/ReachableCode.cpp
Commit 7200fa38a912d0d9ec407ccdd7c4d924979da160 by francesco.petrogalli
[sve][acle] Add some C intrinsics for brain float types.

Summary:
The following intrinsics has been added:

svuint16_t svcnt[_bf16]_m(svuint16_t inactive, svbool_t pg, svbfloat16_t op)
svuint16_t svcnt[_bf16]_x(svbool_t pg, svbfloat16_t op)
svuint16_t svcnt[_bf16]_z(svbool_t pg, svbfloat16_t op)

svbfloat16_t svtbl[_bf16](svbfloat16_t data, svuint16_t indices)

svbfloat16_t svtbl2[_bf16](svbfloat16x2_t data, svuint16_t indices)

svbfloat16_t svtbx[_bf16](svbfloat16_t fallback, svbfloat16_t data, svuint16_t indices)

Reviewers: c-rhodes, kmclaughlin, efriedma, sdesmalen, ctetreau

Subscribers: tschuett, hiraditya, rkruppe, psnobl, cfe-commits, llvm-commits

Tags: #clang, #llvm

Differential Revision: https://reviews.llvm.org/D82429
The file was modifiedclang/include/clang/Basic/arm_sve.td
The file was addedclang/test/CodeGen/aarch64-sve2-intrinsics/acle_sve2_tbl2-bfloat.c
The file was addedclang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_cnt-bfloat.c
The file was modifiedllvm/test/CodeGen/AArch64/sve-intrinsics-perm-select.ll
The file was addedclang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_tbl-bfloat.c
The file was modifiedllvm/test/CodeGen/AArch64/sve-intrinsics-counting-bits.ll
The file was modifiedclang/lib/CodeGen/CGBuiltin.cpp
The file was addedclang/test/CodeGen/aarch64-sve2-intrinsics/acle_sve2_tbx-bfloat.c
The file was modifiedllvm/lib/Target/AArch64/AArch64SVEInstrInfo.td
The file was modifiedllvm/test/CodeGen/AArch64/sve2-intrinsics-perm-tb.ll
Commit 3b83501c29588ab65e7118fe404adf383789dedd by jdenny.ornl
[FileCheck][NFC] Remove redundant DumpInputDefault

Reviewed By: mehdi_amini, jhenderson

Differential Revision: https://reviews.llvm.org/D82480
The file was modifiedllvm/utils/FileCheck/FileCheck.cpp
Commit d79273c941d58486d09c020eb7767a5246a9c24d by Jonas Devlieghere
[lldb/ScriptInterpreter] Extract IO redirection logic

This patch takes the IO redirection logic from ScriptInterpreterPython
and moves it into the interpreter library so that it can be used by
other script interpreters. I've turned it into a RAII object so that we
don't have to worry about cleaning up in the calling code.

Differential revision: https://reviews.llvm.org/D82396
The file was modifiedlldb/include/lldb/Interpreter/ScriptInterpreter.h
The file was modifiedlldb/source/Interpreter/ScriptInterpreter.cpp
The file was modifiedlldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
Commit 37c1bf21d1da85c164638efc32e8c7cfbf713ac5 by Artem Dergachev
[analyzer] Enable constructor support in evalCall event.

Pass EvalCallOptions via runCheckersForEvalCall into defaultEvalCall.
Update the AnalysisOrderChecker to support evalCall for testing.

Differential Revision: https://reviews.llvm.org/D82256
The file was modifiedclang/test/Analysis/new-ctor-conservative.cpp
The file was modifiedclang/include/clang/StaticAnalyzer/Core/CheckerManager.h
The file was modifiedclang/lib/StaticAnalyzer/Checkers/AnalysisOrderChecker.cpp
The file was modifiedclang/lib/StaticAnalyzer/Core/ExprEngineCXX.cpp
The file was modifiedclang/lib/StaticAnalyzer/Core/ExprEngineCallAndReturn.cpp
The file was modifiedclang/test/Analysis/analyzer-config.c
The file was addedclang/test/Analysis/cxxctr-evalcall-analysis-order.cpp
The file was modifiedclang/lib/StaticAnalyzer/Core/CheckerManager.cpp
The file was modifiedclang/include/clang/StaticAnalyzer/Core/PathSensitive/ExprEngine.h
The file was modifiedclang/lib/StaticAnalyzer/Core/CallEvent.cpp
The file was modifiedclang/include/clang/StaticAnalyzer/Checkers/Checkers.td
Commit f79a66ba69628db471d559f0f182f476bf49ac90 by dany.grumberg
Ensure that default value for -triple is correctly normalizedvalues

This fixes the build failure at http://lab.llvm.org:8011/builders/llvm-clang-win-x-aarch64/builds/240/steps/test-check-clang/logs/FAIL%3A%20Clang-Unit%3A%3ACC1CommandLineGenerationTest.CanGenerateCC1CommandLineSeparateRequiredAbsent
The file was modifiedclang/include/clang/Driver/CC1Options.td
Commit 79d7e9c7d07a7ba4a65f4579bf3a8756c757e634 by zequanwu
[llvm-readobj][COFF] add .llvm.call-graph-profile section dump

Summary: Dumping contents of `.llvm.call-graph-profile` section of COFF in the same format as ELF.

Reviewers: jhenderson, MaskRay, hans

Reviewed By: jhenderson

Subscribers: grimar, rupprecht, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D81894
The file was addedllvm/test/tools/llvm-readobj/COFF/call-graph-profile.s
The file was modifiedllvm/tools/llvm-readobj/COFFDumper.cpp
The file was modifiedllvm/tools/llvm-readobj/llvm-readobj.cpp
The file was addedllvm/test/tools/llvm-readobj/COFF/call-graph-profile-err.s
Commit 842283652eb89e7c207ecfdac5e546472332f02b by Jonas Devlieghere
[lldb/ScriptInterpreter] Let the IORedirect factory handle IO being disabled.

Have one factory method that decides how to initialize the
ScriptInterpreterIORedirect object based on whether IO is enabled or
disabled.
The file was modifiedlldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
The file was modifiedlldb/source/Interpreter/ScriptInterpreter.cpp
The file was modifiedlldb/include/lldb/Interpreter/ScriptInterpreter.h
Commit ed8184b7814df4310dbad065a9a1c3bb8f3bfa86 by Jonas Devlieghere
[lldb/Lua] Redirect Lua stdout/stderr to the CommandReturnObject

Redirect the output of stdout and stderr to the CommandReturnObject for
one line commands.

Differential revision: https://reviews.llvm.org/D82412
The file was modifiedlldb/test/Shell/ScriptInterpreter/Lua/io.test
The file was modifiedlldb/source/Plugins/ScriptInterpreter/Lua/ScriptInterpreterLua.cpp
Commit 408efffbe4a52bae05f1677a47eb3ccfd5cdc1d3 by ndesaulniers
[Clang][SourceManager] optimize getFileIDLocal()

Summary:
A recent Linux kernel commit exposed a performance cliff in Clang. Calls
to SourceManager::getFileIDLocal() when there's a cache miss against
LastFileIDLookup can be relatively expensive, as getFileIDLocal() tries
a few linear probes, then falls back to binary search.  The use of
SourceManager::isOffsetInFileID() is also relatively expensive (both
isOffsetInFileID and getFileIDLocal dominated a trace of the performance
cliff case).

As a FIXME notes (and as @kadircet helpfully noted in review of D80681),
there's a few optimizations we can do here since we've already
identified that an offset is local (as opposed to "loaded").

This patch was forked off of D80681, which additionally did this and
modified some caching behavior, as we expect this change to be less
controversial.

In terms of optimizations, we've already determined that the SLocOffset
parameter to SourceManager::getFileIDLocal() is local in the caller
SourceManager::getFileIDSlow(). Also, there's an early continue in the
binary search loop in getFileIDLocal() that are duplicated in
isOffsetInFileID() as pointed out by @kadircet.

Take advantage of these to optimize the binary search patch, and remove
the FIXME.

Reviewers: kadircet

Reviewed By: kadircet

Subscribers: cfe-commits, kadircet, srhines

Tags: #clang

Differential Revision: https://reviews.llvm.org/D82497
The file was modifiedclang/lib/Basic/SourceManager.cpp
Commit c4b1daed1d6adfa726682ab4576f0f4a07ccdeac by Yuanfang Chen
[NewPM] Move debugging log printing after PassInstrumentation before-pass-callbacks

For passes got skipped, this is confusing because the log said it is `running pass`
but it is skipped later.

Reviewed By: asbirlea

Differential Revision: https://reviews.llvm.org/D82511
The file was modifiedllvm/include/llvm/IR/PassManager.h
The file was modifiedllvm/lib/Transforms/Scalar/LoopPassManager.cpp
The file was modifiedllvm/lib/Analysis/CGSCCPassManager.cpp
Commit 221d7bbe49cceb0e408f0f46d9f8371e6c9fee2c by ecaldas
Add `CharLiteral` to SyntaxTree

Subscribers: cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D82312
The file was modifiedclang/include/clang/Tooling/Syntax/Nodes.h
The file was modifiedclang/lib/Tooling/Syntax/Nodes.cpp
The file was modifiedclang/unittests/Tooling/Syntax/TreeTest.cpp
The file was modifiedclang/lib/Tooling/Syntax/BuildTree.cpp
Commit 466e8b7ea6e162d48cac42ccda210bdeb11080e3 by ecaldas
Add StringLiteral to SyntaxTree

Subscribers: cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D82360
The file was modifiedclang/lib/Tooling/Syntax/BuildTree.cpp
The file was modifiedclang/include/clang/Tooling/Syntax/Nodes.h
The file was modifiedclang/lib/Tooling/Syntax/Nodes.cpp
The file was modifiedclang/unittests/Tooling/Syntax/TreeTest.cpp
Commit 7b404b6d003181e990f53d27866ee98d5151c4f3 by ecaldas
Add `FloatingLiteral` to SyntaxTree

Subscribers: cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D82318
The file was modifiedclang/include/clang/Tooling/Syntax/Nodes.h
The file was modifiedclang/lib/Tooling/Syntax/Nodes.cpp
The file was modifiedclang/lib/Tooling/Syntax/BuildTree.cpp
The file was modifiedclang/unittests/Tooling/Syntax/TreeTest.cpp
Commit 4df7d852afc04844184f0a02d3a3ca4449bbbc5f by Raphael Isemann
[lldb][NFC] Use expect_expr in TestDollarInVariable
The file was modifiedlldb/test/API/commands/expression/dollar-in-variable/main.c