SuccessChanges

Summary

  1. Add -Wno-error=unknown flag to clang-format. (details)
  2. Revert "Temporarily Revert "[clangd] Add Random Forest runtime for code completion."" (details)
  3. InstCombiner.h - remove unnecessary KnownBits forward declaration. NFCI. (details)
  4. Revert "Revert "[gn build] (manually) port 9b6765e784b3" anf follow-ups" (details)
  5. [gn build] (manually) merge 2124ca1d5 (details)
  6. [gn build] Port 2124ca1d5cb (details)
  7. lld/mach-o: Make tool scripts from 2124ca1d5cb py2.7-compatible (details)
  8. Change name of Record::TheInit to CorrespondingDefInit to make code clearer. (details)
Commit f64903fd81764f1fde7aeb00eea5e1d488458f63 by joachim
Add -Wno-error=unknown flag to clang-format.

Currently newer clang-format options cannot be included in .clang-format files, if not all users can be forced to use an updated version.
This patch tries to solve this by adding an option to clang-format, enabling to ignore unknown (newer) options.

Differential Revision: https://reviews.llvm.org/D86137
The file was modifiedclang/lib/Format/Format.cpp (diff)
The file was modifiedllvm/unittests/ObjectYAML/YAMLTest.cpp (diff)
The file was modifiedclang/docs/ClangFormat.rst (diff)
The file was modifiedllvm/lib/Support/YAMLTraits.cpp (diff)
The file was modifiedllvm/include/llvm/Support/YAMLParser.h (diff)
The file was modifiedclang/include/clang/Format/Format.h (diff)
The file was modifiedclang/unittests/Format/FormatTest.cpp (diff)
The file was modifiedllvm/lib/Support/YAMLParser.cpp (diff)
The file was modifiedclang/tools/clang-format/ClangFormat.cpp (diff)
The file was modifiedllvm/include/llvm/Support/YAMLTraits.h (diff)
Commit 985deba9319be464673c1002767f8a3ec597480d by usx
Revert "Temporarily Revert "[clangd] Add Random Forest runtime for code completion.""

We intend to replace heuristics based code completion ranking with a Decision Forest Model.

This patch introduces a format for representing the model and an inference runtime that is code-generated at build time.
- Forest.json contains all the trees as an array of trees.
- Features.json describes the features to be used.
- Codegen file takes the above two files and generates CompletionModel containing Feature struct and corresponding Evaluate function.
   The Evaluate function maps a feature to a real number describing the relevance of this candidate.
- The codegen is part of build system and these files are generated at build time.
- Proposes a way to test the generated runtime using a test model.
  - Replicates the model structure in unittests.
  - unittest tests both the test model (for correct tree traversal) and the real model (for sanity).

This reverts commit 549e55b3d5634870aa9d42135f51ad46a6a0e347.
The file was addedclang-tools-extra/clangd/quality/model/features.json
The file was addedclang-tools-extra/clangd/quality/model/forest.json
The file was addedclang-tools-extra/clangd/unittests/decision_forest_model/CategoricalFeature.h
The file was addedclang-tools-extra/clangd/unittests/decision_forest_model/features.json
The file was modifiedclang-tools-extra/clangd/unittests/CodeCompleteTests.cpp (diff)
The file was addedclang-tools-extra/clangd/quality/README.md
The file was addedclang-tools-extra/clangd/unittests/decision_forest_model/forest.json
The file was modifiedclang-tools-extra/clangd/CMakeLists.txt (diff)
The file was addedclang-tools-extra/clangd/quality/CompletionModel.cmake
The file was addedclang-tools-extra/clangd/quality/CompletionModelCodegen.py
The file was modifiedclang-tools-extra/clangd/unittests/CMakeLists.txt (diff)
The file was addedclang-tools-extra/clangd/unittests/DecisionForestTests.cpp
Commit 0c20d753d5fbacc162ce77271e616ad107956bf7 by llvm-dev
InstCombiner.h - remove unnecessary KnownBits forward declaration. NFCI.

We already include KnownBits.h
The file was modifiedllvm/include/llvm/Transforms/InstCombine/InstCombiner.h (diff)
Commit 3618ac203f17316401a48b5810b3b9c5ac417f2a by thakis
Revert "Revert "[gn build] (manually) port 9b6765e784b3" anf follow-ups"

This reverts commit 90fffdd0f705bfb480810cef087305567dc4f6cf.
The original change relanded.
The file was modifiedllvm/utils/gn/secondary/clang-tools-extra/clangd/BUILD.gn (diff)
The file was modifiedllvm/utils/gn/secondary/clang-tools-extra/clangd/unittests/BUILD.gn (diff)
The file was addedllvm/utils/gn/secondary/clang-tools-extra/clangd/quality/gen_decision_forest.gni
Commit ec9fb73277444ccc292d3662440ce44254b485c2 by thakis
[gn build] (manually) merge 2124ca1d5
The file was modifiedllvm/utils/gn/secondary/lld/MachO/BUILD.gn (diff)
Commit 70409b2897f2c894e389c5ab590931f983d3e6d7 by thakis
[gn build] Port 2124ca1d5cb
The file was modifiedllvm/utils/gn/secondary/lld/MachO/BUILD.gn (diff)
Commit e22a4fd59de668af1cb943e23a6f4bfc93090e0f by thakis
lld/mach-o: Make tool scripts from 2124ca1d5cb py2.7-compatible
The file was modifiedlld/test/MachO/tools/validate-unwind-info.py (diff)
The file was modifiedlld/test/MachO/tools/generate-cfi-funcs.py (diff)
Commit 04cebd900fde2c10d31a149895ed2495ff0994f7 by paul
Change name of Record::TheInit to CorrespondingDefInit to make code clearer.

Differential Revision: https://reviews.llvm.org/D87919
The file was modifiedllvm/lib/TableGen/Record.cpp (diff)
The file was modifiedllvm/include/llvm/TableGen/Record.h (diff)