Changes

Summary

  1. libclc: Use acos implementation from amd_builtins (details)
  2. [X86] Remove unnecessary isNullConstant in LowerSelect. NFC (details)
  3. [WebAssembly] Remove unneeded getWasmKindForNamedSection function (details)
  4. [X86] Autogenerate complete checks. NFC (details)
  5. [X86] Make combineCMov not create unsupported FCMOVs when f32/f64 are using X87. (details)
  6. [X86] Don't bother avoiding illegal FCMOVs if we don't have the cmov subtarget feature. (details)
  7. [clangd] Fix the incomplete template specialization in findTarget. (details)
  8. [lldb][NFC] Split up ClangASTSource::FindExternalVisibleDecls (details)
  9. [clangd] Allow renaming class templates in cross-file rename. (details)
  10. Make unittests include path relative (details)
Commit efeafa1bdaa715733fc100bcd9d21f93c7272368 by jano.vesely
libclc: Use acos implementation from amd_builtins

Fixes acos CTS (1 thread, scalar) on AMD Turks.
Reviewer: tstellar
Differential Revision: https://reviews.llvm.org/D74011
The file was removedlibclc/generic/lib/math/acos.inc
The file was modifiedlibclc/generic/lib/math/acos.cl
Commit 457660683154014db4b649e852d152354844338a by craig.topper
[X86] Remove unnecessary isNullConstant in LowerSelect. NFC

At this point in the code we know that Op1 or Op2 is
all ones. Y points to the other operand. In the case that
Op2 is zero, Op1 must be all ones and Y is Op2. The OR
ORs Y into Res. But if Y is 0 the OR will be folded away by
getNode so we don't need to check for it.
The file was modifiedllvm/lib/Target/X86/X86ISelLowering.cpp
Commit df74033ec9fceb0c7c1c44a61f240c05c4d5b368 by sbc
[WebAssembly] Remove unneeded getWasmKindForNamedSection function

I believe this was carried over from getELFKindForNamedSection since
the wasm backend originally used ELF object writing as a template.

Differential Revision: https://reviews.llvm.org/D74565
The file was modifiedllvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
Commit 3bc525af235038602a2e1143f5491d3b802a8b5b by craig.topper
[X86] Autogenerate complete checks. NFC
The file was modifiedllvm/test/CodeGen/X86/cmov-fp.ll
Commit 263bef2bbcb0b3bad1f9113a638d6e6c92920a6b by craig.topper
[X86] Make combineCMov not create unsupported FCMOVs when f32/f64 are using X87.

This makes the behavior consistent with what's in LowerSELECT.
The file was modifiedllvm/test/CodeGen/X86/pseudo_cmov_lower.ll
The file was modifiedllvm/test/CodeGen/X86/cmov-fp.ll
The file was modifiedllvm/lib/Target/X86/X86ISelLowering.cpp
Commit 97f11600e0b87b69b01412af8df4fc37af652fce by craig.topper
[X86] Don't bother avoiding illegal FCMOVs if we don't have the cmov subtarget feature.

We'll be forced to emit branches so we might as well use the most
direct condition.
The file was modifiedllvm/test/CodeGen/X86/pseudo_cmov_lower.ll
The file was modifiedllvm/test/CodeGen/X86/cmov-fp.ll
The file was modifiedllvm/lib/Target/X86/X86ISelLowering.cpp
Commit e326f52430419af1ca5aed635168672fbaab5654 by hokein.wu
[clangd] Fix the incomplete template specialization in findTarget.

Summary:
FindTarget doesn't report the TemplatePattern for incomplete
specialization.

Reviewers: sammccall

Subscribers: ilya-biryukov, MaskRay, jkorous, arphaman, kadircet, usaxena95, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D74900
The file was modifiedclang-tools-extra/clangd/unittests/XRefsTests.cpp
The file was modifiedclang-tools-extra/clangd/unittests/FindTargetTests.cpp
The file was modifiedclang-tools-extra/clangd/FindTarget.cpp
Commit 0e5ed1b26264f7eee32b23c533371c18ce1cdec0 by Raphael Isemann
[lldb][NFC] Split up ClangASTSource::FindExternalVisibleDecls

This function has two functions hidden inside it. Let's make
them proper functions.
The file was modifiedlldb/source/Plugins/ExpressionParser/Clang/ClangASTSource.cpp
The file was modifiedlldb/source/Plugins/ExpressionParser/Clang/ClangASTSource.h
Commit bc498198b5559829d8f7138db01b0f51afefe2a7 by hokein.wu
[clangd] Allow renaming class templates in cross-file rename.

Summary:
It was disabled because we don't handle explicit template
specialization well (due to the index limitation).

renaming templates is normal in practic, rather than disabling it, this patch
allows to rename them though it is not perfect (just a known limitation).

Context: https://github.com/clangd/clangd/issues/280

Reviewers: kbobyrev

Reviewed By: kbobyrev

Subscribers: ilya-biryukov, MaskRay, jkorous, arphaman, kadircet, usaxena95, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D74709
The file was modifiedclang-tools-extra/clangd/refactor/Rename.cpp
The file was modifiedclang-tools-extra/clangd/unittests/RenameTests.cpp
Commit e5eeb8465f29bf4e9cf6f1edb88573338fc12725 by sebastian.neubauer
Make unittests include path relative

This change is relevant when embedding the llvm cmake project into
another project.  It should not change the build behavior of a normal
llvm build.

In the case where llvm is embedded as a cmake subproject,
CMAKE_SOURCE_DIR does not point to the expected directory and building
the tests fails.
Using CMAKE_CURRENT_SOURCE_DIR fixes this problem, as it will always
point to the same directory.

Differential Revision: https://reviews.llvm.org/D73466
The file was modifiedllvm/unittests/TableGen/CMakeLists.txt