[all-commits] [llvm/llvm-project] 20e9d4: [BOLT] Prepare BOLT for unit-testing

Vladislav Khmelevsky via All-commits all-commits at lists.llvm.org
Wed Jan 26 13:24:01 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 20e9d4caf0cb37188bd218730f781728fe779c50
      https://github.com/llvm/llvm-project/commit/20e9d4caf0cb37188bd218730f781728fe779c50
  Author: Vladislav Khmelevsky <och95 at yandex.ru>
  Date:   2022-01-27 (Thu, 27 Jan 2022)

  Changed paths:
    M bolt/CMakeLists.txt
    M bolt/include/bolt/Core/MCPlusBuilder.h
    M bolt/include/bolt/Rewrite/RewriteInstance.h
    M bolt/include/bolt/Utils/CommandLineOpts.h
    M bolt/lib/Rewrite/RewriteInstance.cpp
    M bolt/lib/Utils/CommandLineOpts.cpp
    M bolt/test/CMakeLists.txt
    A bolt/test/Unit/CMakeLists.txt
    A bolt/test/Unit/lit.cfg.py
    A bolt/test/Unit/lit.site.cfg.py.in
    M bolt/tools/driver/llvm-bolt.cpp
    A bolt/unittests/CMakeLists.txt

  Log Message:
  -----------
  [BOLT] Prepare BOLT for unit-testing

This patch adds unit testing support for BOLT. In order to do this we will need at least do this changes on the code level:
* Make createMCPlusBuilder accessible externally
* Remove positional InputFilename argument to bolt utlity sources
And prepare the cmake and lit for the new tests.

Vladislav Khmelevsky,
Advanced Software Technology Lab, Huawei

Reviewed By: maksfb, Amir

Differential Revision: https://reviews.llvm.org/D118271




More information about the All-commits mailing list