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


  1. [InstCombine] Z / (1.0 / Y) => (Y * Z) (details)
  2. [libcxxabi] Allow tests to link with static libc++abi/libc++ even if the (details)
  3. [clangd] Respect `--sysroot` argument if it is set (details)
  4. [lldb/SWIG] Add missing '\' in macros again (details)
  5. [lldb/Lua] Make lldb.debugger et al available to Lua (details)
  6. [NFCI][LoopUnrollAndJam] Changing LoopUnrollAndJamPass to a function (details)
  7. Improve support of GNU mempcpy (details)
  8. [OpenCL][Docs] Rename C++ for OpenCL label (details)
  9. [lldb/Bindings] Move bindings into their own subdirectory (details)
  10. [clangd] Adjust diagnostic range to be inside main file (details)
  11. [lldb/SWIG] Fix capitalization for case sensitive file systems. (details)
Commit 6c04ef472a8739a60a7935f77edfbacd2f50eb73 by spatel
[InstCombine] Z / (1.0 / Y) => (Y * Z)
This is a special case of Z / (X / Y) => (Y * Z) / X, with X = 1.0. The
m_OneUse check is avoided because even in the case of the multiple uses
for 1.0/Y, the number of instructions remain the same and a division is
replaced by a multiplication.
Differential Revision:
The file was modifiedllvm/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
The file was modifiedllvm/test/Transforms/InstCombine/fdiv.ll
Commit fb76c7934dce2ede7e04097edb455eba58f6ebfd by jaskiewiczs
[libcxxabi] Allow tests to link with static libc++abi/libc++ even if the
shared version is present
Summary: Right now the only way to force libc++abi tests to link with
the static version of libc++abi is to set `LIBCXXABI_ENABLE_SHARED` to
`OFF`. However, this doesn't work when libc++abi is built as standalone
project because of
This change allows specifying the version of the library for tests to
link with.
This is useful for remote testing, for example, with `SSHExecutor`,
where we _have_ to link with libc++abi statically.
Two new CMake options are introduced here:
tell the test utility to link tests with the static libraries.
It shouldn't break anything, because the default values of these options
are set such that the test utility will behave the same way.
Reviewers: EricWF, mclow.lists, phosek, mehdi_amini, ldionne, jroelofs,
Subscribers: mgorny, christof, ldionne, libcxx-commits
Tags: #libc
Differential Revision:
The file was modifiedlibcxxabi/test/
The file was modifiedlibcxxabi/test/CMakeLists.txt
The file was modifiedlibcxxabi/CMakeLists.txt
Commit ea9888b8f6f20887647b77ebf5864d647fd2ea44 by davg
[clangd] Respect `--sysroot` argument if it is set
- Since `--sysroot` is a superset of the `-isysroot` argument, we
shouldn't add the `-isysroot` if we detect a `--sysroot` flag.
Reviewers: sammccall
Subscribers: ilya-biryukov, MaskRay, jkorous, arphaman, kadircet,
usaxena95, cfe-commits
Tags: #clang
Differential Revision:
The file was modifiedclang-tools-extra/clangd/CompileCommands.cpp
Commit 93a1e9c90c96a9130352bf358d7777f0379ebb48 by Jonas Devlieghere
[lldb/SWIG] Add missing '\' in macros again
Making the string conversion operator a macro unintentionally dropped
the backslash before '\n' and '\r' and was therefore incorrectly
stripping 'n' and 'r' from the object description.
The file was modifiedlldb/scripts/macros.swig
Commit 45c971f7eef18ef2b77a5f64133dbd7bd5939d5f by Jonas Devlieghere
[lldb/Lua] Make lldb.debugger et al available to Lua
The Python script interpreter makes the current debugger, target,
process, thread and frame available to interactive scripting sessions
through convenience variables. This patch does the same for Lua.
Differential revision:
The file was addedlldb/test/Shell/ScriptInterpreter/Lua/Inputs/
The file was modifiedlldb/source/Plugins/ScriptInterpreter/Lua/ScriptInterpreterLua.h
The file was modifiedlldb/source/Plugins/ScriptInterpreter/Lua/Lua.cpp
The file was addedlldb/test/Shell/ScriptInterpreter/Lua/Inputs/
The file was addedlldb/test/Shell/ScriptInterpreter/Lua/nested_sessions.test
The file was addedlldb/test/Shell/ScriptInterpreter/Lua/Inputs/
The file was modifiedlldb/source/Plugins/ScriptInterpreter/Lua/ScriptInterpreterLua.cpp
The file was modifiedlldb/source/Plugins/ScriptInterpreter/Lua/Lua.h
The file was addedlldb/test/Shell/ScriptInterpreter/Lua/convenience_variables.test
The file was addedlldb/test/Shell/ScriptInterpreter/Lua/independent_state.test
Commit d27a15fed79c8e8484825ce6c3ce1682daeb1547 by whitneyt
[NFCI][LoopUnrollAndJam] Changing LoopUnrollAndJamPass to a function
Summary: This patch changes LoopUnrollAndJamPass to a function pass, and
keeps the loops traversal order same as defined in
FunctionToLoopPassAdaptor LoopPassManager.h.
The next patch will change the loop traversal to outer to inner order,
so more loops can be transform.
Discussion in llvm-dev mailing list:!topic/llvm-dev/LF4rUjkVI2g Reviewer:
dmgreen, jdoerfert, Meinersbur, kbarton, bmahjour, etiotto Reviewed By:
dmgreen Subscribers: hiraditya, zzheng, llvm-commits Tag: LLVM
Differential Revision:
The file was modifiedllvm/include/llvm/Transforms/Scalar/LoopUnrollAndJamPass.h
The file was modifiedllvm/lib/Passes/PassBuilder.cpp
The file was modifiedllvm/lib/Transforms/Scalar/LoopUnrollAndJamPass.cpp
The file was modifiedllvm/test/Transforms/LoopUnrollAndJam/disable.ll
The file was modifiedllvm/test/Transforms/LoopUnrollAndJam/dependencies.ll
The file was modifiedllvm/lib/Passes/PassRegistry.def
The file was modifiedllvm/test/Transforms/LoopUnrollAndJam/pragma-explicit.ll
The file was modifiedllvm/test/Transforms/LoopUnrollAndJam/unroll-and-jam.ll
Commit cee4a1c957426e9477c8579ff960c8c2bd4af9e2 by sguelton
Improve support of GNU mempcpy
- Lower to the memcpy intrinsic
- Raise warnings when size/bounds are known
Differential Revision:
The file was modifiedclang/lib/CodeGen/CGBuiltin.cpp
The file was addedclang/test/CodeGen/mempcpy-libcall.c
The file was modifiedclang/lib/AST/Decl.cpp
The file was modifiedclang/include/clang/Basic/Builtins.def
The file was modifiedclang/test/Analysis/bstring.c
The file was modifiedclang/lib/Sema/SemaChecking.cpp
Commit 241f335b268dc19a0dfb85686a7c82fb339421a8 by sven.vanhaastregt
[OpenCL][Docs] Rename C++ for OpenCL label
To avoid potential confusion with OpenCL C++.
The file was modifiedclang/docs/UsersManual.rst
Commit 6498aff249a1c3c6bad33137df3b90e2973722d6 by Jonas Devlieghere
[lldb/Bindings] Move bindings into their own subdirectory
All the code required to generate the language bindings for Python and
Lua lives under scripts, even though the majority of this code aren't
scripts at all, and surrounded by scripts that are totally unrelated.
I've reorganized these files and moved everything related to the
language bindings into a new top-level directory named bindings. This
makes the corresponding files self contained and much more discoverable.
Differential revision:
The file was addedlldb/bindings/interface/SBCommandReturnObject.i
The file was removedlldb/scripts/interface/SBBroadcaster.i
The file was removedlldb/scripts/interface/SBStructuredData.i
The file was modifiedlldb/CMakeLists.txt
The file was addedlldb/bindings/interface/SBLanguageRuntime.i
The file was addedlldb/bindings/interfaces.swig
The file was removedlldb/scripts/interface/SBMemoryRegionInfo.i
The file was addedlldb/bindings/interface/SBStream.i
The file was removedlldb/scripts/interface/SBLanguageRuntime.i
The file was addedlldb/bindings/interface/SBHostOS.i
The file was removedlldb/scripts/interface/SBCommandInterpreter.i
The file was addedlldb/bindings/interface/SBSymbol.i
The file was removedlldb/scripts/interface/SBTypeFormat.i
The file was removedlldb/scripts/interface/SBWatchpoint.i
The file was removedlldb/scripts/interface/SBBreakpoint.i
The file was addedlldb/bindings/interface/SBPlatform.i
The file was removedlldb/scripts/interface/SBProcess.i
The file was removedlldb/scripts/interface/SBProcessInfo.i
The file was removedlldb/scripts/interface/SBCommandReturnObject.i
The file was addedlldb/bindings/macros.swig
The file was addedlldb/bindings/interface/SBStringList.i
The file was removedlldb/scripts/interface/SBInstructionList.i
The file was removedlldb/scripts/interface/SBTypeFilter.i
The file was removedlldb/scripts/interface/SBModule.i
The file was addedlldb/bindings/interface/SBProcessInfo.i
The file was addedlldb/bindings/interface/SBModule.i
The file was removedlldb/scripts/interface/SBError.i
The file was removedlldb/scripts/interface/SBSourceManager.i
The file was addedlldb/bindings/interface/SBMemoryRegionInfoList.i
The file was addedlldb/bindings/interface/SBSymbolContextList.i
The file was addedlldb/bindings/python/python-typemaps.swig
The file was addedlldb/bindings/interface/SBDeclaration.i
The file was addedlldb/bindings/interface/SBThreadPlan.i
The file was removedlldb/scripts/interface/SBDeclaration.i
The file was addedlldb/bindings/interface/SBFunction.i
The file was removedlldb/scripts/Python/
The file was removedlldb/scripts/interface/SBQueue.i
The file was removedlldb/scripts/interface/SBTypeEnumMember.i
The file was removedlldb/scripts/interface/SBSymbolContextList.i
The file was addedlldb/bindings/interface/SBBroadcaster.i
The file was removedlldb/scripts/CMakeLists.txt
The file was removedlldb/scripts/interface/SBModuleSpec.i
The file was addedlldb/bindings/interface/SBCompileUnit.i
The file was addedlldb/bindings/interface/SBExecutionContext.i
The file was addedlldb/bindings/python/
The file was removedlldb/scripts/interface/SBAddress.i
The file was removedlldb/scripts/macros.swig
The file was removedlldb/scripts/interface/SBCommunication.i
The file was addedlldb/bindings/interface/SBTypeSummary.i
The file was addedlldb/bindings/interface/SBSourceManager.i
The file was removedlldb/scripts/interface/SBLaunchInfo.i
The file was addedlldb/bindings/CMakeLists.txt
The file was addedlldb/bindings/interface/SBTypeFormat.i
The file was modifiedlldb/source/API/CMakeLists.txt
The file was addedlldb/bindings/interface/SBFrame.i
The file was removedlldb/scripts/interface/SBMemoryRegionInfoList.i
The file was removedlldb/scripts/interface/SBTypeSummary.i
The file was removedlldb/scripts/interfaces.swig
The file was removedlldb/scripts/Python/python-typemaps.swig
The file was addedlldb/bindings/interface/SBCommunication.i
The file was addedlldb/bindings/interface/SBError.i
The file was removedlldb/scripts/interface/SBVariablesOptions.i
The file was removedlldb/scripts/interface/SBPlatform.i
The file was addedlldb/bindings/interface/SBSymbolContext.i
The file was removedlldb/scripts/interface/SBDebugger.i
The file was removedlldb/scripts/interface/SBTrace.i
The file was removedlldb/scripts/interface/SBLineEntry.i
The file was removedlldb/scripts/interface/SBBreakpointName.i
The file was addedlldb/bindings/interface/SBValue.i
The file was removedlldb/scripts/interface/SBHostOS.i
The file was addedlldb/bindings/lua.swig
The file was addedlldb/bindings/python/python-swigsafecast.swig
The file was addedlldb/bindings/interface/SBAddress.i
The file was addedlldb/bindings/interface/SBData.i
The file was removedlldb/scripts/interface/SBFileSpec.i
The file was addedlldb/bindings/interface/SBQueue.i
The file was addedlldb/bindings/interface/SBLineEntry.i
The file was addedlldb/bindings/interface/SBTraceOptions.i
The file was addedlldb/bindings/interface/SBTypeCategory.i
The file was addedlldb/bindings/interface/SBCommandInterpreter.i
The file was removedlldb/scripts/interface/SBExecutionContext.i
The file was addedlldb/bindings/interface/SBFileSpecList.i
The file was addedlldb/bindings/interface/SBValueList.i
The file was addedlldb/bindings/interface/SBDebugger.i
The file was removedlldb/scripts/interface/SBTypeSynthetic.i
The file was removedlldb/scripts/interface/SBTarget.i
The file was removedlldb/scripts/interface/SBThreadCollection.i
The file was removedlldb/scripts/interface/SBTypeCategory.i
The file was addedlldb/bindings/interface/SBProcess.i
The file was removedlldb/scripts/interface/SBTypeNameSpecifier.i
The file was removedlldb/scripts/interface/SBAttachInfo.i
The file was addedlldb/bindings/python/python-wrapper.swig
The file was addedlldb/bindings/interface/SBInstructionList.i
The file was removedlldb/scripts/interface/SBUnixSignals.i
The file was removedlldb/scripts/interface/SBValueList.i
The file was addedlldb/bindings/interface/SBInstruction.i
The file was removedlldb/scripts/Python/python-wrapper.swig
The file was addedlldb/bindings/interface/SBTrace.i
The file was removedlldb/scripts/interface/SBBlock.i
The file was addedlldb/bindings/interface/SBTypeFilter.i
The file was addedlldb/bindings/interface/SBTarget.i
The file was addedlldb/bindings/interface/SBQueueItem.i
The file was addedlldb/bindings/interface/SBAttachInfo.i
The file was addedlldb/bindings/interface/SBLaunchInfo.i
The file was removedlldb/scripts/interface/SBSection.i
The file was addedlldb/bindings/interface/SBBreakpointName.i
The file was removedlldb/scripts/interface/SBFrame.i
The file was removedlldb/scripts/lldb_lua.swig
The file was addedlldb/bindings/interface/SBStructuredData.i
The file was removedlldb/scripts/interface/SBFunction.i
The file was addedlldb/bindings/headers.swig
The file was addedlldb/bindings/interface/SBSection.i
The file was addedlldb/bindings/interface/SBBreakpoint.i
The file was removedlldb/scripts/interface/SBTraceOptions.i
The file was addedlldb/bindings/interface/SBVariablesOptions.i
The file was addedlldb/bindings/interface/SBFile.i
The file was addedlldb/bindings/interface/SBListener.i
The file was addedlldb/bindings/interface/SBTypeNameSpecifier.i
The file was removedlldb/scripts/headers.swig
The file was addedlldb/bindings/interface/SBMemoryRegionInfo.i
The file was modifiedlldb/docs/CMakeLists.txt
The file was addedlldb/bindings/interface/SBFileSpec.i
The file was addedlldb/bindings/interface/SBModuleSpec.i
The file was addedlldb/bindings/interface/SBTypeSynthetic.i
The file was addedlldb/bindings/interface/SBWatchpoint.i
The file was removedlldb/scripts/interface/SBCompileUnit.i
The file was removedlldb/scripts/interface/SBQueueItem.i
The file was removedlldb/scripts/Python/python-swigsafecast.swig
The file was removedlldb/scripts/interface/SBSymbolContext.i
The file was addedlldb/bindings/interface/SBThread.i
The file was removedlldb/scripts/interface/SBInstruction.i
The file was removedlldb/scripts/interface/SBEvent.i
The file was addedlldb/bindings/interface/SBBreakpointLocation.i
The file was removedlldb/scripts/interface/SBType.i
The file was removedlldb/scripts/interface/SBThread.i
The file was removedlldb/scripts/interface/SBBreakpointLocation.i
The file was addedlldb/bindings/interface/SBThreadCollection.i
The file was addedlldb/bindings/interface/SBBlock.i
The file was removedlldb/scripts/interface/SBFile.i
The file was removedlldb/scripts/interface/SBFileSpecList.i
The file was removedlldb/scripts/interface/SBStream.i
The file was removedlldb/scripts/interface/SBStringList.i
The file was addedlldb/bindings/interface/SBUnixSignals.i
The file was addedlldb/bindings/interface/SBExpressionOptions.i
The file was addedlldb/bindings/python/python-extensions.swig
The file was addedlldb/bindings/python.swig
The file was removedlldb/scripts/interface/SBThreadPlan.i
The file was removedlldb/scripts/lldb.swig
The file was addedlldb/bindings/interface/SBTypeEnumMember.i
The file was addedlldb/bindings/interface/SBType.i
The file was removedlldb/scripts/interface/SBListener.i
The file was removedlldb/scripts/interface/SBSymbol.i
The file was removedlldb/scripts/interface/SBExpressionOptions.i
The file was removedlldb/scripts/interface/SBData.i
The file was addedlldb/bindings/interface/SBEvent.i
The file was removedlldb/scripts/interface/SBValue.i
The file was removedlldb/scripts/Python/python-extensions.swig
Commit 189aa5b7a4584677ad628ecc2c369db61d4d2515 by kadircet
[clangd] Adjust diagnostic range to be inside main file
Summary: LSP requires diagnostics to lay inside main file. In clangd we
keep diagnostics in three different cases:
- already in main file
- adjusted to a header included in main file
- has a note covering some range in main file
In the last case, we were not adjusting the diagnostics range to be in
main file, therefore these diagnostics ended up pointing some arbitrary
This patch fixes that issue by adjusting the range of diagnostics to be
the first note inside main file when converting to LSP.
Reviewers: ilya-biryukov
Subscribers: MaskRay, jkorous, arphaman, usaxena95, cfe-commits
Tags: #clang
Differential Revision:
The file was modifiedclang-tools-extra/clangd/unittests/DiagnosticsTests.cpp
The file was modifiedclang-tools-extra/clangd/Diagnostics.cpp
Commit 5e0bf6772e2ca450d3433fca8b47ce7bac5a6cc7 by Jonas Devlieghere
[lldb/SWIG] Fix capitalization for case sensitive file systems.
When moving the Python directory I renamed it to python (lowercase) but
didn't update the python.swig file.
The file was modifiedlldb/bindings/python.swig